PHPackages                             iot-space/iot-sdk-php - 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. iot-space/iot-sdk-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

iot-space/iot-sdk-php
=====================

涂鸦云、萤石云开发 PHP SDK

02PHP

Since Oct 12Pushed 4y ago1 watchersCompare

[ Source](https://github.com/iot-space/iot-sdk-php)[ Packagist](https://packagist.org/packages/iot-space/iot-sdk-php)[ RSS](/packages/iot-space-iot-sdk-php/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

iot-sdk-php
===========

[](#iot-sdk-php)

**涂鸦云、萤石云开发 PHP SDK**

- 初始化（放在应用程序入口处，只需要执行一次）

```
$iotConfig = [
    'ty' => [
        'client_id' => Env::get('iot.TY_CLIENT_ID', ''),
        'secret' => Env::get('iot.TY_SECRET', ''),
        'schema' => Env::get('iot.TY_SCHEMA', ''),
        'api' => Env::get('iot.TY_API', 'https://openapi.tuyacn.com')
    ],
    'ys' => [
        'key' => Env::get('iot.YS_KEY', ''),
        'secret' => Env::get('iot.YS_SECRET', ''),
        'api' => Env::get('iot.YS_API', 'https://open.ys7.com'),
        'es_key' => Env::get('iot.ES_KEY', ''),
        'es_secret' => Env::get('iot.ES_SECRET', ''),
        'es_api' => Env::get('iot.ES_API', 'https://esopen.ys7.com')
    ]
];
$iotApp = new IotApplication($iotConfig);
$iotApp['cache'] = $iotApp->make(ThinkCache::class);
$iotApp['log'] = $iotApp->make(ThinkLog::class);

```

- API方法调用

```
$token = TyCloud::TokenClient()->getToken();
$device = TyCloud::DeviceClient()->getDevice('60742034d8bfc0df40d3');
......

```

**Laravel请使用iot-sdk-php-laravel**

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

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

---

Top Contributors

[![shiyikui2024](https://avatars.githubusercontent.com/u/176449368?v=4)](https://github.com/shiyikui2024 "shiyikui2024 (5 commits)")

### Embed Badge

![Health badge](/badges/iot-space-iot-sdk-php/health.svg)

```
[![Health](https://phpackages.com/badges/iot-space-iot-sdk-php/health.svg)](https://phpackages.com/packages/iot-space-iot-sdk-php)
```

###  Alternatives

[phpoffice/math

Math - Manipulate Math Formula

3111.7M8](/packages/phpoffice-math)[grasmash/composerize-drupal

Convert a non-Composer managed Drupal application into a Composer-managed application.

12819.4k1](/packages/grasmash-composerize-drupal)[acacha/llum

Llum (light in catalan language) illuminates your Laravel projects.

10926.0k](/packages/acacha-llum)[fab/rss-display

Fetch a RSS / Atom Feed and display its content on the Frontend.

1252.3k](/packages/fab-rss-display)

PHPackages © 2026

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