hiworld / laravel-ctwing
CTWing Api for Laravel
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/hiworld/laravel-ctwing
Requires
- php: ^7.4|^8.0
- guzzlehttp/guzzle: ^7.0
This package is auto-updated.
Last update: 2025-12-07 13:46:33 UTC
README
目前只完成了设备列表和下发指令的功能
框架要求
- Laravel >=10.0
安装
composer require hiworld/laravel-ctwing
配置
php artisan vendor:publish --provider="Hiworld\\CTWing\\CTWingServiceProvider"
.env 文件
CTWING_BASE_URL= CTWING_TIME_URL= CTWING_APP_KEY= CTWING_APP_SECRET= CTWING_MASTER_KEY=
使用
DeviceManagement使用:
use Hiworld\CTWing\AepWork; $productId = ''; $app = AepWork::DeviceManagement(); $app->QueryDeviceList($productId)
DeviceCommand使用:
use Hiworld\CTWing\AepWork; $body = []; $app = AepWork::DeviceCommand(); $response = $app->CreateCommand($body)
LICENSE
MIT