All Projects β†’ ozdemirburak β†’ skyscanner-php

ozdemirburak / skyscanner-php

Licence: MIT license
Unofficial PHP SDK for Skyscanner's API.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to skyscanner-php

amadeus-python
Python library for the Amadeus Self-Service travel APIs
Stars: ✭ 129 (+222.5%)
Mutual labels:  travel, flights
Roundtrip
πŸ πŸ›«πŸ›¬πŸ™οΈπŸ›«πŸ›¬πŸ™οΈπŸ›«πŸ›¬πŸ™οΈπŸ›«πŸ›¬ 🏠, minimizeπŸ’°of your🌴
Stars: ✭ 80 (+100%)
Mutual labels:  travel, flights
ForeignIpsum
Generate text for your mockups in multiple languages Β―\_(ツ)_/Β―
Stars: ✭ 43 (+7.5%)
Mutual labels:  travel
developer-guides
Developer Guides
Stars: ✭ 25 (-37.5%)
Mutual labels:  travel
european-transport-operators
NOT UP-TO-DATE ANYMORE, UNMAINTAINED. CHECK european-transport-feeds INSTEAD. List of european long-distance transport operators, available API endpoints, GTFS feeds and client modules.
Stars: ✭ 47 (+17.5%)
Mutual labels:  travel
Travel website-NextJS
Travel Site built with NextJS and Tailwindcss
Stars: ✭ 23 (-42.5%)
Mutual labels:  travel
sdk
πŸ”§ TypeScript SDK for Entur APIs
Stars: ✭ 36 (-10%)
Mutual labels:  travel
Online Travel Reservation
A replica of online travel booking site KAYAK(www.kayak.com) for cmpe-273. Visit ->
Stars: ✭ 37 (-7.5%)
Mutual labels:  travel
FlightBookingFlutter
Recreating a Flight Booking application for Flutter Study Jam BBSR DAY 2
Stars: ✭ 22 (-45%)
Mutual labels:  flights
bcplus
BoardComputer+ for E:D
Stars: ✭ 15 (-62.5%)
Mutual labels:  travel
Yoloo
Yoloo is a social travel app that lets travelers plan their trips, find travelmates, and share their experiences.
Stars: ✭ 20 (-50%)
Mutual labels:  travel
proper
A repository for the R tool propeR, which analyses travel time and cost using an OTP graph (see datasciencecampus/graphite)
Stars: ✭ 13 (-67.5%)
Mutual labels:  travel
deck
DECK is a powerful and high performant local web development studio unlike any other.
Stars: ✭ 1,414 (+3435%)
Mutual labels:  flights
transport-management-system
Transport Management System for Odoo
Stars: ✭ 105 (+162.5%)
Mutual labels:  travel
life log
A React-Native application implementing Firebase, Shoutem ui, Airbnb's react-native-maps, and Google Places API.
Stars: ✭ 18 (-55%)
Mutual labels:  travel
leaflet.TravelNotes
A complete mapping application. With this, you prepare a complete travel, adding itineraries and personnal notes to the map. When you travel is complete, you can save it to a file, export the itineraries to a gpx files, print the itineraries and a roadbook with the notes and itineraries description.
Stars: ✭ 31 (-22.5%)
Mutual labels:  travel
travel
Visualization of Sourabh's adventures
Stars: ✭ 16 (-60%)
Mutual labels:  travel
tabtrekker
Explore the world one tab at a time (Firefox addon).
Stars: ✭ 42 (+5%)
Mutual labels:  travel
amadeus-android
Android (Kotlin) library for the Amadeus Self-Service travel APIs
Stars: ✭ 15 (-62.5%)
Mutual labels:  travel
skyscanner-flight-api-client
Published on Maven Central Java Client for a Skyscanner Flight Search API hosted in Rapid API
Stars: ✭ 15 (-62.5%)
Mutual labels:  skyscanner-api

Unofficial PHP SDK for Skyscanner API

Latest Version on Packagist Software License Build Status Total Downloads

This is an unofficial PHP SDK for the Skyscanner API 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

Via Composer

$ composer require ozdemirburak/skyscanner-php

For PHP 7.0 and below, use ~1.0 instead.

Usage

Please see the 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 for more advanced examples.

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

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

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

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

use OzdemirBurak\SkyScanner\Localisation\Currency;

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

Localisation: Locale

use OzdemirBurak\SkyScanner\Localisation\Locale;

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

Localisation: Market

use OzdemirBurak\SkyScanner\Localisation\Market;

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

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

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].