ghaffaru / ghcities-php
PHP package for working with cities in ghana
1.1.0
2022-06-14 16:22 UTC
Requires
- php: ^8.0
- ext-json: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
- phpunit/phpunit: ^9.3
- vimeo/psalm: ^3.11
This package is auto-updated.
Last update: 2025-05-14 22:54:45 UTC
README
A php package for working with cities in ghana !
Installation
You can install the package via composer:
composer require ghaffaru/ghcities-php
Usage
Get all Regions in ghana
$regions = \Ghaffaru\GhCities\Region::all();
Get all cities in Ghana
$cities = \Ghaffaru\GhCities\City::all();
Get Cities in a Region
$cities = \Ghaffaru\GhCities\Region::getCities('Ahafo');
Testing
composer test
Contributing
Please see CONTRIBUTING for details.
Credits
- Oliver for compiling the cities.json file
License
The MIT License (MIT). Please see License File for more information.