PHPackages                             tengpao/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. tengpao/yii2-thrift

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

tengpao/yii2-thrift
===================

yii2 extension for thrift

214PHP

Since Jun 22Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#yii2-thrift)

yii2 extension for thrift

安装
--

[](#安装)

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

```
composer require --prefer-dist tengpao/yii2-thrift "*"

```

or add

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

```

to the require section of your `composer.json` file.

使用
--

[](#使用)

在配置文件中components中增加配置:

```
'thrift' => [
    'class' => 'tengpao\thrift\ThriftClient'
    'idService' => [
        'defineName' => 'shared',
        'clientName' => '\tutorial\CalculatorClient'
    ],
]
```

调用:

```
\Yii::$app->thrift->idService->method();
```

如果不想在配置文件中全局配置,可以使用

```
$thrift = \Yii::createObject([
    'class' => 'tengpao\thrift\ThriftClient'
    'idService' => [
        'defineName' => 'shared',
        'clientName' => '\tutorial\CalculatorClient'
    ],
]);

$thrift->idService->method();

```

注,如果不是通过composer安装的需要添加相关别名指向

QQ交流群: 325914002

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15811430?v=4)[tengpao](/maintainers/tengpao)[@tengpao](https://github.com/tengpao)

---

Top Contributors

[![tengpao](https://avatars.githubusercontent.com/u/15811430?v=4)](https://github.com/tengpao "tengpao (7 commits)")

### Embed Badge

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

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

###  Alternatives

[wa72/htmlpagedom

jQuery-inspired DOM manipulation extension for Symfony's Crawler

3384.0M35](/packages/wa72-htmlpagedom)[symfonycasts/micro-mapper

A tiny, underwhelming data mapper to map one object to another!

81683.6k](/packages/symfonycasts-micro-mapper)[php-tui/term

comprehensive low level terminal control

45929.1k1](/packages/php-tui-term)[spirit55555/php-minecraft

Useful PHP classes for Minecraft

6825.5k](/packages/spirit55555-php-minecraft)[ip2location/ip2location-io-php

IP2Location.io PHP SDK to get geolocation info from IPv4 and IPv6 address.

238.1k2](/packages/ip2location-ip2location-io-php)

PHPackages © 2026

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