PHPackages                             fidel/hotel-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. fidel/hotel-api

AbandonedLibrary[API Development](/categories/api)

fidel/hotel-api
===============

A PHP class to connect and request hotel services from Amadeus Client

0.1.1(10y ago)014PHPPHP &gt;=5.3.0

Since Apr 22Pushed 10y ago1 watchersCompare

[ Source](https://github.com/intrepido/hotel-api-test)[ Packagist](https://packagist.org/packages/fidel/hotel-api)[ RSS](/packages/fidel-hotel-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (9)Used By (0)

Hotel Api
=========

[](#hotel-api)

A PHP module to connect and request hotel services from Amadeus Client

\##Installation

To install this package you will need:

- Laravel 5.2
- PHP 5.5.9 +

Add to your `composer.json` file the repository directly:

```
"repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/foresttravel/hotel-api"
        }
 ]

```

Install via composer running in your terminal the command.

```
composer require foresttravel/hotel-api --prefer-source

```

Once this has finished, you will need to add the service provider to the `providers` array in your `app.php` config as follows:

`HotelAPI\Providers\HotelApiServiceProvider::class`

Then run in your terminal:

`php artisan vendor:publish --provider="HotelAPI\Providers\HotelApiServiceProvider"`

\###Connection To make succefull connection you need to specify this env variables in you `.env` file:

```
API_ENDPOINT_AMADEUS='*******'
API_USERNAME_AMADEUS='*******'
API_PASSWORD_AMADEUS='*******'

```

\###Authentication To use the middleware you will have to register them in `app/Http/Kernel.php` under the `$routeMiddleware` property:

```
protected $routeMiddleware = [
    ...
    'token-amadeus' => \HotelAPI\Middleware\AuthenticateTokenAmadeus::class
];

```

Then in the `app/Http/route.php` you can use it like this:

```
$api->group(['middleware' => 'token-amadeus'], function ($api) {
        $api->post('hotel-details', 'API\V1\HotelController@hotelDetails');
        ...
});

```

When the user make the first request he will be logged in the Amadeus client and he received a token, then the next step would be to make the subsequent requests, with this token.

To make authenticated requests via http you will need to set an authorization header as follows:

```
Authorization: Bearer {yourtokenhere}

```

*Note to Apache users*

Apache seems to discard the Authorization header if it is not a base64 encoded user/pass combo. So to fix this you can add the following to your apache config

```
RewriteEngine On
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]

```

\###Database This package has some codifiers tables that it need for properly work. You need to specify with database driver you want to use for the migrations. You may specify the driver with this env variable in you `.env` file:

```
API_CONNECTION_DRIVER='*****'

```

Then you can make the migration:

```
php artisan migrate

```

\###Updates To keep updated this package you can use this command:

```
composer update foresttravel/hotel-api

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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 ~0 days

Total

8

Last Release

3668d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/72df5a9b914a8e6b149a396167d45545acb55f90134e373492c47d755b0deed4?d=identicon)[intrepido](/maintainers/intrepido)

---

Top Contributors

[![intrepido](https://avatars.githubusercontent.com/u/3216724?v=4)](https://github.com/intrepido "intrepido (32 commits)")

### Embed Badge

![Health badge](/badges/fidel-hotel-api/health.svg)

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

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[flat3/lodata

OData v4.01 Producer for Laravel

96320.9k](/packages/flat3-lodata)[laravel/cashier-paddle

Cashier Paddle provides an expressive, fluent interface to Paddle's subscription billing services.

264778.4k3](/packages/laravel-cashier-paddle)[simplestats-io/laravel-client

Client for SimpleStats!

4515.5k](/packages/simplestats-io-laravel-client)[ryangjchandler/bearer

Minimalistic token-based authentication for Laravel API endpoints.

8129.8k](/packages/ryangjchandler-bearer)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1225.0k10](/packages/fleetbase-core-api)

PHPackages © 2026

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