A PHP library for interacting with the CubeSensors API
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
demo
src
.gitignore
LICENSE
README.md
composer.json

README.md

CubeSensors for PHP

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)