thedevlogs/travelport

Travelport API for Flight Bookings

dev-master 2018-12-26 12:46 UTC

This package is auto-updated.

Last update: 2025-03-27 02:58:32 UTC


README

Laravel wrapper for Travelport Flight Booking using LowFareSearch

#This is still in devlopment phase and not ready for use in production.

Api Documentation

For documentation on the api please refer to https://support.travelport.com/webhelp/uapi/Subsystems/Schemas/Content/Schemas/LowFareSearchReq.html for register and login visit http://www.travelport.com/

Installation

Open composer.json and add this line below.

{
    "require": {
        "thedevlogs/travelport": "^1.0.0"
    }
}

Or you can run this command from your project directory.

composer require thedevlogs/travelport

Configuration

Open the config/app.php and add this line in providers section.

Thedevlogs\Travelport\TravelportServiceProvider::class,

add this line in the aliases section.

'Travelport' => Thedevlogs\Travelport\TravelportFacade::class

get the config by running this command.

php artisan vendor:publish --tag=config
php artisan vendor:publish --tag=logs

config option can be found app/travelport.php

    'TARGETBRANCH' => '',
    'CREDENTIALS' => '',
    'PROVIDER' => '',
    'DEBUG' => FALSE,
    'USER' => 'admin',

Basic Usage

Under your controller namespace add: use \Travelport;

You can use the function like this.

$book = app(Travelport::class);
$origin = 'JFK';
$destination = 'SAN';
$deptime = '2018-10-31';
$book::checkAirAvailability($origin, $destination, $deptime);