TwirPHP: PHP port of Twitch's Twirp RPC framework
Download prebuilt binaries for the protoc plugin from the releases page.
Alternatively, you can use the following oneliner to install the plugin:
curl -Ls https://git.io/twirphp | bash -b path/to/binSee the documentation for details.
See the official documentation.
Install dependencies:
go mod download
composer installIf you change something in the protoc plugin, regenerate the examples:
make generateWhen all coding and testing is done, please run the test suite:
make checkFor the best developer experience, install Nix and direnv.
Alternatively, install the following dependencies manually:
- Go >=1.17
- PHP 8.x
- Composer 2.x
Then run make deps to install the remaining dependencies.
If you discover any security related issues, please contact us at twirphp@sagikazarmark.dev.
The project is licensed under the MIT License.
The original Twirp library is licensed under the Apache 2.0 License.