dev-master
9999999-dev
The Requires
- php >=5.4.0
- illuminate/support 4.*
- anlutro/curl dev-master
by Mark Lewis
Wallogit.com
2017 © Pedro Peláez
Smartthings PHP is a library for interfacing with the SmartThings home automation system through PHP., (*1)
Install with composer. Open your composer.json file and add the following to the require array:, (*2)
"netalico/smartthings": "dev-master"
Run Composer to install or update the new requirement., (*3)
php composer install
or, (*4)
php composer update
Now you are able to require the vendor/autoload.php file to autoload the package., (*5)
After you have installed the package, just follow the instructions., (*6)
Smartthings PHP has optional support for Laravel 4 and it comes bundled with a Service Provider and a Facade for easy integration., (*7)
After installing the package, open your Laravel config file app/config/app.php and add the following lines., (*8)
In the $providers array add the following service provider for this package., (*9)
'Netalico\Smartthings\SmartthingsServiceProvider'
After installing, you can publish the package configuration file into your application by running the following command:, (*10)
php artisan config:publish netalico/smartthings
This will publish the config file to app/config/packages/netalico/smartthings/config.php where you can modify the package configuration., (*11)
This package provides a few basic methods for setting up the Oauth authentication with SmartThings and toggling switches and locks., (*12)