ljoboy/drc-data 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

ljoboy/drc-data

Composer 安装命令:

composer require ljoboy/drc-data

包简介

Our goal is to create solutions for our country (DRC). based on the reality of the situation, this repository will contain the basic data for the creation of any solution.

关键字:

README 文档

README

This library contains DRC location data, populations, cities, provinces and more

Latest Stable Version Total Downloads Latest Unstable Version License

Installation

$ composer require ljoboy/drc-data

Examples

Provinces

  • Get all provinces
<?php

use DRCData\Province;

$province = new Province();

//Returning array of object
$all_provinces = $province->getAll();
  • Get specific province
<?php

use DRCData\Province;

$province = new Province();

//It's all returning object
$specific_province = $province->getByName('kinshasa'); //It's case insensitive
$random_province = $province->random();
$province_by_id = $province->getById(5);

Territories

  • Get all territories
<?php
use DRCData\Territoire;

$territoire = new Territoire();

$all_territoire = $territoire->getAll();
  • Villes (Cities) can be searched by name and province.
<?php
use DRCData\Ville;

$ville = new Ville();

$villes = $ville->search('shi');
$villes_by_province_id = $ville->byProvinceId(5);

Contribution

Contributors


Dark Angel

Acknowlegments

License

MIT

Author

Dark Angel

统计信息

  • 总下载量: 47
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-03-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固