PHPackages                             ampahkwabena/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. [HTTP &amp; Networking](/categories/http)
4. /
5. ampahkwabena/ghanapostgps

ActiveLibrary[HTTP &amp; Networking](/categories/http)

ampahkwabena/ghanapostgps
=========================

PHP package for connecting with GhanaPostGPS

v0.1.0(4y ago)090MITPHP

Since Feb 10Pushed 4y ago1 watchersCompare

[ Source](https://github.com/khobbie/ghanapostgps)[ Packagist](https://packagist.org/packages/ampahkwabena/ghanapostgps)[ RSS](/packages/ampahkwabena-ghanapostgps/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (3)Versions (2)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 ampahkwabena/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 = 'ASAASE-USER-ID'
$deviceId = 'DEVICE-ID'
$aesKey = '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 8.0 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

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1604d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6282bd6954d667508791dc37b5752a523586ae0088680ebde6cae04b95089959?d=identicon)[ampahkwabena](/maintainers/ampahkwabena)

---

Top Contributors

[![ampahkwabena](https://avatars.githubusercontent.com/u/22434053?v=4)](https://github.com/ampahkwabena "ampahkwabena (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel/socialite

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

5.7k108.5M885](/packages/laravel-socialite)[civicrm/civicrm-core

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

751291.4k43](/packages/civicrm-civicrm-core)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[concrete5/core

Concrete core subtree split

20166.1k52](/packages/concrete5-core)

PHPackages © 2026

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