Giter Club home page Giter Club logo

local-states-nepal's Introduction

Local States Nepal

This will help to get data about local states in Nepal based on recent administrative division

Local States Nepal

Image Source: Wikipedia(Administrative divisions of Nepal)

Build Latest Stable Version Total Downloads Issues Stars License Forks Twitter

Description

Local States Nepal is the php composer package to get structured dataset about local states in Nepal.

Local States Nepal requires

PHP >= 7.0

Demo

You can view Province -> District -> Municipality -> Wards in following demo.

How to set up demo ?

You can find all source code for demo inside demo directory. You can clone this repository in your server and then visit following url:

local_server_url/local-states-nepal/demo/

Example: http://127.0.0.1/local-states-nepal/demo

Laravel Nepal

Demo Video:

https://www.loom.com/share/a8c3d825a9ee41a9817b24645453e979

Support

Currently, This library supports following two languages.

  • English
  • नेपाली

Installation

composer require sagautam5/local-states-nepal

Configuration

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.

About Dataset

All data are collected from wikipedia and various Nepal government sites. We have data set in Nepali and English format for following four entities.

  1. Province
  2. District
  3. Municipality
  4. Category
  5. Nested Data Set

You can see more details about data in the link provided in above list.

Basic Usage

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.

  1. Provinces
  2. Districts
  3. Municipality
  4. Category

Security

If you discover a security vulnerability within this package, please send an e-mail to [email protected], All security vulnerabilities will be promptly addressed.

🤝 Contributing

Please see CONTRIBUTING for details.

📄 License

The MIT License (MIT). Please see License File for more information.

local-states-nepal's People

Contributors

sagautam5 avatar iamsubingyawali avatar kamalakhatiwada avatar santosh-exe avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.