itraq-php
![Software License][ico-license]
![Build Status][ico-travis]
![Coveralls Status][ico-coveralls]
, (*1)
PHP wrapper for the iTraq API., (*2)
iTraq is a celluar GPS tracking device which can be purchased at itraq.com, (*3)
Install
Via Composer, (*4)
``` bash
$ composer require zembrowski/itraq-php, (*5)
## Usage
With [Composer][link-composer]
``` php
require_once 'vendor/autoload.php';
$email = 'name@domain.com';
$password = 'pa$$word';
$apiKey = '{apiKey given by iTraq}';
try {
$itraq = new iTraq\User($apiKey);
$token = $itraq->login($email, $password);
$itraq = new iTraq\Devices($token);
$devices = $itraq->devices();
echo $devices;
} catch (Exception $e) {
echo '[ERROR] ' . $e->getMessage();
}
See examples.php for an advanced example., (*6)
Change log
Please see CHANGELOG for more information what has changed recently., (*7)
Contributing
Please see CONTRIBUTING for details., (*8)
Credits
Licenses
The MIT License and DBAD Public License apply. Please see LICENSE for more information., (*9)