jessyledama / kenya-subdivision-data
Kenya Subdivision Data.
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^7.3|^8.0
- fruitcake/laravel-cors: ^2.0
- guzzlehttp/guzzle: ^7.0.1
- laravel/framework: ^8.75
- laravel/sanctum: ^2.11
- laravel/tinker: ^2.5
- staudenmeir/belongs-to-through: ^2.5
Requires (Dev)
- barryvdh/laravel-debugbar: ^3.7
- facade/ignition: ^2.5
- fakerphp/faker: ^1.9.1
- laravel/sail: ^1.0.1
- mockery/mockery: ^1.4.4
- nunomaduro/collision: ^5.10
- phpunit/phpunit: ^9.5.10
README
This module introduces Regions, Counties, SubCounties and Wards into your project. It adds the necessary models, controllers, services and migrations for it to work. As this solution seeks to be as unobtrusive as possible, all the data has been handled using seeds.
Installation
-
Clone this repository
git clone https://github.com/JessyLedama/kenya-subdivision-data.git
-
Run
composer install
-
Migrate your database
php artisan migrate
-
Seed your database with data
php artisan db:seed
-
Run the system
php artisan serve
-
You can now access the data via
localhost:8000
or thoughlocalhost:8000/api
This data is broken down into:
- Regions
- Counties
- SubCounties
- Wards
The Goal
The goal for this package is to have all subdivision data for all Afrikan Countries. Whenever you are building an application that should make use of decentralized units of govt in Kenya and the rest of Afrika, you are forced to manually enter all those records over and over. This, right here, is a solution for that. Now using the api access, you can access the data programmatically and use it directly in your projects.
What's Covered:
Kenya's units of Gov't: (Regions are for classification, but are no longer used for administration in Kenya.)
- Counties
- Sub Counties/Constituencies
- Wards