maxkut/rtoperator

www.rtoperator.ru 客户端

v1.3.0 2020-01-09 08:54 UTC

This package is auto-updated.

Last update: 2024-09-09 19:08:05 UTC


README

PHP 用于操作 www.rtoperator.ru API 的包装

API 文档.

该库仍在开发中。请随意创建 issue

安装

使用 composer 在项目中安装

$ composer require maxkut/rtoperator

最低系统要求: php: ^7.2

使用方法

这里很简单。

// 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

开发帮助

创建 PR