PHPackages                             angejia/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. angejia/thrift-laravel

ActiveLibrary[API Development](/categories/api)

angejia/thrift-laravel
======================

use Thrift in Laravel

0.2.13(9y ago)111.8k7[2 issues](https://github.com/angejia/thrift-laravel/issues)MITPHPPHP &gt;=7.0.0

Since Aug 18Pushed 9y ago2 watchersCompare

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

READMEChangelog (1)Dependencies (6)Versions (13)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

30

—

LowBetter than 62% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~3 days

Total

12

Last Release

3571d ago

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

0.2.8PHP &gt;=7.0.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11443305?v=4)[安个家](/maintainers/angejia)[@angejia](https://github.com/angejia)

---

Top Contributors

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

---

Tags

laravelthrift

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

815320.5k3](/packages/defstudio-telegraph)[moonshine/moonshine

Laravel administration panel

1.3k239.9k76](/packages/moonshine-moonshine)[illuminate/routing

The Illuminate Routing package.

1239.0M2.9k](/packages/illuminate-routing)[spatie/laravel-export

Create a static site bundle from a Laravel app

672139.5k6](/packages/spatie-laravel-export)[essa/api-tool-kit

set of tools to build an api with laravel

53386.5k](/packages/essa-api-tool-kit)

PHPackages © 2026

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