fourloop / symphonysdk
This package is abandoned and no longer maintained.
No replacement package was suggested.
SYMPHONY's unofficial PHP client library for using SYMPHONY Rest API.
dev-master
2017-08-15 01:13 UTC
Requires
- php: >=5.4
- guzzlehttp/guzzle: ~6.0
Requires (Dev)
- phpunit/phpunit: 5.2.*
This package is not auto-updated.
Last update: 2018-01-29 15:35:31 UTC
README
SYMPHONY's unofficial [PHP] client library for using SYMPHONY Rest API.
Alpha
This library is in Alpha. We will make an effort to support the library, but we reserve the right to make incompatible changes when necessary.
Supported APIs
The full list of supported APIs can be found here. The API endpoints are automatically generated, so if the API is not in the list, it is currently not supported by this API client library.
Questions/problems?
- If you've found an bug/issue, please file it on Bitbucket.
Installation
This library is distributed on composer
. In order to add it as a dependency, run the following command:
$ composer require fourloop/symphonysdk
Initialize
use Fourloop\SymphonySdk\Symphony;
// Initialize Symphony Client
$symphony_client = array(
"accessCode" => "SUBSCRIPTION_ACCESS_CODE",
"accessKey" => "SUBSCRIPTION_ACCESS_KEY",
"userAuthKey" => "ACCESS_TOKEN"
);
$this->symphony->createClient($symphony_client);
Usage
Example: View all country you have on symphony:
use Fourloop\SymphonySdk\Symphony;
// Initialize Symphony Client
$symphony_client = array(
"accessCode" => "SUBSCRIPTION_ACCESS_CODE",
"accessKey" => "SUBSCRIPTION_ACCESS_KEY",
"userAuthKey" => "ACCESS_TOKEN"
);
$this->symphony->createClient($symphony_client);
$this->symphony->artiles->viewall();