PHPackages                             ustmaestro/goglobalapi - 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. ustmaestro/goglobalapi

ActiveProject

ustmaestro/goglobalapi
======================

This is goglobal service api library.

01913PHP

Since Apr 15Pushed 4y ago3 watchersCompare

[ Source](https://github.com/ustmaestro/goglobalapi)[ Packagist](https://packagist.org/packages/ustmaestro/goglobalapi)[ RSS](/packages/ustmaestro-goglobalapi/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

### goglobalapi

[](#goglobalapi)

This is GoGlobal WebService api library written in PHP.

### Install

[](#install)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist ustmaestro/goglobalapi "dev-master"
```

or add

```
"ustmaestro/goglobalapi": "dev-master"
```

to the require section of your composer.json file.

### Usage

[](#usage)

If you do not use composer add following line, that will register ustmaestro\\goglobalapi namespace

```
require_once( path_to_loader_class . '/Loader.php');
```

An example o using GGService

```
use ustmaestro\goglobalapi\GGService;
use ustmaestro\goglobalapi\lib\GGSearchModel;

$config['agency'] = 'Your GG Agency ID';
$config['user'] = 'Your GG Username';
$config['password'] = 'Your GG Password';

$service = new GGService($config);
$model = new GGSearchModel();

$model->city_code = 2016;       // GG internal city code
$model->check_in = '20161003';  // check in date
$model->nights = 3;             // number of nights

$model->rooms_number = 2;       // number of rooms

$model->rooms_persons = [       // persons count by rooms !!! attention index starts with -1-
    '1' => [                    // room 1
        'adult' => 1,           // adults count
        'child' => 0,           // childrens count
    ],
    '2' => [                    // room 1
        'adult' => 2,           // adults count
        'child' => 1,           // childrens count
    ],
];

$results =  $service->searchHotels($model);
var_dump($results);
```

Available service public methods For more details check api documentation

```
public function setMaxResults($max)
public function getMaxResults()
public function setTimeout($timeout)
public function getTimeout($timeout)

public function searchHotels(GGSearchModel $model)
public function searchHotelsGeo(GGSearchModel $model)
public function getHotelInfo($hotelCode)
public function getHotelInfoGeo($hotelCode)
public function insertBooking($agentReference, $hotelCode, $hotelCheckIn, $hotelNights, $hasAlternative, $leaderId, $bookingRooms)
public function cancelBooking($bookingId)
public function searchBooking($bookingId)
public function searchBookingAdvanced($dateFrom = "", $dateTo = "", $paxName = "", $cityCode = "", $nights = "", $hotelName = "")
public function checkBookingStatus($bookingId)
public function checkBookingsStatus($bookingsId = [])
public function checkBookingValuation($hotelCode, $arrivalDate)
public function getBookingVoucher($bookingId, $emergencyPhone = true)
public function getPiggyPoints($bookingId, $emergencyPhone = true)
public function getPaymentService($bookingId, $returnUrl)
public function getPriceBreakdown($hotelCode)
public function getBookingAmendementInfo($bookingId)
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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/47f963417506ccead049e37b1fc4c0ee3c34bdee348192a61063dbdb50f6ead3?d=identicon)[ustmaestro](/maintainers/ustmaestro)

---

Top Contributors

[![catiraumihail](https://avatars.githubusercontent.com/u/6123089?v=4)](https://github.com/catiraumihail "catiraumihail (2 commits)")[![ustmaestro](https://avatars.githubusercontent.com/u/10262179?v=4)](https://github.com/ustmaestro "ustmaestro (2 commits)")

### Embed Badge

![Health badge](/badges/ustmaestro-goglobalapi/health.svg)

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

PHPackages © 2026

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