PHPackages                             caojianfei/lenovo-think-iot - 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. caojianfei/lenovo-think-iot

ActiveLibrary[API Development](/categories/api)

caojianfei/lenovo-think-iot
===========================

lenovo connect think iot api 2.0

28PHP

Since May 11Pushed 8y ago1 watchersCompare

[ Source](https://github.com/caojianfei/lenovo-think-iot)[ Packagist](https://packagist.org/packages/caojianfei/lenovo-think-iot)[ RSS](/packages/caojianfei-lenovo-think-iot/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

联想 THINKIOT API 2.0 sdk
=======================

[](#联想-thinkiot-api-20-sdk)

此扩展是联想 THINKIOT API 2.0 的 SDK，可以方便的在 Laravel 中集成。由于联想懂得的相关接口还没有稳定，所以暂时没有稳定版本发布。

安装
--

[](#安装)

```
composer install caojianfei/lenovo-think-iot

```

由于目前没有发布稳定版本，需要手动在`composer.json`文件的`require`中指定，像这样：

```
"require": {
    "caojianfei/lenovo-think-iot": "dev-master"
}

```

配置
--

[](#配置)

```
[
    'auth' => [
        'appkey' => '',
        'custid' => '',
    ],
    'gateway_url' => '' # 网关地址，默认 http://thinkiotapi.lenovo.com/httpOpenServer/serviceProvide
];

```

- 在 Laravel 中自定义配置

在命令行下运行

```
php artisan vendor:publish

```

然后在 `config` 目录下的 `lenovo-think.php` 中修改配置。

- 在其他项目中自定义配置

可以直接在实例化 `ThinkManage` 这个类的时候第一个参数传入配置或者配置的文件路径。

使用
--

[](#使用)

### 在 Laravel 框架中使用

[](#在-laravel-框架中使用)

- 调用示例

使用 Facade

```
# 查询流量卡信息
Think::queryFlowInfo($iccid);

# 变更资费月套餐接口
Think::cardChangeInfo($iccid, $postageId);

```

直接使用

```
# 获取 sdk 实例
$think = app('thinkiot');

# 查询流量卡信息
$think->queryFlowInfo($iccid);

# 变更资费月套餐接口
$think->query($iccid, $postageId);

```

### 在其他项目中使用

[](#在其他项目中使用)

```

$config = [
    'auth' => [
        'appkey' => '123456',
        'custid' => '654321',
    ],
    'gateway_url' => 'url' # 网关地址
];

#$config 也可以是配置的文件目录，例如 'configs/lenovo-think.php'

$think = new \CJF\ThinkIot\ThinkManage($config);

# 查询流量卡信息
$think->queryFlowInfo($iccid);

# 变更资费月套餐接口
$think->query($iccid, $postageId);

```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

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/17742555?v=4)[caojianfei](/maintainers/caojianfei)[@caojianfei](https://github.com/caojianfei)

### Embed Badge

![Health badge](/badges/caojianfei-lenovo-think-iot/health.svg)

```
[![Health](https://phpackages.com/badges/caojianfei-lenovo-think-iot/health.svg)](https://phpackages.com/packages/caojianfei-lenovo-think-iot)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

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

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

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

PHPackages © 2026

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