PHPackages                             twirp/twirp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. twirp/twirp

ActiveLibrary[Framework](/categories/framework)

twirp/twirp
===========

PHP port of Twitch's Twirp RPC framework

v0.15.0(5mo ago)1591.0M—8.6%22[11 issues](https://github.com/twirphp/twirp/issues)[3 PRs](https://github.com/twirphp/twirp/pulls)4MITPHPPHP ^8.1CI passing

Since Apr 13Pushed 2mo ago5 watchersCompare

[ Source](https://github.com/twirphp/twirp)[ Packagist](https://packagist.org/packages/twirp/twirp)[ Docs](https://twirphp.github.io)[ RSS](/packages/twirp-twirp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (10)Versions (30)Used By (4)

 [   ![TwirPHP logo](resources/logo.png)  ](https://twirphp.github.io)

 TwirPHP
=========

[](#----twirphp--)

[![GitHub Workflow Status](https://camo.githubusercontent.com/120608a612bb97089bacb5704a5d82df9d0c7ffe622e813ad535097cffa47ee7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f747769727068702f74776972702f63692e79616d6c3f7374796c653d666c61742d737175617265)](https://github.com/twirphp/twirp/actions/workflows/ci.yaml)[![Twirp Version](https://camo.githubusercontent.com/8359ef6240656a895cf7fbd3abced405224327e7fe17d393657cf2e988d4adc5/687474703a2f2f696d672e736869656c64732e696f2f62616467652f747769727025323076657273696f6e2d76372d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](https://twitchtv.github.io/twirp/docs/spec_v7.html)[![Go Report Card](https://camo.githubusercontent.com/243bf0768ab0ef9dae6ec804adfc834e5d8949d53ebcc13b55fdffd319604f12/68747470733a2f2f676f7265706f7274636172642e636f6d2f62616467652f6769746875622e636f6d2f747769727068702f74776972703f7374796c653d666c61742d737175617265)](https://goreportcard.com/report/github.com/twirphp/twirp)[![Composer Package](https://camo.githubusercontent.com/53d7b093a9473d28ccedf23e254113e432c8d3599e8ef8e8236ff75f1a61831e/687474703a2f2f696d672e736869656c64732e696f2f62616467652f636f6d706f7365722d747769727025324674776972702d677265656e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/twirp/twirp)

**PHP port of Twitch's [Twirp](https://twitchtv.github.io/twirp/) RPC framework**

Installation
------------

[](#installation)

Download prebuilt binaries for the protoc plugin from the [releases](https://github.com/twirphp/twirp/releases) page.

Alternatively, you can use the following oneliner to install the plugin:

```
curl -Ls https://git.io/twirphp | bash -s -- -b path/to/bin
```

See the [documentation](https://twirphp.github.io/docs/installation) for details.

Documentation
-------------

[](#documentation)

See the [official documentation](https://twirphp.github.io/).

Development
-----------

[](#development)

**For an optimal developer experience, it is recommended to install [Nix](https://nixos.org/download.html) and [direnv](https://direnv.net/docs/installation.html).**

*Alternatively, install [Go](https://go.dev/dl/), [PHP](https://www.php.net/) and [Composer](https://getcomposer.org/download/) on your computer then run `make deps` to install the rest of the dependencies.*

Install dependencies:

```
go mod download
composer install
```

If you change something in the protoc plugin, regenerate the examples:

```
make generate
```

When all coding and testing is done, please run the test suite:

```
make check
```

Security
--------

[](#security)

If you discover any security related issues, please contact us at .

License
-------

[](#license)

The project is licensed under the [MIT License](LICENSE).

The original Twirp library is licensed under the Apache 2.0 License.

###  Health Score

62

—

FairBetter than 99% of packages

Maintenance77

Regular maintenance activity

Popularity56

Moderate usage in the ecosystem

Community29

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 83% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~103 days

Recently: every ~139 days

Total

28

Last Release

174d ago

PHP version history (4 changes)v0.1.0PHP ^5.6 || ^7.0

v0.5.0PHP ^7.1

v0.7.0PHP ^7.3 || ^8.0

v0.15.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/0e4e105cea62b616d4cb376b08a849b6a428f646998537de150d16a8eb537b90?d=identicon)[mark.sagikazar](/maintainers/mark.sagikazar)

---

Top Contributors

[![sagikazarmark](https://avatars.githubusercontent.com/u/1226384?v=4)](https://github.com/sagikazarmark "sagikazarmark (445 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (55 commits)")[![jitendra-1217](https://avatars.githubusercontent.com/u/5562241?v=4)](https://github.com/jitendra-1217 "jitendra-1217 (10 commits)")[![antonkomarev](https://avatars.githubusercontent.com/u/1849174?v=4)](https://github.com/antonkomarev "antonkomarev (9 commits)")[![SpencerMalone](https://avatars.githubusercontent.com/u/8786752?v=4)](https://github.com/SpencerMalone "SpencerMalone (7 commits)")[![mterwill](https://avatars.githubusercontent.com/u/5882053?v=4)](https://github.com/mterwill "mterwill (6 commits)")[![rastislavnemec](https://avatars.githubusercontent.com/u/22998502?v=4)](https://github.com/rastislavnemec "rastislavnemec (1 commits)")[![honzatrtik](https://avatars.githubusercontent.com/u/1225333?v=4)](https://github.com/honzatrtik "honzatrtik (1 commits)")[![bakins](https://avatars.githubusercontent.com/u/205350?v=4)](https://github.com/bakins "bakins (1 commits)")[![zolex](https://avatars.githubusercontent.com/u/398739?v=4)](https://github.com/zolex "zolex (1 commits)")

---

Tags

code-generatorhactoberfestphpprotobufprotocol-buffersrpctwirpframeworkrpcprotobufidltwirp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/twirp-twirp/health.svg)

```
[![Health](https://phpackages.com/badges/twirp-twirp/health.svg)](https://phpackages.com/packages/twirp-twirp)
```

###  Alternatives

[cakephp/cakephp

The CakePHP framework

8.8k18.5M1.6k](/packages/cakephp-cakephp)[slim/slim

Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs

12.3k49.9M1.3k](/packages/slim-slim)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

81733.7k](/packages/flow-php-flow)[neos/flow

Flow Application Framework

862.0M451](/packages/neos-flow)[cakephp/authentication

Authentication plugin for CakePHP

1153.6M67](/packages/cakephp-authentication)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
