a15lam/php-iot
Composer 安装命令:
composer require a15lam/php-iot
包简介
PHP library for controlling household IoT devices.
README 文档
README
PHP library to control Wemo devices and Sonoff with custom firmware found here.
Currently supports...
- Wemo light bulb - on/off/dimming/status
- Wemo light switch - on/off/status
- Wemo switch (socket) - on/off/status
- Wemo insight switch - on/off/params/status
- Sonoff switch (custom firmware) - on/off/status
- Grouped devices under wemo bridge
- Device discovery
Getting started:
git clone https://github.com/a15lam/php-iot.git cd php-iot composer install php example/console.php // An example command line app to control your wemo devices.
Usage:
$lightSwitch = \a15lam\PhpIot\Discovery::getDeviceByName('Bed Room Light'); // Use your wemo device name as they show on your wemo app. Supports grouped devices
$lightSwitch->On();
sleep(2); // Allow a moment to see the light turning on.
$lightSwitch->Off();
// Get switch status
echo $lightSwitch->status();
Check the example directory for more usage. Run example/console.php from command line to control your devices.
a15lam/php-iot 适用场景与选型建议
a15lam/php-iot 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 52 次下载、GitHub Stars 达 2, 最近一次更新时间为 2017 年 01 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「smart」 「iot」 「Wemo」 「sonoff」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 a15lam/php-iot 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 a15lam/php-iot 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 a15lam/php-iot 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Tuya cloud api home management php client
Client library for connecting to SignalWire.
Ethereum Client Library For Laravel
PHP library for Wemo devices.
huawei dianxin iot SDK
Yii2 smart link pager
统计信息
- 总下载量: 52
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 8
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2017-01-13