This library utilizes GuzzlePHP
This library utilizes Carbon
Composer is a dependency management tool for PHP that allows you to declare the dependencies your project needs and installs them into your project. In order to use the Rezdy API PHP SDK through composer, you must add "bploeger/rezdy-api-v1" as a dependency in your project's composer.json file.
{
"require": {
"bploeger/rezdy-api-v1": "^1.0"
}
}
The source documentation is hosted at https://github.com/bploeger/rezdy-api-v1/wiki
API Documentation provided by Rezdy is located at https://developers.rezdy.com/rezdy-api/reference
The RezdyAPI class contains the underlying services that hold the methods that use the API.
use Rezdy\RezdyAPI;
use Rezdy\Requests\SimpleSearch;
// Initialize the API
$rezdyAPI = new RezdyAPI('your api key');
// Set the search parameters
$searchParams = [
'search' => 'Smith',
'limit' => 50,
'offset' => 0
];
// Create the Simple Search Request
$search = new SimpleSearch($searchParams);
// Send the request to the API
$response = $this->rezdyAPI->customers->search($search);
// View the Response
echo $response;
Use of this library requires PHP 7.1.3+, and PHP cURL extension (http://php.net/manual/en/book.curl.php)