8000 GitHub - brajindersingh/travelport-air
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

brajindersingh/travelport-air

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0