1. Go to this page and download the library: Download tourware/sdk-php library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tourware / sdk-php example snippets
use tourware\Client;
// Create a client for the flowcore API (staging by default)
$client = Client::create(
xApiKey: 'YOUR_X_API_KEY'
);
// Production:
$prodClient = Client::create(
xApiKey: 'YOUR_X_API_KEY',
staging: false
);
// Example: Fetch a travel record
$travel = $client->travels()->find('60feacb365f5f1002750c2b2');