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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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:

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

PHP Build Version
Package Version
Requires php Version >=5.3.0
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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package fidel/hotel-api contains the following files

Loading the files please wait ....