PHPackages                             firman/travel-api - 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. firman/travel-api

ActiveLibrary[API Development](/categories/api)

firman/travel-api
=================

Travel APIs fetch data from different providers, such as airlines, hotels, destinations, etc.

v0.1.11(3y ago)06MITPHPPHP ^8.0

Since Sep 4Pushed 3y ago1 watchersCompare

[ Source](https://github.com/jscoder-io/travel-api)[ Packagist](https://packagist.org/packages/firman/travel-api)[ Docs](https://github.com/jscoder-io/travel-api)[ RSS](/packages/firman-travel-api/feed)WikiDiscussions master Synced today

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

Travel API
----------

[](#travel-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f4a2a888c59d0286a28d513668dd65321d337a08ecdb21d52052c840d7bf3cac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6669726d616e2f74726176656c2d6170692e737667)](https://packagist.org/packages/firman/travel-api)[![Total Downloads](https://camo.githubusercontent.com/85388b4a73b0ea13c40d6ff5feb1c8b16cf5e5ebd64dba78d029bf48da5734bc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6669726d616e2f74726176656c2d6170692e737667)](https://packagist.org/packages/firman/travel-api)[![License](https://camo.githubusercontent.com/a78cf8992a15d09b2c371acc8f29b4af842f0861d989e223167daae41d6cd67a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6669726d616e2f74726176656c2d6170692e737667)](https://packagist.org/packages/firman/travel-api)

Travel APIs fetch data from different providers, such as airlines, hotels, destinations, etc. Currently, it only supports **Amadeus API**.

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

[](#installation)

```
composer require firman/travel-api
```

Usage
-----

[](#usage)

**Production environment**

```
require 'vendor/autoload.php';

use Firman\TravelApi\Client;
use Firman\TravelApi\Provider\Provider;

$client = new Client(Provider::AMADEUS, [
    'client_id' => 'your_production_client_id',
    'client_secret' => 'your_production_client_secret'
]);
```

**Test environment**

```
require 'vendor/autoload.php';

use Firman\TravelApi\Client;
use Firman\TravelApi\Provider\Provider;

$client = new Client(Provider::AMADEUS, [
    'client_id' => 'your_test_client_id',
    'client_secret' => 'your_test_client_secret',
    'env' => 'test'
]);
```

**Nearest Airport API**

```
// Find nearest airport within radius 150 km in Madrid city
$response = $client->getNearestAirport(40.416775, -3.703790, 150);
```

**Airport/City Search API**

```
// Search airport(s) which contain keyword 'Kennedy'
$response = $client->searchAirportOrCity('AIRPORT', 'Kennedy');
```

**Flight Checkin Links API**

```
// Find British Airways checkin links
$response = $client->getFlightCheckinLinks('BA');
```

**Airline Code Lookup API**

```
// Search airline by code for Garuda Indonesia
$response = $client->findAirlineByCode('GA');

// Search airline by code for British Airways and Garuda Indonesia
$response = $client->findAirlineByCode(['BA', 'GA']);
```

Credits
-------

[](#credits)

- [Firman](https://github.com/jscoder-io)

License
-------

[](#license)

This package is licensed under the MIT License.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~1 days

Total

6

Last Release

1391d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/56f43f6ea9a9267bfa895e3f0ab37123e60d2ce6e985f5c353623faaafc11991?d=identicon)[firmane](/maintainers/firmane)

---

Top Contributors

[![jscoder-io](https://avatars.githubusercontent.com/u/10295911?v=4)](https://github.com/jscoder-io "jscoder-io (8 commits)")

---

Tags

apiflighttravelhotel

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/firman-travel-api/health.svg)

```
[![Health](https://phpackages.com/badges/firman-travel-api/health.svg)](https://phpackages.com/packages/firman-travel-api)
```

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)

PHPackages © 2026

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