Download the PHP package diogodourado/smartlife-control-php without Composer
On this page you can find all versions of the php package diogodourado/smartlife-control-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download diogodourado/smartlife-control-php
More information about diogodourado/smartlife-control-php
Files in diogodourado/smartlife-control-php
Download diogodourado/smartlife-control-php
More information about diogodourado/smartlife-control-php
Files in diogodourado/smartlife-control-php
Vendor diogodourado
Package smartlife-control-php
Short Description SDK PHP para integrar e controlar dispositivos Smart Life (Tuya Cloud).
License MIT
Package smartlife-control-php
Short Description SDK PHP para integrar e controlar dispositivos Smart Life (Tuya Cloud).
License MIT
Please rate this library. Is it a good library?
Informations about the package smartlife-control-php
Smart Life Control PHP
SDK em PHP para integrar e controlar dispositivos Smart Life / Tuya Cloud via API oficial.
Permite:
- Obter token da Tuya Cloud
- Listar dispositivos vinculados ao seu usuário
- Consultar status
- Enviar comandos (ligar, desligar, ajustar, etc.)
- Usar assinatura HMAC-SHA256 conforme documentação oficial
📦 Instalação
Via Composer:
⚙️ Configuração
Antes de usar, crie um projeto na Tuya IoT Platform e obtenha:
Access IDAccess Secret-
Região/endpoint correto
https://openapi.tuyaus.com(USA)https://openapi.tuyacn.com(China)https://openapi.tuyaeu.com(Europa)
- UID do usuário (obtido ao vincular o app Smart Life)
Edite:
Exemplo:
▶️ Fluxo básico
1) Obter o token e salvar
Isso salva automaticamente o token em:
2) Listar dispositivos
3) Ligar / Desligar um dispositivo
Depois acesse no navegador:
🧰 Estrutura do projeto
🛠 Tecnologias usadas
- PHP 8+
- Curl
- HMAC-SHA256
- Tuya OpenAPI v1.0
📌 Melhorias futuras
Estas são possíveis evoluções planejadas para versões futuras:
- Suporte a WebSockets (receber status em tempo real)
- Dashboard com Bootstrap
- Listagem + status + controle em tempo real
👤 Autor
Desenvolvido por: Diogo Dourado
📧 [email protected] GitHub: https://github.com/diogodourado
📄 Licença
Este projeto é distribuído sob a licença MIT.
All versions of smartlife-control-php with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0
ext-json Version *
ext-hash Version *
ext-curl Version *
ext-json Version *
ext-hash Version *
ext-curl Version *
The package diogodourado/smartlife-control-php contains the following files
Loading the files please wait ...