Download the PHP package aoxiang/province-city-area without Composer

On this page you can find all versions of the php package aoxiang/province-city-area. 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 province-city-area

Laravel-Province-City-Area 「全国省市县乡镇街道」数据(数据来源于京东,内置爬虫,可自行获取最新数据)

StyleCI build status

这是一个提供「全国省市县乡镇街道」数据的轮子

试过了很多数据来源(国家统计局、网上其他开发者提供的json等),发现还是会有小部分省市有遗漏。

这个包的数据是来自于京东,相对来说会更准确、详尽一些。

增加地址解析,粘贴一段收件地址,自动识别收件人、电话、省市县、地址

内部自带京东「省市县乡镇街道」数据爬虫,用户可以自行运行爬取最新的「省市县乡镇街道」数据

项目地址

https://github.com/aoxiang594/laravel-province-city-area

Composer 安装

添加provider(laravel 版本 < 5.5)

Aoxiang\Pca\ProvinceCityAreaServiceProvider::class复制到config.phpproviders数组内

执行数据库迁移

最后一步:从京东获取新的「省市县乡镇街道」数据

其他

php artisan pca:refreshData -d:file|jd 更新数据有一个参数 driver

参数值 说明
file 从本地资源中获取数据,file是默认值
jd 从京东获取抓取最新数据

Demo


All versions of province-city-area with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0 || ^8.0
guzzlehttp/guzzle Version ~7.0
guzzlehttp/psr7 Version ~2.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 aoxiang/province-city-area contains the following files

Loading the files please wait ....