PHPackages                             zhongjq/thrift-laravel - 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. [API Development](/categories/api)
4. /
5. zhongjq/thrift-laravel

ActiveLibrary[API Development](/categories/api)

zhongjq/thrift-laravel
======================

use Thrift in Laravel

0.3.0(7y ago)013MITPHPPHP &gt;=7.0.0

Since Aug 18Pushed 7y ago1 watchersCompare

[ Source](https://github.com/zhongjq/thrift-laravel)[ Packagist](https://packagist.org/packages/zhongjq/thrift-laravel)[ RSS](/packages/zhongjq-thrift-laravel/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (6)Versions (14)Used By (0)

thrift-laravel
==============

[](#thrift-laravel)

use Thrift in Laravel

How to use
==========

[](#how-to-use)

Server side
-----------

[](#server-side)

1. `composer require angejia/thrift-laravel`
2. add provider to `app.providers`:

    ```
    \Angejia\Thrift\ThriftServiceProvider::class

    ```
3. setting `thrift.providers` in file `config/thrift.php`:

    ```
    // first is service name, defined in thrift file
    // second in Service implement reference, e.g.
    // class ImageServcie implement \Angejia\ImageServiceIf
    ['Angejia.ImageService', \Angejia\ImageService::class],

    ```
4. add Middleware `\Angejia\Thrift\Middleware\ThriftServerMiddleware::class` to `app\Http\Kernel`

    in default, the request to `/rpc` will be process by Middleware, if you want to change this, please extend `ThriftServerMiddleware` and overwrite `process` method

Client side
-----------

[](#client-side)

1. `composer require angejia/thrift-laravel`
2. add provider in `app.providers`: ```
    \Angejia\Thrift\ThriftServiceProvider::class

    ```
3. setting `thrift.depends` in file `config/thrift.php`: ```
    // key is url
    // value is array of service name
    "http://localhost/rpc" => [
        'Angejia.ImageService',
    ]

    ```
4. usage: ```
    /** @var \Angejia\Thrift\Contracts\ThriftClient $thriftClient */
    $thriftClient = app(\Angejia\Thrift\Contracts\ThriftClient::class);
    /** @var \Angejia\ImageServiceIf $imageService */
    $imageService = $thriftClient->with('Angejia.ImageService');

    $result = $imageService->foo();

    ```

TODO
====

[](#todo)

- Unittest

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.3% 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 ~59 days

Recently: every ~175 days

Total

13

Last Release

2839d ago

PHP version history (2 changes)0.2.4PHP &gt;=5.4.0

0.2.8PHP &gt;=7.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/dde1ff215789d752c75bad2232607b334bbd6f6ca349b4598af3feb90a722984?d=identicon)[zhongjq](/maintainers/zhongjq)

---

Top Contributors

[![robberphex](https://avatars.githubusercontent.com/u/1926185?v=4)](https://github.com/robberphex "robberphex (28 commits)")[![zhongjq](https://avatars.githubusercontent.com/u/1228323?v=4)](https://github.com/zhongjq "zhongjq (3 commits)")

---

Tags

laravelthrift

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zhongjq-thrift-laravel/health.svg)

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

###  Alternatives

[laraveldaily/laravel-invoices

Missing invoices for Laravel

1.5k1.3M4](/packages/laraveldaily-laravel-invoices)[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[essa/api-tool-kit

set of tools to build an api with laravel

52680.5k](/packages/essa-api-tool-kit)[resend/resend-laravel

Resend for Laravel

1191.4M6](/packages/resend-resend-laravel)[dragon-code/laravel-json-response

Automatically always return a response in JSON format

1118.6k1](/packages/dragon-code-laravel-json-response)[joggapp/laravel-aws-sns

Laravel package for the SNS events by AWS

3171.8k](/packages/joggapp-laravel-aws-sns)

PHPackages © 2026

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