https://github.com/hyperf/roc-generator
Generator for `hyperf/roc` and `hyperf/rpc-multiplex`.
https://github.com/hyperf/roc-generator
Last synced: 3 months ago
JSON representation
Generator for `hyperf/roc` and `hyperf/rpc-multiplex`.
- Host: GitHub
- URL: https://github.com/hyperf/roc-generator
- Owner: hyperf
- License: mit
- Created: 2023-03-10T23:39:06.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-26T14:44:57.000Z (almost 3 years ago)
- Last Synced: 2025-06-13T11:57:44.731Z (8 months ago)
- Language: PHP
- Size: 152 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ROCGenerator
## 如何使用
本地必须安装 `protoc` 脚本
### PHP
- 使用源码
```shell
cd ./php
php -dphar.readonly=Off main.php phar:build -b main.php --name roc.phar
php roc.phar gen:roc example.proto
```
- 使用打包好的二进制文件
```shell
wget https://github.com/hyperf/roc-generator/releases/download/v0.1.0/roc-php_8.1_macos.x86_64
mv roc-php_8.1_macos.x86_64 /usr/local/bin/roc-php
roc-php gen:roc example.proto
```