Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/CatsSystem/swoole-grpc
Grpc Implement base on Swoole Http2 Server
https://github.com/CatsSystem/swoole-grpc
Last synced: about 2 months ago
JSON representation
Grpc Implement base on Swoole Http2 Server
- Host: GitHub
- URL: https://github.com/CatsSystem/swoole-grpc
- Owner: CatsSystem
- License: gpl-3.0
- Created: 2017-05-31T02:52:50.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-19T07:24:03.000Z (over 7 years ago)
- Last Synced: 2024-05-22T18:33:23.473Z (8 months ago)
- Language: C++
- Size: 27.3 KB
- Stars: 49
- Watchers: 5
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-swoole - swoole-grpc - A GRPC implement based on Swoole Http2 Server. (Server)
README
# swoole-grpc
Grpc Implement base on Swoole Http2 Server# Document
# Require
* protobuf 3.3 +
* grpc
* Swoole 1.9.9 +# Install
## 安装Swoole扩展
需要开启Swoole扩展的http2和openssl支持
```bash
./configure --enable-async-redis --enable-http2 --enable-openssl
make clean && make && make install
```# GRPC生成器
由于GRPC本身不支持PHP Server,因此原本的生成器也不支持生成Server端的代码。因此我修改了grpc php generator的代码,使用时,将grpc_generator目录下的文件复制到grpc的`src/compiler`目录下,然后重新编译安装即可。