Skip to content

ghaffaru/ghcities-php

Repository files navigation

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.

About

A php package for working with cities in ghana .

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages