Laravel package for Amadeus Self-Service Travel APIs
composer require shabax/amadeus
php artisan vendor:publish --provider='ShaBax\Amadeus\AmadeusProvider'
you will see config/amadeus.php
. Replace the credentials
You can import in your required class by using use ShaBax\Amadeus\AmadeusProvider;
Add Amadeus in aliases under config/app.php
file.
'Amadeus'=> ShaBax\Amadeus\Amadeus::class'
$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 :)