2017 © Pedro Peláez
 

library php-iot

PHP library for controlling household IoT devices.

image

a15lam/php-iot

PHP library for controlling household IoT devices.

  • Sunday, July 2, 2017
  • by a15lam
  • Repository
  • 2 Watchers
  • 1 Stars
  • 33 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 3 % Grown

The README.md

php-iot

PHP library to control Wemo devices and Sonoff with custom firmware found here., (*1)

Currently supports..., (*2)

  1. Wemo light bulb - on/off/dimming/status
  2. Wemo light switch - on/off/status
  3. Wemo switch (socket) - on/off/status
  4. Wemo insight switch - on/off/params/status
  5. Sonoff switch (custom firmware) - on/off/status
  6. Grouped devices under wemo bridge
  7. Device discovery

Getting started:

git clone https://github.com/a15lam/php-iot.git
cd php-iot
composer install
php example/console.php   // An example command line app to control your wemo devices.

Usage:

$lightSwitch = \a15lam\PhpIot\Discovery::getDeviceByName('Bed Room Light'); // Use your wemo device name as they show on your wemo app. Supports grouped devices
$lightSwitch->On();
sleep(2); // Allow a moment to see the light turning on.
$lightSwitch->Off();
// Get switch status
echo $lightSwitch->status();

Check the example directory for more usage. Run example/console.php from command line to control your devices., (*3)

The Versions

02/07 2017

dev-develop

dev-develop https://a15lam.github.io/php-iot/

PHP library for controlling household IoT devices.

  Sources   Download

Apache-2.0

The Requires

 

by Arif Islam

iot wemo smart sonoff

02/07 2017

dev-master

9999999-dev https://a15lam.github.io/php-iot/

PHP library for controlling household IoT devices.

  Sources   Download

Apache-2.0

The Requires

 

by Arif Islam

iot wemo smart sonoff

02/07 2017

0.1.3

0.1.3.0 https://a15lam.github.io/php-iot/

PHP library for controlling household IoT devices.

  Sources   Download

Apache-2.0

The Requires

 

by Arif Islam

iot wemo smart sonoff

02/07 2017

0.1.2

0.1.2.0 https://a15lam.github.io/php-iot/

PHP library for controlling household IoT devices.

  Sources   Download

Apache-2.0

The Requires

 

by Arif Islam

iot wemo smart sonoff

14/03 2017

0.1.1

0.1.1.0 https://a15lam.github.io/php-iot/

PHP library for controlling household IoT devices.

  Sources   Download

Apache-2.0

The Requires

 

by Arif Islam

iot wemo smart sonoff

02/03 2017

0.1.0

0.1.0.0 https://a15lam.github.io/php-iot/

PHP library for controlling household IoT devices.

  Sources   Download

Apache-2.0

The Requires

 

by Arif Islam

iot wemo smart sonoff