PHPackages                             omnilesolutions/ghanapostgps - 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. omnilesolutions/ghanapostgps

ActiveLibrary

omnilesolutions/ghanapostgps
============================

PHP package for connecting with GhanaPostGPS

v0.0.5(4y ago)3632[4 PRs](https://github.com/omnilesolutions/ghanapostgps/pulls)MITPHP

Since Feb 23Pushed 3y ago1 watchersCompare

[ Source](https://github.com/omnilesolutions/ghanapostgps)[ Packagist](https://packagist.org/packages/omnilesolutions/ghanapostgps)[ RSS](/packages/omnilesolutions-ghanapostgps/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (10)Used By (0)

GhanaPostGPS
============

[](#ghanapostgps)

PHP package for GhanaPostGPS

This package connects with the GhanaPostGPS to look for digital addresses in Ghana.

Installation
------------

[](#installation)

You can install the package via composer using

```
composer require omnilesolutions/ghanapostgps
```

What you will need
------------------

[](#what-you-will-need)

Before connecting to GhanaPostGPS, you'll need the following:

1. AsaaseUser ID This is given to you during on-boarding with the GhanaPostGPS team and can be found under your profile from the [GPSAdmin Portal](https://gpsadmin.ghanapostgps.com)
2. DeviceID You'll need to create a device on the [GPSAdmin Portal](https://gpsadmin.ghanapostgps.com)and use the ID. Note that you can create multiple devices on the portal.
3. AES Key The GhanaPostGPS server uses AES encryption to communicate with with clients. You can access your AES key for each device you create in the portal.

Data APIs
---------

[](#data-apis)

Use the `GhanaPostGPS\GhanaPostGPS` object to get data.

```
$asaaseUser = 'YOUR-ASAASE-USER-ID'
$deviceId = 'YOUR-DEVICE-ID'
$aesKey = 'YOUR-AES-KEY-FOR-DEVICE'

$gps = new GhanaPostGPS\GhanaPostGPS($asaaseUser, $deviceId, $aesKey);
```

### Get Location for a GPS Name (Ghana Code)

[](#get-location-for-a-gps-name-ghana-code)

```
// Ghana Code
$gpsName = 'GA-585-7449';

// Location contains center latitude and longitude as well as
// a box around the center. You also get postcode, region,
// area, street, etc.
$location = $gps->getLocation($gpsName);
```

### Get GPS Name (Ghana Code) for a location

[](#get-gps-name-ghana-code-for-a-location)

```
$location = [
    'lat' => 5.7525573723,
    'lng' => -2.873287368
];

// The GPS info contains postcode, region, area and street info
// for the provided location.
$gpsInfo = $gps->getGps($location);
```

Tests
-----

[](#tests)

Tests are setup in a way that actually connect with GhanaPostGPS to make sure everything works.

To run tests, supply your credentials in `tests/Unit/GhanaPostGPSTest`and run `vendor/bin/phpunit`

### Prerequisites

[](#prerequisites)

- PHP 5.6 or above
- [curl](https://secure.php.net/manual/en/book.curl.php) and [openssl](https://secure.php.net/manual/en/book.openssl.php)extensions.

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

[](#contributing)

Contributions are welcome! Please do a PR with any bug-fixes or email me at for a long term commitment.

License
-------

[](#license)

This open-source project is licensed under the [MIT LICENSE](https://opensource.org/licenses/MIT)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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 ~179 days

Total

5

Last Release

1548d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/824841b6d0cfb8d074303922801390ab3985f4ba02d0f740bb8c58685522ebfb?d=identicon)[omnilesolutions](/maintainers/omnilesolutions)

---

Top Contributors

[![brightantwiboasiako](https://avatars.githubusercontent.com/u/8937063?v=4)](https://github.com/brightantwiboasiako "brightantwiboasiako (3 commits)")[![omnilesolutions](https://avatars.githubusercontent.com/u/58987176?v=4)](https://github.com/omnilesolutions "omnilesolutions (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/omnilesolutions-ghanapostgps/health.svg)

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

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k96.9M672](/packages/laravel-socialite)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[magento/community-edition

Magento 2 (Open Source)

12.1k52.1k10](/packages/magento-community-edition)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k17](/packages/civicrm-civicrm-core)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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