PHPackages                             jormin/tuling - 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. jormin/tuling

ActiveLibrary[API Development](/categories/api)

jormin/tuling
=============

图灵APi集成

v1.0(8y ago)037MITPHPPHP ^5.6 || ^7.0

Since Jan 4Pushed 8y ago1 watchersCompare

[ Source](https://github.com/jormin/tuling)[ Packagist](https://packagist.org/packages/jormin/tuling)[ Docs](https://github.com/jormin/tuling)[ RSS](/packages/jormin-tuling/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

集成了 [图灵](http://www.tuling123.com/) 官方的Api接口。

安装
--

[](#安装)

1. 安装包文件

    ```
    $ composer require jormin/tuling
    ```

说明
--

[](#说明)

1. 返回结果说明

    接口返回数据已经经过打包处理，为数组格式，包含三个字段:

    参数类型说明可为空successbool是否成功NmsgString结果说明Ndataarray百度语音接口返回数据，消息字段详细见 [图灵官方文档](http://www.tuling123.com/help/h_cent_webapi.jhtml?nav=doc).Y

使用
--

[](#使用)

1. 获取自动回复信息

    ```
       $message = '西安天气';
       $userID = '用户ID';
       $location = '陕西省西安市雁塔区';
       $tuLing = new Jormin\TuLing\TuLing($apiKey);
       $tuLing->chat($message, $userID, $location);
    ```

    接口字段：

    参数类型说明可为空filePathString语音文件本地路径，该字段和url字段二选一，优先使用此项YurlString语音文件URL路径，该字段和filePath字段二选一YcallbackString回调地址YuserIDString用户唯一标识YformatString语音文件格式，可选值 \['pcm', 'wav', 'opus', 'speex', 'amr'\]，默认为wavYrateInteger采样率，可选值 \[8000, 16000\]，默认为16000YlanString语言，可选值 \['zh', 'ct', 'en'\]，默认为zhY

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3053d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

Jormin

### Embed Badge

![Health badge](/badges/jormin-tuling/health.svg)

```
[![Health](https://phpackages.com/badges/jormin-tuling/health.svg)](https://phpackages.com/packages/jormin-tuling)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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