disapamok / srilanka-cities
This has included Sri Lanka's all the provinces, districts, and cities in a PHP array
Installs: 298
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 1
Forks: 3
Open Issues: 0
Type:package
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2025-06-06 11:34:43 UTC
README
This has included Sri Lanka's all the provinces, districts, and cities in a PHP array. Developers can use this class when they do want to let their visitors select their exact city.
Installation
Via composer.
composer require disapamok/srilanka-cities
Usage
use Disapamok\Modules\SriLanka; public function exampleFunction(){ return SriLanka::getProvinces(); // Returns all provinces return SriLanka::getDiscricts('Province'); // Returns disdricts of a province return SriLanka::getCities('District'); // Returns cities of a district }
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Author URL: disapamok.com