Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 1.14 KB

README.md

File metadata and controls

48 lines (33 loc) · 1.14 KB

ghcities-php

Latest Stable Version Total Downloads License

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.