shabax / amadeus
There is no license information available for the latest version (dev-master) of this package.
Laravel Library for Amadeus Self-Service Atravel APIs
dev-master
2020-02-16 15:50 UTC
Requires
- guzzlehttp/guzzle: ^6.5
This package is auto-updated.
Last update: 2025-05-17 03:42:56 UTC
README
Laravel package for Amadeus Self-Service Travel APIs
Install with Composer
composer require shabax/amadeus
Configuration
php artisan vendor:publish --provider='ShaBax\Amadeus\AmadeusProvider'
you will see config/amadeus.php
. Replace the credentials
How to use
Option 1
You can import in your required class by using use ShaBax\Amadeus\AmadeusProvider;
Option 2
Add Amadeus in aliases under config/app.php
file.
'Amadeus'=> ShaBax\Amadeus\Amadeus::class'
Now its Ready to use
$params=new stdClass(); $params->origin='MAD'; $params->destination='PAR'; $params->departureDate='2020-04-01'; $params->returnDate='2020-04-15'; $result = Amadeus::flightLowFareSearch($params);
you can use The Amadeus Class anywhere you want it , in Controller or Blade File
Enjoy :)