Download the PHP package amadeus4dev/amadeus-php without Composer

On this page you can find all versions of the php package amadeus4dev/amadeus-php. 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 amadeus-php

Amadeus PHP SDK

Tests Packagist Packagist Discord

Amadeus provides a rich set of APIs for the travel industry. For more details, check out the Amadeus for Developers Portal.

:warning: Important message :warning:

:heavy_exclamation_mark: This SDK is maintained by the developer community only. The Amadeus for Developers team doesn't support or maintain it. :heavy_exclamation_mark:

Jump To:

Installation

This library requires PHP 7.4+. You can install the SDK via Composer

Getting Started

To make your first API call you will need to register for an Amadeus Developer Account and set up your first application.

Initialization

The client can be initialized directly:

Alternatively, it can be initialized without any parameters if the environment variables AMADEUS_CLIENT_ID and AMADEUS_CLIENT_SECRET are present.

Your credentials can be found on the Amadeus dashboard.

By default, the SDK is set to test environment. To switch to a production (pay-as-you-go) environment, please switch the hostname as follows:

Using SSL Certificate

This library is using PHP core extension cURL for making Http Request but disabling the options for SSL certificate verification. Thus it is highly suggested using a certificate with PHP’s cURL functions.

You can download the certificate bundle from the official cURL website. Once you have downloaded the file, you should move it to whatever directory makes the most sense for you and your setup.

Documentation

Amadeus has a large set of APIs, and our documentation is here to get you started. Head over to our reference documentation for in-depth information about every SDK method, its arguments and return types.

Making API Calls

This library conveniently maps every API path to a similar path.

For example, GET /v1/airport/direct-destinations?departureAirportCode=MAD would be:

Similarly, to select a resource by ID, you can pass in the ID to the singular path.

For example, GET /v2/shopping/hotel-offers/XXX would be:

Additionally, You can make any arbitrary API call as well directly with the methods provided below:

Keep in mind, this returns a raw Resource.

Response

Every successful API call returns a object. The object has the raw response body (in string format) available:

Logging and Debugging

You can enable debugging in the default HTTP client via a parameter during initialization, or using the environment variable.

List of Supported Endpoints

Development and Contributing

Want to contribute? Read our Contributors Guide for guidance on installing and running this code in a development environment.

License

This library is released under the MIT License.

Getting Help

You can find us on StackOverflow or join our developer community on Discord.


All versions of amadeus-php with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4.0
ext-json Version *
ext-curl Version *
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 amadeus4dev/amadeus-php contains the following files

Loading the files please wait ....