PHP code example of fidel / hotel-api

1. Go to this page and download the library: Download fidel/hotel-api library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

fidel / hotel-api example snippets

app.php
 php artisan vendor:publish --provider="HotelAPI\Providers\HotelApiServiceProvider" 
 app/Http/Kernel.php 
 app/Http/route.php 
 
$api->group(['middleware' => 'token-amadeus'], function ($api) {
        $api->post('hotel-details', 'API\V1\HotelController@hotelDetails');
        ...
});

php artisan migrate