/php-adafruitio

Php classes to retrieve and post data to AdaFruit IO platform.

Primary LanguagePHPGNU General Public License v2.0GPL-2.0

This is a small library written in PHP, which aims to send/retrieve data to/from the AdaFruit IO platform.

Example of use:

//wrapper to your AIO account
$aio = new AdaFruitIO(MY_ADAFRUIT_IO_PRIVATE_KEY);

//obtain a wrapper for the feed called "Test":
$feed = $aio->getFeed("Test");
$feed->send(1234); //sends "1234" to the feed called "Test"
echo $feed->get(); // echoes the last value sent to the feed, i.e. "1234"