bploeger / rezdy-api-v1
A PHP wrapper for The Rezdy Booking API Ver. 1
Requires
- php: >=7.1.3
- guzzlehttp/guzzle: ^6.1.1
- nesbot/carbon: ^2.16.0
- symfony/psr-http-message-bridge: ~1.2
- symfony/translation: ~2.6 || ~3.0 || ~4.0
Requires (Dev)
- phpunit/phpunit: ~5.0
This package is auto-updated.
Last update: 2024-05-20 23:06:02 UTC
README
This library utilizes GuzzlePHP
This library utilizes Carbon
Installing via Composer
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" } }
Documentation
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
Usage
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;
Minimum Requirements
Use of this library requires PHP 7.1.3+, and PHP cURL extension (http://php.net/manual/en/book.curl.php)