Download the PHP package mdphp/region without Composer

On this page you can find all versions of the php package mdphp/region. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package region

国家统计局公开的中国省市区镇行政区域结构化信息, 可广泛用于各行业的省市区镇地址信息维护.

本组件开箱即用, 提供了省市区镇数据的查询方法, 也提供 json 数据文件以及 sql 数据库导入文件, 方便开发者在各种场景中集成使用.

本组件还提供了更新地区数据的方法, 在 laravel 环境中执行 即可拉取最新的中国省市区镇行政区域数据.

点击查看DEMO

安装

注意: 支持 laravel 6.x 以上版本

使用

HTTP 接口

更新地区数据

在 laravel 中更新地区数据

在 package 中更新地区数据

创建 regions 数据表

数据目录

按地区 id 命名的 json 文件中存放某地区的信息以及该地区的所有下级地区

31 个省份数据(不包含省份的下级地区)

所有的地区信息(包含该地区的所有下级地区)

数据库文件

所有的地区信息(包含该地区所有下级), 可在 mysql 中导入按需使用

测试

联系

关注微信公众号 mdphp 了解更多新鲜干货

mdphp is the shortcut of modern php, it exists for deveoping php apps more efficiently and easily.


All versions of region with dependencies

PHP Build Version
Package Version
Requires fabpot/goutte Version ^4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mdphp/region contains the following files

Loading the files please wait ....