承接 sagautam5/local-states-nepal 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sagautam5/local-states-nepal

Composer 安装命令:

composer require sagautam5/local-states-nepal

包简介

PHP Package for data set of local states of Nepal

README 文档

README

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

Version v1.0.8 has been tested on following php versions:

  • 7.0
  • 7.1
  • 7.2
  • 7.3
  • 7.4

Version v2.0.0 has been tested on following php versions:

  • 8.0
  • 8.1
  • 8.2
  • 8.3

Version v2.0.1 has been tested on following php versions:

  • 8.4

Version v2.1.0 has been tested on following php versions:

  • 8.5

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

Additionally, you can setup with Docker and visit localstates.test to view the demo. Here is guideline for setting up with Docker.

Local setup with Docker

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 sagautam5@gmail.com, 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.

sagautam5/local-states-nepal 适用场景与选型建议

sagautam5/local-states-nepal 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4.8k 次下载、GitHub Stars 达 33, 最近一次更新时间为 2021 年 01 月 04 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 sagautam5/local-states-nepal 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 sagautam5/local-states-nepal 我们能提供哪些服务?
定制开发 / 二次开发

基于 sagautam5/local-states-nepal 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 4.8k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 33
  • 点击次数: 5
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 33
  • Watchers: 2
  • Forks: 30
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-01-04