PHPackages                             kolyasapphire/travel-payouts - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. kolyasapphire/travel-payouts

ActiveLibrary[API Development](/categories/api)

kolyasapphire/travel-payouts
============================

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

v1.2.1(5y ago)01431MITPHPPHP &gt;=5.4.0

Since Dec 7Pushed 3y agoCompare

[ Source](https://github.com/kolyasapphire/travel-payouts)[ Packagist](https://packagist.org/packages/kolyasapphire/travel-payouts)[ RSS](/packages/kolyasapphire-travel-payouts/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (4)Versions (14)Used By (0)

Travel Payouts PHP SDK
======================

[](#travel-payouts-php-sdk)

[ ![Codeship Status for thewulf7/travel-payouts](https://camo.githubusercontent.com/255cf39a7b0f580c8244739f847588ca102acadba55c7578f669310a3c658a54/68747470733a2f2f636f6465736869702e636f6d2f70726f6a656374732f30376262356136302d376339352d303133332d323432642d3236656638663263336430352f7374617475733f6272616e63683d6d6173746572)](https://codeship.com/projects/119977)

Installation
------------

[](#installation)

### Composer

[](#composer)

```
composer require thewulf7/travel-payouts

```

or add to your composer.json file, in the "require" section

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

```

Usage
-----

[](#usage)

First of all create main Travel object and pass your token in it

```
use thewulf7\travelPayouts\Travel;

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

Then you can use it get different services

### Tickets service

[](#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](https://github.com/thewulf7/travel-payouts/wiki/TicketService)

### Flight service

[](#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

[](#partner-service)

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

### Data service

[](#data-service)

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

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~190 days

Recently: every ~399 days

Total

10

Last Release

2094d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/91564?v=4)[ks](/maintainers/ks)[@ks](https://github.com/ks)

---

Top Contributors

[![thewulf7](https://avatars.githubusercontent.com/u/1582808?v=4)](https://github.com/thewulf7 "thewulf7 (24 commits)")[![kolyasapphire](https://avatars.githubusercontent.com/u/4752441?v=4)](https://github.com/kolyasapphire "kolyasapphire (9 commits)")[![greevex](https://avatars.githubusercontent.com/u/148401?v=4)](https://github.com/greevex "greevex (2 commits)")[![fortis](https://avatars.githubusercontent.com/u/1042494?v=4)](https://github.com/fortis "fortis (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kolyasapphire-travel-payouts/health.svg)

```
[![Health](https://phpackages.com/badges/kolyasapphire-travel-payouts/health.svg)](https://phpackages.com/packages/kolyasapphire-travel-payouts)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
