bailing / iot_cloud
联网
dev-master
2023-07-05 10:03 UTC
Requires
- php: >=8.1
- guzzlehttp/guzzle: ^6.5|^7.0
- hyperf/framework: ^3.0.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.14
- mockery/mockery: ^1.0
- phpstan/phpstan: ^0.12
- phpunit/phpunit: >=7.0
- swoole/ide-helper: dev-master
- swow/swow: dev-develop
- symfony/var-dumper: ^5.1
This package is not auto-updated.
Last update: 2025-01-16 15:26:01 UTC
README
集成海康云眸、萤石云、大华云睿、乐橙、海康ISC 、大华ICC 集于一体的 Hyperf 组件包
composer require bailing/be_component_iot_cloud -vvv
使用
在执行
composer require require bailing/be_component_iot_cloud -vvv
安装之后,您可通过执行php bin/hyperf.php vendor:publish bailing/be_component_iot_cloud
来将组件预设的配置文件,发布到骨架项目的 config/autoload 文件夹内。然后按需配置即可使用本SDK之前请先熟悉对应平台的技术文档
配置
执行 php bin/hyperf.php vendor:publish bailing/be_component_iot_cloud 之后,目录下应该会有这几个文件
config ├── autoload │ ├── hikcloud.php 海康云眸 │ ├── imou.php 乐橙 TODO │ ├── ys7.php 萤石云 │ └── yunrui.php 云睿 └──────
海康云眸
require __DIR__ .'/vendor/autoload.php'; use Bailing\BeComponentIotCloud\Config as MyConfig; use Bailing\BeComponentIotCloud\HikCloud\Application; $config = \config('hikcloud'); $application = new Application(new MyConfig($config)); $params = [ 'communityName' => 'xxx', 'provinceCode' => 'xxf', 'addressDetail' => 'rgg' ]; $application->communit->communities($params);
大华云睿
require __DIR__ .'/vendor/autoload.php'; use Bailing\BeComponentIotCloud\Config as MyConfig; use Bailing\BeComponentIotCloud\YunRui\Application; $config = \config('yunrui'); $application = new Application(new MyConfig($config)); $application->account->addUser();
萤石云
require __DIR__ .'/vendor/autoload.php'; use Bailing\BeComponentIotCloud\Config as MyConfig; use Bailing\BeComponentIotCloud\Ys7\Application; $config = \config('ys7'); $application = new Application(new MyConfig($config)); $params = [ ]; $application->device->addYsDevice($params);
TODO
- 乐橙
- 海康ISC
- 大华ICC