PHPackages                             urbanindo/yii2-thrift - 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. urbanindo/yii2-thrift

ActiveLibrary[API Development](/categories/api)

urbanindo/yii2-thrift
=====================

Thrift server application using Yii2

v2.1(8y ago)1124.4k6MITPHPCI failing

Since Sep 14Pushed 7y ago6 watchersCompare

[ Source](https://github.com/urbanindo/yii2-thrift)[ Packagist](https://packagist.org/packages/urbanindo/yii2-thrift)[ RSS](/packages/urbanindo-yii2-thrift/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (8)Versions (8)Used By (0)

yii2-thrift
===========

[](#yii2-thrift)

Thrift extension for Yii2

[![Latest Stable Version](https://camo.githubusercontent.com/2928714793aa435128d0f0ac8908b3413381aae26c6878fd4d04ed48d339c448/68747470733a2f2f706f7365722e707567782e6f72672f757262616e696e646f2f796969322d7468726966742f762f737461626c652e737667)](https://packagist.org/packages/urbanindo/yii2-thrift)[![Total Downloads](https://camo.githubusercontent.com/e908e772f281cd44e3f498e0fb9a8b01879bc7b07d29460917c11f7fa91c1ed1/68747470733a2f2f706f7365722e707567782e6f72672f757262616e696e646f2f796969322d7468726966742f646f776e6c6f6164732e737667)](https://packagist.org/packages/urbanindo/yii2-thrift)[![Latest Unstable Version](https://camo.githubusercontent.com/ffcc0e3ebad311c697311fd8cd20f3fda2e3b8353c00061e20ce51eaca36de04/68747470733a2f2f706f7365722e707567782e6f72672f757262616e696e646f2f796969322d7468726966742f762f756e737461626c652e737667)](https://packagist.org/packages/urbanindo/yii2-thrift)[![Build Status](https://camo.githubusercontent.com/8835a82d9877cd28914aa6e283bc6886e0b668da1fdd2cac96008cc8e30a2d08/68747470733a2f2f7472617669732d63692e6f72672f757262616e696e646f2f796969322d7468726966742e737667)](https://travis-ci.org/urbanindo/yii2-thrift)

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist urbanindo/yii2-thrift "*"

```

or add

```
"urbanindo/yii2-thrift": "*"

```

Minimum Requirement
===================

[](#minimum-requirement)

- Thrift version 0.10.0. To install thrift, check
- Yii 2.0.0

Usage
=====

[](#usage)

Put the thrift file into some directory `thrift` in the root is preferable.

Generate the thrift file using command below.

```
thrift --gen php:server,oop path/to/the/thrift/file

```

In the `index.php` instead of using the default `yii\web\Application` use `UrbanIndo\Yii2\Thrift\Application`.

In the component configuration add the `thrift` configuration.

```
return [
    'component' => [
        'thrift' => [
            'serviceMap' => [
                '' => 'service'
            ]
        ]
    ]
]
```

Create a service in the `services` directory, similar to `controllers`. This should implement both the Interface from generated Thrift file **and**`UrbanIndo\Yii2\Thrift\Service` interface.

```
class HelloService implements \myservice\HelloServiceIf, \UrbanIndo\Yii2\Thrift\Service {

    public function getProcessorClass {
        return 'myservice\HelloServiceProcessor';
    }
}
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 73.7% 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 ~320 days

Total

4

Last Release

2939d ago

Major Versions

v1.0 → v2.02018-02-12

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b7f55dc6d59ee54e7f73ffc96ab51bac7e1e328894ad74998dc55df0df8433c?d=identicon)[urbanindo](/maintainers/urbanindo)

---

Top Contributors

[![petrabarus](https://avatars.githubusercontent.com/u/523289?v=4)](https://github.com/petrabarus "petrabarus (14 commits)")[![azkalhaq](https://avatars.githubusercontent.com/u/9116786?v=4)](https://github.com/azkalhaq "azkalhaq (5 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/urbanindo-yii2-thrift/health.svg)

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

###  Alternatives

[dotzero/yii2-amocrm

Расширение для Yii Framework 2 реализующее клиент для работы с API amoCRM

1639.7k](/packages/dotzero-yii2-amocrm)[conquer/services

Yii2 soap wsdl web services

1632.5k](/packages/conquer-services)[skeeks/yii2-google-api

Component for work with google api based on google/apiclient

1243.1k1](/packages/skeeks-yii2-google-api)[apexwire/yii2-restclient

Tools to use API as ActiveRecord for Yii2

143.5k](/packages/apexwire-yii2-restclient)

PHPackages © 2026

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