kusaasira/uganda-geo
Composer 安装命令:
composer require kusaasira/uganda-geo
包简介
Find districts, counties, sub counties, parishes and villages in Uganda
README 文档
README
This is a PHP package that retrieves Uganda's districts with their respective counties, sub counties, parishes and villages in Uganda. This data has been scrapped off Uganda's passport's official portal.
Description
This package gives you the leverage to access all sub levels ranging from districts, counties, subcounties, parishes to villages in Uganda. You can also access the different mentioned areas independently.
Table of Contents
Requirements
In order to run this project, ensure that you have installed;
- PHP 7.4 or later
- Composer
Installation
This project using composer.
$ composer require kusaasira/uganda-geo
Usage
The examples below show examples of usage of the package and their resulting outputs
Retrieve Districts data.
use Uganda\Uganda; $uganda = new Uganda(); # Retrieve all districts $districts = $uganda->districts(); # Retrieve all counties in a particular district $counties = $uganda ->district('Mukono') ->counties(); # Retrieve all sub counties in a particular district $subCounties = $uganda ->district('Mukono') ->subCounties(); # Retrieve all parishes in a particular district $parishes = $uganda ->district('Mukono') ->parishes(); # Retrieve all villages in a particular district $villages = $uganda ->district('Mukono') ->villages();
Retrieve County data.
use Uganda\Uganda; $uganda = new Uganda(); # Retrieve all counties $counties = $uganda->counties(); # Retrieve specific county $county = $uganda->county('Adjumani West County'); # Retrieve all sub counties in a particular county $subCounties = $uganda ->county('Adjumani West County') ->subCounties(); # Retrieve all parishes in a particular county $parishes = $uganda ->county('Adjumani West County') ->parishes(); # Retrieve all villages in a particular county $villages = $uganda ->county('Adjumani West County') ->villages();
Retrieve Sub County data.
use Uganda\Uganda; $uganda = new Uganda(); # Retrieve all sub counties $subCounties = $uganda->subCounties(); # Retrieve specific sub county $subCounty = $uganda->subCounty('Namasale Town Council'); # Retrieve all parishes in a particular sub county $parishes = $uganda ->county('Namasale Town Council') ->parishes(); # Retrieve all villages in a particular sub county $villages = $uganda ->county('Namasale Town Council') ->villages();
Retrieve Parish data.
use Uganda\Uganda; $uganda = new Uganda(); # Retrieve all parishes $parishes = $uganda->parishes(); # Retrieve specific parish $parish = $uganda->parish('Bunamwamba'); # Retrieve all villages in a particular parish $villages = $uganda ->county('Bunamwamba') ->villages();
Retrieve Village data.
use Uganda\Uganda; $uganda = new Uganda(); # Retrieve all villages $villages = $uganda->villages(); # Retrieve specific village $subCounty = $uganda->village('Ayeye');
Credits
The data used in this package has been scrapped off This data has been scrapped off Uganda's passport's official portal as there is no updated geo data source since 2018 published anywhere.
Collaborators ✨
|
Tim3k |
Joshua Kusaasira |
Marshud |
Contributors ✨
|
Joshua Kusaasira |
Zack |
License
This package is free software distributed under the terms of the MIT license.
kusaasira/uganda-geo 适用场景与选型建议
kusaasira/uganda-geo 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 129 次下载、GitHub Stars 达 12, 最近一次更新时间为 2022 年 04 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 kusaasira/uganda-geo 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 kusaasira/uganda-geo 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 129
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 12
- 点击次数: 12
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2022-04-24