Laravel wrapper for Travelport Flight Booking using LowFareSearch
#This is still in devlopment phase and not ready for use in production.
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/
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
Open the config/app.php
and add this line in providers
section.
605A
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',
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);