Local States Nepal
This will help to get data about local states in nepal based on recent administrative division
Image Source: Wikipedia(Provinces of Nepal)
Local States Nepal is the php composer package to get structured dataset about local states in Nepal.
Local States Nepal Requires
PHP >= 5.5
Currently, This library supports following two languages.
composer require sagautam5/local-states-nepal
Currently, No mandatory configuration is required for using this package. We have used english as the default language and if you want nepali you have to specify the language while using this package.
All data are collected from wikipedia and various Nepal government sites. We have data set in Nepali and English format for following four entities.
You can see more details about data in the link provided in above list.
After installation, you can use features like this:
use Sagautam5\LocalStateNepal\Entities\Province; $province = new Province('np'); // Get List of all Provinces $provincesData = $province->allProvinces(); // Get List of All Provinces with District $provincesData = $province->getProvincesWithDistricts(); // Get List of All Provinces with District and Districts with Municipalities $provincesData = $province->getProvincesWithDistrictsWithMunicipalities();
NOTE: Default language is 'en' and if you want 'np' then you have to specify language while creating class object.
You can see more detail documentation of each entity in the links provided in following list.
If you discover a security vulnerability within this package, please send an e-mail to [email protected], All security vulnerabilities will be promptly addressed.
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.