LaravelPackages.net
Acme Inc.
Toggle sidebar
thedevlogs/travelport

Travelport API for Flight Bookings

67
7
About thedevlogs/travelport

thedevlogs/travelport is a Laravel package for travelport api for flight bookings. It currently has 7 GitHub stars and 67 downloads on Packagist. Install it with composer require thedevlogs/travelport. Discover more Laravel packages by thedevlogs or browse all Laravel packages to compare alternatives.

Last updated

Travelport

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);
                               
                         
                                                                     


Comments