PHPackages                             therealartz/amadeus-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. therealartz/amadeus-php

ActiveLibrary[API Development](/categories/api)

therealartz/amadeus-php
=======================

PHP library for the Amadeus Self-Service travel APIs

0.2.1(6y ago)329Apache-2.0PHPPHP &gt;=7.3CI failing

Since Sep 29Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/therealartz/amadeus-php)[ Packagist](https://packagist.org/packages/therealartz/amadeus-php)[ RSS](/packages/therealartz-amadeus-php/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (6)Versions (4)Used By (0)

Amadeus PHP
===========

[](#amadeus-php)

[![Latest Stable Version](https://camo.githubusercontent.com/3b62dfb1406a905987a4bd25b478c06373b4729febf021fd0b0c7ee20cf19f62/68747470733a2f2f706f7365722e707567782e6f72672f7468657265616c6172747a2f616d61646575732d7068702f762f737461626c65)](https://packagist.org/packages/therealartz/amadeus-php)

This library provides implementation of Client to interact with Amadeus Self-Service API on PHP.

Installation via Composer
-------------------------

[](#installation-via-composer)

`composer require therealartz/amadeus-php`

Quickstart
----------

[](#quickstart)

### Setup client

[](#setup-client)

```
use Amadeus\Client;

$apiKey = 'api_key';
$apiSecret = 'api_secret';

$client = new Client($apiKey, $apiSecret);
```

Authentication will be performed before first request, but token needs to be stored on application side and putted in Client on each request.

// TODO: Provide some example

### Shopping Flight Offers

[](#shopping-flight-offers)

```
use Amadeus\Request\Shopping\FlightOffersRequestOptions;

$request = new FlightOffersRequestOptions(
    $origin = 'JFK',
    $destination = 'ORD',
    $departureDate = \DateTimeImmutable::createFromFormat('Y-m-d', '2020-03-01'), // Any \DateTimeInterface
    $returnDate = null,
    $adults = 2,
    $children = 0,
    $infants = 0,
    $seniors = 0,
    $travelClass = null,
    $nonStop = false,
    $currency = 'USD',
    $maxResults = 50,
    $maxPrice = null,
    $arrivalBy = null,
    $returnBy = null,
    $includeAirlines = [],
    $excludeAirlines = []
);

$results = $client->shoppingFlightOffers($request);
```

### Logging

[](#logging)

To enable library logging when creating Client pass an instance of `Psr\Log\LoggerInterface` as fourth argument (*optional*):

```
use Amadeus\Client;
use Monolog\Logger;

$client = new Client(
    $apiKey = 'api_key',
    $apiSecret = 'api_secret',
    $isProduction = false,
    $logger = new Logger(
        'amadeus',
        [
            new Monolog\Handler\StreamHandler(__DIR__ . '/var/log/amadeus.log')
        ]
    ),
);
```

### Caching

[](#caching)

To enable built-in library cache when creating Client pass an instance of `Symfony\Contracts\Cache\CacheInterface` (PSR-16 not supported yet) as fifth argument (*optional*):

```
use Amadeus\Client;
use Symfony\Component\Cache\Adapter\FilesystemAdapter;

$client = new Client(
    $apiKey = 'api_key',
    $apiSecret = 'api_secret',
    $isProduction = false,
    $logger = null,
    $cache = new FilesystemAdapter('amadeus', 0, __DIR__ . '/var/cache'),
);
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance54

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 55.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~9 days

Total

3

Last Release

2400d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bc2bcc7167755ae8dbb7df74b10910168dd931d1d8cdf759d33ccc4f1f4d1475?d=identicon)[therealartz](/maintainers/therealartz)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![therealartz](https://avatars.githubusercontent.com/u/21292595?v=4)](https://github.com/therealartz "therealartz (4 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/therealartz-amadeus-php/health.svg)

```
[![Health](https://phpackages.com/badges/therealartz-amadeus-php/health.svg)](https://phpackages.com/packages/therealartz-amadeus-php)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

517.9M7](/packages/avalara-avataxclient)[commercetools/commercetools-sdk

The official PHP SDK for the commercetools Composable Commerce APIs

19281.5k](/packages/commercetools-commercetools-sdk)[alexacrm/dynamics-webapi-toolkit

Web API toolkit for Microsoft Dynamics 365 and Dynamics CRM

81324.1k1](/packages/alexacrm-dynamics-webapi-toolkit)[tamara-solution/php-sdk

Tamara PHP Client Library

10259.4k1](/packages/tamara-solution-php-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
