PHPackages                             dahabtours/amadeusclient - 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. dahabtours/amadeusclient

ActiveLibrary[API Development](/categories/api)

dahabtours/amadeusclient
========================

A client to utilize the amadeus self service flight and hotel search REST/JSON API

95.0k5PHP

Since Mar 5Pushed 7y ago4 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Amadeus PHP SDK
===============

[](#amadeus-php-sdk)

A simple API wrapper for integrating the Amadeus Self service APIs provided by dahabtours GmbH (). All resources of the "AIR" section are covered. mandatory parameters will be checked. See the documentation for more information on the parameters.

Installation
------------

[](#installation)

### Composer

[](#composer)

```
composer require dahabtours/amadeusclient

```

### Git

[](#git)

```
git clone https://github.com/dahabtours/amadeus-php-sdk.git

```

Function names
--------------

[](#function-names)

See the official documentation for more information.

- flightInspiration
- lowFares
- flightDates
- mostSearched
- mostSearchedByDestination
- mostTraveled
- mostBooked
- busiestPeriod
- checkinLinks
- nearestAirports
- locations
- location
- airlines
- hotelOffers
- hotelOfferByHotel
- hotelOffer

Examples
--------

[](#examples)

```
require('AmadeusClient.php');
$amadeus_api = new AmadeusDahabtours\SelfServiceApiClient({API_KEY},{API_SECRET});

# Flight Inspiration Search
$flight_inspiration = $amadeus_api->flightInspiration([
    'origin'        => 'MAD'
]);

# Flight Cheapest Date Search
$flight_dates = $amadeus_api->flightDates([
    'origin'        => 'MAD',
    'destination'   => 'MUC'
]);

# Flight Low-fare Search
$flight_offers = $amadeus_api->lowFares([
    'origin'        => 'FRA',
    'destination'   => 'CAI',
    'departureDate' => '2019-07-15'
]);

# Flight Check-in Links
$checkin_links = $amadeus_api->checkinLinks([
    'airlineCode' => 'BA'
]);

# Airline Code Lookup
$airlines = $amadeus_api->airlines([
    'airlineCodes' => 'BA'
]);

# Airport & City Search (autocomplete)
# Find all the cities and airports starting by the keyword 'LON'
$locations = $amadeus_api->locations([
    'keyword'  => 'LON',
    'subType' =>'AIRPORT,CITY'
]);

# Get a specific city or airport based on its id (here Airport of LHR)
$location = $amadeus_api->location([
    'locationId'  => 'ALHR'
]);

# Airport Nearest Relevant (for London)
$nearest_airports = $amadeus_api->nearestAirports([
    'longitude' => 0.1278,
    'latitude'  => 51.5074
]);

# Flight Most Searched Destinations
# Get the most searched destinations from an origin
$most_searched = $amadeus_api->mostSearched([
    'originCityCode'    => 'MAD',
    'searchPeriod'      => '2017-08',
    'marketCountryCode' => 'ES'
]);

# How many people in Spain searched for a trip from Madrid to New-York in August 2017?
$most_searched_by_destination = $amadeus_api->mostSearchedByDestination([
    'originCityCode'      => 'MAD',
    'destinationCityCode' => 'NYC',
    'searchPeriod'        => '2017-08',
    'marketCountryCode'   => 'ES'
]);

# Flight Most Booked Destinations
$most_booked = $amadeus_api->mostBooked([
    'originCityCode'    => 'MAD',
    'period'      => '2017-08'
]);

# Flight Most Traveled Destinations
$most_traveled = $amadeus_api->mostTraveled([
    'originCityCode'    => 'MAD',
    'period'      => '2017-08'
]);

# Flight Busiest Period
$busiest_period = $amadeus_api->busiestPeriod([
    'cityCode'    => 'MAD',
    'period'      => '2017',
    'direction'      => 'ARRIVING'
]);

# Hotel Search API
# Get list of hotels by cityCode
$hotel_search = $amadeus_api->hotelOffers([
    'cityCode'        => 'LON'
]);

# Get list of offers for a specific hotel
$hotel_search_by_hotel = $amadeus_api->hotelOfferByHotel([
    'hotelId'        => 'IALONCHO'
]);

# Confirm the availability of a specific offer
$hotel_offer = $amadeus_api->hotelOffer([
    'offerId'        => 'D5BEE9D0D08B6678C2F5FAD910DC110BCDA187D21D4FCE68ED423426D0A246BB'
]);
```

License
-------

[](#license)

MIT license

Contribute
----------

[](#contribute)

Feel free to contribute by Pull Requests.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13590599?v=4)[dahabtours](/maintainers/dahabtours)[@dahabtours](https://github.com/dahabtours)

---

Top Contributors

[![cioddi](https://avatars.githubusercontent.com/u/761817?v=4)](https://github.com/cioddi "cioddi (11 commits)")

### Embed Badge

![Health badge](/badges/dahabtours-amadeusclient/health.svg)

```
[![Health](https://phpackages.com/badges/dahabtours-amadeusclient/health.svg)](https://phpackages.com/packages/dahabtours-amadeusclient)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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