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

ActiveLibrary[API Development](/categories/api)

a3699z/hotel-api
================

this is a giata hotels api

00PHP

Since May 1Pushed 2y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Giata Hotels API
================

[](#giata-hotels-api)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)![Travis](https://camo.githubusercontent.com/4a0db8198869fe8fc319332173add06007b23f6e68b87a1d7627952e3c6af8b0/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f616d697268616d64792f67696174612d686f74656c732d6170692e7376673f7374796c653d666c61742d737175617265)[![Total Downloads](https://camo.githubusercontent.com/c071171b2817e5e50a19feb4ffeaa292c4c0a4c625d6bff28136f7d5b0dc2f19/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616d697268616d64792f67696174612d686f74656c732d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/amirhamdy/giata-hotels-api)

Install
-------

[](#install)

`composer require amirhamdy/giata-hotels-api`

For versions &lt; 5.5 of Laravel, add the service provider of the package and alias the package.

Open your `config/app.php` file.

Add a new line to the `providers` array:

```
GiataHotels\GiataHotelsServiceProvider::class

```

And add a new line to the `aliases` array:

```
'GiataAPI' => GiataHotels\GiataHotelsFacade::class

```

Now you're ready to start using the GiataAPI in your application.

Quick start
-----------

[](#quick-start)

```
use GiataAPI;

$response = GiataAPI::getHotelsByCountry('EG', true);
```

```
// $response sample:

{
  "property": [{
      "giataId": "3",
      "lastUpdate": "2020-04-26T03:18:15+02:00",
      "href": "https://multicodes.giatamedia.com/webservice/rest/1.latest/properties/3"
    },
    {
      "giataId": "4",
      "lastUpdate": "2020-04-26T03:18:15+02:00",
      "href": "https://multicodes.giatamedia.com/webservice/rest/1.latest/properties/4"
    },
    ...
    ...
  ],
  "country": "EG",
  "lastUpdate": "2020-04-30"
}
```

Usage
-----

[](#usage)

This package gives you the following methods to use:

- [Get All Hotels By Country Code](#giataapigethotelsbycountry)
- [Get A Hotel By Giata ID](#giataapigethotelbygiataid)
- [Get Hotel's Images By Giata ID](#giataapigetimagesbygiataid)
- [Get Hotel's Translations By Giata ID](#giataapigettextsbygiataid)

#### GiataAPI::getHotelsByCountry()

[](#giataapigethotelsbycountry)

Getting all hotels in a country, you can just use the `getHotelsByCountry()` method.

- In its most basic form you can specify the countryCode.

```
GiataAPI::getHotelsByCountry('EG');
```

- As an optional second parameter you can pass it, the multi `boolean` option so you can get all information for each hotel in one request.

```
GiataAPI::getHotelsByCountry('EG', true);
```

#### GiataAPI::getHotelByGiataId()

[](#giataapigethotelbygiataid)

- Getting hotel's information using its Giata ID.

```
GiataAPI::getHotelByGiataId(3);
```

#### GiataAPI::getImagesByGiataId()

[](#giataapigetimagesbygiataid)

- Getting hotel's images using its Giata ID.

```
GiataAPI::getImagesByGiataId(3);
```

#### GiataAPI::getTextsByGiataId()

[](#giataapigettextsbygiataid)

- Getting hotel's translations in a specific language `default='ar` using its Giata ID.

```
GiataAPI::getTextsByGiataId(3);
```

- As a second parameter you can pass the language.

```
GiataAPI::getTextsByGiataId(3, 'fr');
```

Other packages you may be interested in
---------------------------------------

[](#other-packages-you-may-be-interested-in)

- [giata-hotels-commands](https://github.com/amirhamdy/giata-hotels-commands)

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security-related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](/LICENSE.md) for more information.

###  Health Score

11

—

LowBetter than 0% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity18

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://www.gravatar.com/avatar/f8975933e92a828b80751b762bf1c85fe7e6119fbcff9e8c1c857ddd7e05ecf2?d=identicon)[a3699z](/maintainers/a3699z)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M478](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M271](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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