PHPackages                             chocoboxxf/yii2-teleii-sdk - 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. chocoboxxf/yii2-teleii-sdk

ActiveYii2-extension[API Development](/categories/api)

chocoboxxf/yii2-teleii-sdk
==========================

Teleii API for Yii 2.0

26PHP

Since Feb 14Pushed 10y ago1 watchersCompare

[ Source](https://github.com/chocoboxxf/yii2-teleii-sdk)[ Packagist](https://packagist.org/packages/chocoboxxf/yii2-teleii-sdk)[ RSS](/packages/chocoboxxf-yii2-teleii-sdk/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-teleii-sdk
===============

[](#yii2-teleii-sdk)

基于Yii2实现的啦米小智商务号API SDK（目前开发中）

环境条件
----

[](#环境条件)

- > = PHP 5.4
- > = Yii 2.0
- > = GuzzleHttp 5.0

安装
--

[](#安装)

添加下列代码在`composer.json`文件中并执行`composer update --no-dev`操作

```
{
    "require": {
       "chocoboxxf/yii2-teleii-sdk": "dev-master"
    }
}
```

设置方法
----

[](#设置方法)

```
// 全局使用
// 在config/main.php配置文件中定义component配置信息
'components' => [
  .....
  'teleii' => [
    'class' => 'chocoboxxf\Teleii\Teleii',
    'id' => '123', // 接入商id
    'key' => 'ABCXYZ1234567', // 接入商key
    'host' => '127.0.0.1', // API地址
    'port' => '8000', // API端口
  ]
  ....
]
// 代码中调用
$result = Yii::$app->teleii->bindMobile('14012345678', '13000000000');
....
```

```
// 局部调用
$teleii = Yii::createObject([
    'class' => 'chocoboxxf\Teleii\Teleii',
    'id' => '123', // 接入商id
    'key' => 'ABCXYZ1234567', // 接入商key
    'host' => '127.0.0.1', // API地址
    'port' => '8000', // API端口
]);
$result = $teleii->bindMobile('14012345678', '13000000000');
....
```

使用示例
----

[](#使用示例)

商务号绑定接口

```
$result = Yii::$app->teleii->bindMobile('14012345678', '13000000000');
if ($result['result'] !== 0) {
    // 出错情况
    return $result['error']; // 返回出错信息
    ....
}
// 正常情况
....
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

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/3401509?v=4)[许晓峰](/maintainers/chocoboxxf)[@chocoboxxf](https://github.com/chocoboxxf)

---

Top Contributors

[![chocoboxxf](https://avatars.githubusercontent.com/u/3401509?v=4)](https://github.com/chocoboxxf "chocoboxxf (3 commits)")

### Embed Badge

![Health badge](/badges/chocoboxxf-yii2-teleii-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/chocoboxxf-yii2-teleii-sdk/health.svg)](https://phpackages.com/packages/chocoboxxf-yii2-teleii-sdk)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k16](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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