Sift PHP SDK
A PHP wrapper around Sift API. Supports PHP versions >5.4
and >7.0
., (*1)
Installation
composer require easilydo/sift-php-sdk
, (*2)
Usage
POST /v1/users, (*3)
$siftApi = new Easilydo\SiftApi('api_key', 'api_secret');
try {
$response = $sift->addUser('en_US', 'testuser');
} catch(Easilydo\Exceptions\SiftRequestException $e) {
echo 'SiftApi returned an error: ' . $e->getMessage();
}
Tests
Ensure all dependencies are installed by running php composer.phar install
, or
composer install
if you have composer installed globally., (*4)
bin/phpspec run
runs all tests., (*5)
Documentation
Documentation for the SDK can be found
here., (*6)
Changelog
Changelog can be found
here., (*7)