Download the PHP package aaqib/geo-pakistan without Composer
On this page you can find all versions of the php package aaqib/geo-pakistan. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aaqib/geo-pakistan
More information about aaqib/geo-pakistan
Files in aaqib/geo-pakistan
Package geo-pakistan
Short Description Provide Provinces, divisions, districts, Tehsils/Talukas and cities relations database for Pakistan.
License MIT
Informations about the package geo-pakistan
Laravel Geo Pakistan Database
This package focused on Provinces/States, Divisions, Districts and Tehsils/Talukas database of Pakistan for Laravel. Additionally, population, area and density, is also added according to census of 2017. Latitude and longitude of the region center is also added.
Conceptions
There are 4 main objects in this package.
- Provinces/States: 7
- Divisions: 36
- Districts: 154
- Tehsils/talukas: 536
Localization
Right now, only English(default and fallback) is supported. We intend to add locale for urdu in the future updates.
Setup
-
composer require
-
Add Service Provider into
config/app.php
- Publish and init
Usage
-
get all Provinces
-
get all Divisions
-
get divisions belong to a province
-
get province or parent
-
get parents of tehsil
- get tehsils by province and division
About
This package published under MIT license. If you have any question or suggestion, please feel free to submit an issue, or email me Aaqib Mehran [email protected].
Have a nice day.