PHPackages                             ozdemirburak/skyscanner-php - 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. ozdemirburak/skyscanner-php

AbandonedArchivedLibrary

ozdemirburak/skyscanner-php
===========================

Unofficial PHP SDK for Skyscanner's API

2.3.0(4y ago)453.7k14[2 issues](https://github.com/ozdemirburak/skyscanner-php/issues)MITPHPPHP ~7.1

Since Jul 13Pushed 4y ago7 watchersCompare

[ Source](https://github.com/ozdemirburak/skyscanner-php)[ Packagist](https://packagist.org/packages/ozdemirburak/skyscanner-php)[ Docs](https://github.com/ozdemirburak/skyscanner-php)[ RSS](/packages/ozdemirburak-skyscanner-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (22)Used By (0)

Unofficial PHP SDK for Skyscanner API
=====================================

[](#unofficial-php-sdk-for-skyscanner-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2284315020f1b117019d6a22ca80a422ea3b74e9f47256affac54627d6a3ea23/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f7a64656d6972627572616b2f736b797363616e6e65722d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ozdemirburak/skyscanner-php)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/89b61b4d778a133f5af877e8feaa0437b52a2f2037f17b75c06430798c472501/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6f7a64656d6972627572616b2f736b797363616e6e65722d7068702f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/ozdemirburak/skyscanner-php)[![Total Downloads](https://camo.githubusercontent.com/22b5f7b6b6105150240b0f6787551d713bd61177e2cb58db3e0a0a3e849e807e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f7a64656d6972627572616b2f736b797363616e6e65722d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ozdemirburak/skyscanner-php)

This is an unofficial PHP SDK for the [Skyscanner API](https://skyscanner.github.io/slate/)to support Flights, Car Hire, Hotels, Localisation, and Places services.

Currently, all of the services are implemented. Also tested all off the services except the Hotels one since could not find any valid API keys, and had no luck with contacting anyone from Skyscanner.

Install
-------

[](#install)

Via Composer

```
$ composer require ozdemirburak/skyscanner-php
```

For PHP 7.0 and below, use `~1.0` instead.

Usage
-----

[](#usage)

Please see the **[wiki](https://github.com/ozdemirburak/skyscanner-php/wiki)** for more detailed information about the methods and the parameters.

You can find a simple demonstration of how to use the methods below, or check the [tests](tests/) for more advanced examples.

### Flights: Live Pricing

[](#flights-live-pricing)

```
use OzdemirBurak\SkyScanner\Travel\Flights\LivePricing;

$pricing = new LivePricing($apiKey = 'your-api-key');
$pricing->setParameters([
    'adults' => 1,
    'country' => 'GB',
    'currency' => 'GBP',
    'destinationPlace' => 'IST',
    'locale' => 'en-GB',
    'originPlace' => 'LHR',
    'outboundDate' => date('Y-m-d', strtotime('+1 week')),
    'stops' => 0
]);
$flights = $pricing->getFlights($onlyFirstAgentPerItinerary = true);
```

### Flights: BrowseCache

[](#flights-browsecache)

```
use OzdemirBurak\SkyScanner\Travel\Flights\BrowseCache;

$cache = new BrowseCache($apiKey = 'your-api-key');
$cache->setParameters([
    'country' => 'TR',
    'currency' => 'TRY',
    'destinationPlace' => 'IST',
    'locale' => 'tr-TR',
    'originPlace' => 'LHR',
    'outboundPartialDate' => date('Y-m-d', strtotime('+1 week')),
]);
$quotes = $cache->getPrices()['Quotes'];
```

### Car Hire: Live Pricing

[](#car-hire-live-pricing)

```
use OzdemirBurak\SkyScanner\Travel\CarHire\LivePricing;

$pricing = new LivePricing($apiKey = 'your-api-key');
$pricing->setParameters([
    'country' => 'GB',
    'currency' => 'GBP',
    'dropoffplace' => 'ADB',
    'dropoffdatetime' => date('Y-m-d\TH:i', strtotime('+2 week')),
    'locale' => 'en-GB',
    'pickupplace' => 'IST',
    'pickupdatetime' => date('Y-m-d\TH:i', strtotime('+1 week')),
    'driverage' => 21
]);
$cars = $pricing->getCars();
```

### Hotels: Live Pricing

[](#hotels-live-pricing)

```
use OzdemirBurak\SkyScanner\Travel\Hotels\LivePricing;

$pricing = new LivePricing($apiKey = 'your-api-key');
$pricing->setParameters([
    'country'       => 'TR',
    'currency'      => 'TRY',
    'entity_id'     => 27544008,
    'checkin_date'  => date('Y-m-d', strtotime('+1 week')),
    'checkout_date' => date('Y-m-d', strtotime('+2 week')),
    'locale'        => 'tr-TR'
]);
$hotels = $pricing->getHotels();
```

### Localisation: Currency

[](#localisation-currency)

```
use OzdemirBurak\SkyScanner\Localisation\Currency;

$currency = new Currency($apiKey = 'your-api-key');
$currencies = $currency->get();
```

### Localisation: Locale

[](#localisation-locale)

```
use OzdemirBurak\SkyScanner\Localisation\Locale;

$locale = new Locale($apiKey = 'your-api-key');
$locales = $locale->get();
```

### Localisation: Market

[](#localisation-market)

```
use OzdemirBurak\SkyScanner\Localisation\Market;

$market = new Market($apiKey = 'your-api-key'));
$market->setLocale('en-GB');
$countries = $market->get();
```

### Places

[](#places)

```
use OzdemirBurak\SkyScanner\PlacesService;

$places = new PlacesService($apiKey = 'your-api-key');
$geoCatalog = $places->get();
$list = $places->getList('UK', 'GBP', 'en-GB', 'istanbul');
$information = $places->getInformation('UK', 'GBP', 'en-GB', 'CDG-sky');
$hotels = $places->getHotels('UK', 'EUR', 'en-GB', 'paris');
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Burak Özdemir](https://github.com/ozdemirburak)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 94.9% 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 ~97 days

Recently: every ~358 days

Total

21

Last Release

1636d ago

Major Versions

0.3.3 → 1.0.02017-05-26

1.2.0 → 2.0.02018-10-21

PHP version history (4 changes)0.1.0PHP &gt;=5.5

0.3PHP ~5.6|~7.0

1.0.0PHP ~5.5|~7.0

2.0.0PHP ~7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ae2e490cb81102d1561dbb71328aeb1b2ea77ea93ebc409cd9e285228b65ea9?d=identicon)[ozdemirburak](/maintainers/ozdemirburak)

---

Top Contributors

[![ozdemirburak](https://avatars.githubusercontent.com/u/5355510?v=4)](https://github.com/ozdemirburak "ozdemirburak (56 commits)")[![jamesmills](https://avatars.githubusercontent.com/u/557096?v=4)](https://github.com/jamesmills "jamesmills (1 commits)")[![t3hn0](https://avatars.githubusercontent.com/u/4533442?v=4)](https://github.com/t3hn0 "t3hn0 (1 commits)")[![Vincentv92](https://avatars.githubusercontent.com/u/2413796?v=4)](https://github.com/Vincentv92 "Vincentv92 (1 commits)")

---

Tags

flightsskyscanner-apitravelflighthotelstravelskyscannerTripskyscanner-apicar hire

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ozdemirburak-skyscanner-php/health.svg)

```
[![Health](https://phpackages.com/badges/ozdemirburak-skyscanner-php/health.svg)](https://phpackages.com/packages/ozdemirburak-skyscanner-php)
```

PHPackages © 2026

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