lgladdy / cubesensors
A CubeSensors API library for PHP
v2.0.1
2015-01-24 11:28 UTC
Requires
- php: >=5.4.0
This package is not auto-updated.
Last update: 2024-12-21 17:17:24 UTC
README
A PHP library for the CubeSensors API
Usage
The library inherits the style of many OAuth libraries, like Abraham's TwitterOAuth library.
Use Composer to import the package:
"require": {
"php": ">=5.4.0",
"lgladdy/cubesensors": "v2.0.1" // Or "dev-master" if you want the latest code.
}
You can then import in your own PHP file if you want to go down that route:
require "vendor/autoload.php";
use lgladdy\CubeSensors\CubeSensors;
Alternatively, (or probably additionally!) check out /demo for an example of how the code should work (You'll need to copy /demo/config.dist.php to config.php and fill in the correct consumer keys you get from the "Your Apps" page on my.cubesensors.com.)
Todo
Write tests.
Version
2.0.1
Change Log
2.0.1
- This release hopefully fixes a bug with case sensitive file systems not being able to load the class.
2.0
- Made the library a composer compatible package
- Switch everything to be namespace and use composer style package name (See the /demo folder for example usage)