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 1mo ago

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 14% 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

1553d 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

[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[omniphx/forrest

A Laravel library for Salesforce

2724.4M8](/packages/omniphx-forrest)[akamai-open/edgegrid-client

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client\_Auth.html

482.5M6](/packages/akamai-open-edgegrid-client)[muhammadhuzaifa/telescope-guzzle-watcher

Telescope Guzzle Watcher provide a custom watcher for intercepting http requests made via guzzlehttp/guzzle php library. The package uses the on\_stats request option for extracting the request/response data. The watcher intercept and log the request into the Laravel Telescope HTTP Client Watcher.

98239.8k1](/packages/muhammadhuzaifa-telescope-guzzle-watcher)[hyperwallet/sdk

A library to manage users, transfer methods and payments through the Hyperwallet API

12532.1k2](/packages/hyperwallet-sdk)[ory/hydra-client-php

Documentation for all of Ory Hydra's APIs.

1710.8k](/packages/ory-hydra-client-php)

PHPackages © 2026

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