PHP code example of srwiez / grpc-protoset
1. Go to this page and download the library: Download srwiez/grpc-protoset 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/ */
srwiez / grpc-protoset example snippets
use SRWieZ\GrpcProtoset\ProtosetConverter;
$protoset = new ProtosetConverter();
$protoset->setOutputDir('./proto');
$protoset->convert('starlink.protoset');
bash
php cli/converter.php "starlink.protoset" ./proto
bash
protoc --php_out=./generated/ proto/spacex/api/device/device.proto