ezlocate / ezlocate-php-sdk
PHP SDK for EZ Locate API v1
Installs: 116
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/ezlocate/ezlocate-php-sdk
Requires
- php: >=5.4
- lodev09/php-util: *
- php-curl-class/php-curl-class: *
README
PHP SDK for EZ Locate API.
Installation
$ composer require ezlocate/ezlocate-php-sdk
Usage
use \EZLocate\EZLocate; use \EZLocate\Order; const EZL_USERNAME = 'YOUR_EZL_USERNAME'; const EZL_ACCESS_TOKEN = 'YOUR_EZL_ACCESS_TOKEN'; $ezl = new EZLocate(EZL_USERNAME, EZL_ACCESS_TOKEN); $data = [ 'notes' => 'My order notes', 'ref' => 'XXXX', 'ref_2' => 'YYYY', 'person' => [ 'firstname' => 'John', 'lastname' => 'Doe', 'ssn' => 'XXXX' ] ]; $order = $ezl->createOrder($data); print_r($order);
License
Released under the MIT License. See LICENSE file.