An example API for shelly, implemented with PHP and Laminas Mezzio.
shelly-api will be released as soon as these items are completed:
- CSRF Implemetation;
- Validation of Origin;
- Validation of presence of input (
SHELLY_INPUT
); - Parser;
- Example of a command execution.
- PHP >= 8.3
- Composer
- Fork this repository (if you don't understand why forking instead of cloning, scroll back and read the warning);
- Pull it to your machine;
- Install dependencies:
composer install
. - Evolve the fork to your needs and let me know how it goes!