PHPackages                             bookingcom/client - 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. bookingcom/client

ActiveLibrary

bookingcom/client
=================

Booking.com API client.

32PHP

Since May 21Pushed 4y ago1 watchersCompare

[ Source](https://github.com/rybakit/bookingcom-client)[ Packagist](https://packagist.org/packages/bookingcom/client)[ RSS](/packages/bookingcom-client/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Booking.com API client
======================

[](#bookingcom-api-client)

Usage example
-------------

[](#usage-example)

```
use Bookingcom\Client\Client;
use Bookingcom\Client\Result\ChangedHotels;

$client = new Client('', '');
$client->getChangedHotels('-2 hours')->then(function (ChangedHotels $changedHotels) {
    foreach ($changedHotels->getClosedHotelIds() as $hotelId) {
        // do something
    }

    // or
    foreach ($changedHotels->getChanges() as $hotelId => $changes) {
        // do something
    }
})->wait();
```

To send multiple requests asynchronously:

```
use GuzzleHttp\Promise;
use Bookingcom\Client\Client;

$client = new Client('', '');

$results = Promise\all([
    'descriptions' => $client->getHotelDescriptions(42, ['en', 'nl']),
    'facilities' => $client->getHotelFacilities(42, ['en', 'nl']),
])->wait();

foreach ($results as $type => $result) {
    // ...
}
```

Tests
-----

[](#tests)

Before running tests, copy [phpunit.xml.dist](phpunit.xml.dist) to `phpunit.xml`and set `BOOKINGCOM_API_USERNAME` and `BOOKINGCOM_API_PASSWORD` environment variables.

Then run the tests:

```
vendor/bin/phpunit
```

License
-------

[](#license)

The library is released under the MIT License. See the bundled [LICENSE](LICENSE) file for details.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity29

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/533861?v=4)[Eugene Leonovich](/maintainers/rybakit)[@rybakit](https://github.com/rybakit)

---

Top Contributors

[![rybakit](https://avatars.githubusercontent.com/u/533861?v=4)](https://github.com/rybakit "rybakit (2 commits)")

### Embed Badge

![Health badge](/badges/bookingcom-client/health.svg)

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

PHPackages © 2026

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