PHP code example of maxkut / rtoperator

1. Go to this page and download the library: Download maxkut/rtoperator 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/ */

    

maxkut / rtoperator example snippets


// make client
$client = new Rtoperator\Client();
// execute methods
$client->getAll(); // Rtoperator\Data\All
$client->getTours(); // Rtoperator\Data\TourCollection
$client->getTourDates($tourId); // Rtoperator\Data\DatesCollection
$client->getTourImages($tourId); // array|string[]
$client->getTourServices($tourId); // Rtoperator\Data\ServicesCollection
$client->getServiceDiscounts($serviceId); // Rtoperator\Data\DiscountCollection
$client->getTourPrice($tourId); // Rtoperator\Data\PriceCollection
$client->getCountries(); // Rtoperator\Data\CountryCollection
$client->getDiscounts(); // Rtoperator\Data\DiscountCollection
$client->getCategoryMap(); // Rtoperator\Data\CategoryMapCollection
$client->getCategories(); // Rtoperator\Data\CategoryCollection