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.
Download amadeus4dev/amadeus-php
More information about amadeus4dev/amadeus-php
Files in amadeus4dev/amadeus-php
Package amadeus-php
Short Description PHP library for the Amadeus Self-Service APIs
License MIT
Informations about the package amadeus-php
Amadeus PHP SDK
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
- Getting Started
- Initialization
- Using SSL Certificate
- Documentation
- Making API Calls
- Response
- Logging and Debugging
- List of Supported Endpoints
- Development and Contributing
- Getting Help
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
ext-json Version *
ext-curl Version *