webproject-xyz / ikea-tradfri-php-api
PHP library to control ikea tradfri hub
4.1.0
2025-06-02 20:13 UTC
Requires
- php: ~8.3.0 || ~8.4.0
- ext-filter: *
- ext-json: *
- ext-mbstring: *
- doctrine/collections: ^2.3.0
- psr/log: ^3.0.2
- roave/better-reflection: ^6.59.0
- symfony/process: ^7.3.0
- symfony/property-access: ^7.3.0
- symfony/property-info: ^7.3.0
- symfony/serializer: ^7.3.0
- symfony/service-contracts: ^3.6.0
- symfony/validator: ^7.3.0
Requires (Dev)
- codeception/codeception: ^5.3.2
- codeception/mockery-module: ^0.5.0
- codeception/module-asserts: ^3.2.0
- ergebnis/license: ^2.6.0
- ergebnis/php-cs-fixer-config: ^6.46.0
- friendsofphp/php-cs-fixer: ^3.75.0
- maglnet/composer-require-checker: ^4.16.1
- mockery/mockery: ^1.6.12
- phpro/grumphp: ^2.12.0
- phpstan/extension-installer: ^1.4.3
- phpstan/phpdoc-parser: ^2.1.0
- phpstan/phpstan: ^2.1.17
- phpstan/phpstan-doctrine: ^2.0.3
- phpstan/phpstan-mockery: ^2.0.0
- phpunit/phpunit: ^12.1.6
- rector/rector: ^2.0.17
- roave/security-advisories: dev-latest
- symfony/var-dumper: ^7.3.0
- wmde/psr-log-test-doubles: ^3.4.0
This package is auto-updated.
Last update: 2025-06-04 21:19:58 UTC
README
PHP api to control Ikea smart lights (tradfri)
Inspired by
hvanderlaan/ikea-smartlight Python
Bages
Requirements and initial setup
see requirements.md
How to use
Docker Coap-Client
Get client
docker pull webproject/coap-client:latest
Run command in Docker
Generate API User and <COAP_API_KEY> (Shared Key)
docker run --rm --name coap-client webproject/coap-client -m post -u "Client_identity" -k "<COAP_GATEWAY_SECRET>" -e '{"9090":"php-api-user"}' "coaps://<COAP_GATEWAY_IP>:5684/15011/9063""
Get all api endpoints
docker run --rm --name coap-client webproject/coap-client -m get -u "php-api-user" -k "<COAP_API_KEY>" "coaps://<COAP_GATEWAY_IP>:5684/.well-known/core"