Download the PHP package fidel/hotel-api without Composer
On this page you can find all versions of the php package fidel/hotel-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fidel/hotel-api
More information about fidel/hotel-api
Files in fidel/hotel-api
Package hotel-api
Short Description A PHP class to connect and request hotel services from Amadeus Client
License
Informations about the package hotel-api
Hotel Api
A PHP module to connect and request hotel services from Amadeus Client
Installation
To install this package you will need:
- Laravel 5.2
- PHP 5.5.9 +
Add to your file the repository directly:
Install via composer running in your terminal the command.
Once this has finished, you will need to add the service provider to the array in your config as follows:
Then run in your terminal:
Connection
To make succefull connection you need to specify this env variables in you file:
Authentication
To use the middleware you will have to register them in under the property:
Then in the you can use it like this:
When the user make the first request he will be logged in the Amadeus client and he received a token, then the next step would be to make the subsequent requests, with this token.
To make authenticated requests via http you will need to set an authorization header as follows:
Note to Apache users
Apache seems to discard the Authorization header if it is not a base64 encoded user/pass combo. So to fix this you can add the following to your apache config
Database
This package has some codifiers tables that it need for properly work. You need to specify with database driver you want to use for the migrations. You may specify the driver with this env variable in you file:
Then you can make the migration:
Updates
To keep updated this package you can use this command:
All versions of hotel-api with dependencies
guzzlehttp/guzzle Version 6.1.1
illuminate/http Version ^5.2
illuminate/routing Version ^5.2
illuminate/database Version ^5.2
league/fractal Version >=0.12.0