Download the PHP package kz/lifx-php without Composer
On this page you can find all versions of the php package kz/lifx-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package lifx-php
Short Description lifx-php is a PHP package for the LIFX HTTP API.
License MIT
Homepage https://github.com/kz/lifx-php
Informations about the package lifx-php
lifx-php
lifx-php is a PHP package for the LIFX HTTP API.
The author is not affiliated with LIFX and LIFX is not involved in the development of this package in any way.
Request for stakeholder comments! I am looking to gauge whether this package is still being used to decide whether to continue maintaining it. Please email me or open an issue to let me know whether you are looking to use any endpoints which are missing or whether you would like to see this package kept up to date.
Install
Via Composer
Laravel Configuration
lifx-php has optional support for Laravel and comes with a Service Provider and Facades for easy integration. The vendor/autoload.php is included by Laravel, so you don't have to require or autoload manually. Just see the instructions below.
After you have installed lifx-php, open your Laravel config file config/app.php and add the following lines.
In the $providers array add the service providers for this package:
Add the facade of this package to the $aliases array:
Now the Lifx Class will be auto-loaded by Laravel.
You also need to supply your API Token in your .env environment file:
Usage
Laravel Usage
Change log
Please see CHANGELOG for more information what has changed recently.
Testing
Contributing
Please see CONTRIBUTING for details.
Credits
- Kelvin Zhang
- All Contributors
License
The MIT License (MIT). Please see License File for more information.