https://github.com/wechaty/php-grpc
PHP Stubs for Chatie GRPC (DO NOT EDIT: Code generated by grpc_php_plugin)
https://github.com/wechaty/php-grpc
chatbot chatie grpc php74 wechaty wechaty-puppet
Last synced: 5 months ago
JSON representation
PHP Stubs for Chatie GRPC (DO NOT EDIT: Code generated by grpc_php_plugin)
- Host: GitHub
- URL: https://github.com/wechaty/php-grpc
- Owner: wechaty
- License: apache-2.0
- Created: 2020-07-10T05:14:15.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2021-10-04T02:39:03.000Z (over 4 years ago)
- Last Synced: 2025-09-22T21:54:32.664Z (9 months ago)
- Topics: chatbot, chatie, grpc, php74, wechaty, wechaty-puppet
- Language: PHP
- Homepage:
- Size: 74.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# php-grpc
PHP Stubs for Chatie GRPC
## DO NOT EDIT
Code generated by grpc_php_plugin.
This repo was generated via DevOps from [@chatie/grpc](https://github.com/chatie/grpc)
## Usage
**github.com/wechaty/php-grpc**
### pecl安装
```shell script
pecl install grpc
pecl install protobuf
```
### CentOS yum安装
```shell script
sudo yum install php72-php-pecl-grpc
sudo yum install php72-php-pecl-protobuf
```
### composer
```
composer config repo.packagist composer https://mirrors.aliyun.com/composer/
composer require wechaty/php-grpc
```
### php
```php
require dirname(__FILE__) . '/vendor/autoload.php';
$client = new \Wechaty\PuppetClient("localhost:8788", [
'credentials' => Grpc\ChannelCredentials::createInsecure()
]);
$request = new \Wechaty\Puppet\DingRequest();
list($response, $status) = $client->Ding($request)->wait();
echo sprintf("code: %s, msg: %s \n", $status->code, $status->details);
```
## Author
- [Chunsheng Zhang](https://github.com/zhangchunsheng) ([张春生](https://linkedin.com/in/justwannabewithyou)) zhangchunsheng423@gmail.com
## Copyright & License
- Code & Docs © 2020-now Chunsheng Zhang \
- Code released under the Apache-2.0 License
- Docs released under Creative Commons