2017 © Pedro Peláez
 

library travel-payouts

PHP SDK for travelpayouts.com (forked from thewulf7/travel-payouts)

image

greevex/travel-payouts

PHP SDK for travelpayouts.com (forked from thewulf7/travel-payouts)

  • Sunday, October 8, 2017
  • by greevex
  • Repository
  • 0 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 11 Forks
  • 0 Open issues
  • 13 Versions
  • 0 % Grown

The README.md

Travel Payouts PHP SDK

Codeship Status for thewulf7/travel-payouts, (*1)

Installation

Composer

composer require thewulf7/travel-payouts

or add to your composer.json file, in the "require" section, (*2)

"thewulf7/travel-payouts": "1.1.*"

Usage

First of all create main Travel object and pass your token in it, (*3)

use thewulf7\travelPayouts\Travel; 

$travel = new Travel('YOUR TOKEN HERE');

Then you can use it get different services, (*4)

Tickets service

$ticketService = $travel->getTicketsService();
//Get flights found by our users in the last 48 hours from LED to MOW. Return array consists of thewulf7\travelPayouts\Ticket objects.
$flights = $ticketService->getLatestPrices('LED', 'MOW', false, 'rub', 'year', 1, 10);

See documentation, (*5)

Flight service

$flightService = $travel->getFlightService();
$flightService
       ->setIp('127.0.0.1')
       ->setHost('aviasales.ru')
       ->setMarker('123')
       ->addPassenger('adults', 2)
       ->addSegment('LED', 'MOW', '2016-02-01');
$searchData    = $flightService->search('ru', 'Y');
$searchResults = $flightService->getSearchResults($searchData['search_id']);

Partner service

$partnerService = $travel->getPartnerService();
//get user balance and currency of the balance
list($balance, $currency) = $partnerService->getBalance();

Data service

$dataService = $travel->getDataService();
//get all airports in the system
$airports    = $dataService->getAirports(); 

The Versions

08/10 2017

v1.2.1.x-dev

1.2.1.9999999-dev

PHP SDK for travelpayouts.com (forked from thewulf7/travel-payouts)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Johnny Utkin

08/10 2017

dev-master

9999999-dev

PHP SDK for travelpayouts.com (forked from thewulf7/travel-payouts)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Johnny Utkin

08/10 2017

v1.2.1

1.2.1.0

PHP SDK for travelpayouts.com (forked from thewulf7/travel-payouts)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Johnny Utkin

08/10 2017

dev-hotfix/issue-22

dev-hotfix/issue-22

PHP SDK for travelpayouts.com

  Sources   Download

MIT

The Requires

 

The Development Requires

by Johnny Utkin

05/04 2016

v1.1.5

1.1.5.0

PHP SDK for travelpayouts.com

  Sources   Download

MIT

The Requires

 

The Development Requires

by Johnny Utkin

05/04 2016

dev-hotfix/whereami

dev-hotfix/whereami

PHP SDK for travelpayouts.com

  Sources   Download

MIT

The Requires

 

The Development Requires

by Johnny Utkin

05/04 2016

v1.1.4

1.1.4.0

PHP SDK for travelpayouts.com

  Sources   Download

MIT

The Requires

 

The Development Requires

by Johnny Utkin

05/04 2016

dev-hotfix/getbalance

dev-hotfix/getbalance

PHP SDK for travelpayouts.com

  Sources   Download

MIT

The Requires

 

The Development Requires

by Johnny Utkin

31/12 2015

v1.1.3

1.1.3.0

PHP SDK for travelpayouts.com

  Sources   Download

MIT

The Requires

 

The Development Requires

by Johnny Utkin

09/12 2015

v1.1.2

1.1.2.0

PHP SDK for travelpayouts.com

  Sources   Download

MIT

The Requires

 

The Development Requires

by Johnny Utkin

08/12 2015

v1.1.1

1.1.1.0

PHP SDK for travelpayouts.com

  Sources   Download

MIT

The Requires

 

The Development Requires

by Johnny Utkin

08/12 2015

v1.1.0

1.1.0.0

PHP SDK for travelpayouts.com

  Sources   Download

MIT

The Requires

 

The Development Requires

by Johnny Utkin

07/12 2015

v1.0.0

1.0.0.0

PHP SDK for travelpayouts.com

  Sources   Download

MIT

The Requires

 

by Johnny Utkin