PHP code example of s1lver / grpc-php-plugin-binary

1. Go to this page and download the library: Download s1lver/grpc-php-plugin-binary library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

s1lver / grpc-php-plugin-binary example snippets


"s1lver/grpc-php-plugin-binary": "^1.0.0"
bash
cp /your_repo/vendor/bin/grpc_php_plugin /usr/local/bin/grpc_php_plugin

protoc -I . \
       --php_out=your/path \
       --grpc_out=your/path \
       --plugin=protoc-gen-grpc=`which grpc_php_plugin` \
       your/path/proto.proto