PHPackages                             amirhamdy/giata-hotels-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. amirhamdy/giata-hotels-api

ActiveLibrary[API Development](/categories/api)

amirhamdy/giata-hotels-api
==========================

this is a giata hotels api

1.0.4(5y ago)3303MITPHP

Since May 18Pushed 5y ago1 watchersCompare

[ Source](https://github.com/amirhamdy/giata-hotels-api)[ Packagist](https://packagist.org/packages/amirhamdy/giata-hotels-api)[ RSS](/packages/amirhamdy-giata-hotels-api/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (1)Versions (6)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

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

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

5

Last Release

2180d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/40494967?v=4)[Amir Hamdy](/maintainers/amirhamdy)[@amirhamdy](https://github.com/amirhamdy)

---

Top Contributors

[![amirhamdy](https://avatars.githubusercontent.com/u/40494967?v=4)](https://github.com/amirhamdy "amirhamdy (16 commits)")

### Embed Badge

![Health badge](/badges/amirhamdy-giata-hotels-api/health.svg)

```
[![Health](https://phpackages.com/badges/amirhamdy-giata-hotels-api/health.svg)](https://phpackages.com/packages/amirhamdy-giata-hotels-api)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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