Download the PHP package szwss/china-address without Composer

On this page you can find all versions of the php package szwss/china-address. 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 china-address

中国城市区划

说明

  1. 一个关于 Laravel 的 中国行政区: 省份 城市 区县 乡镇 四级联动数据表生成,数据来源于权威机构:民政部和国家统计局. 民政部、国家统计局: 中华人民共和国民政部-中华人民共和国行政区划代码 中华人民共和国国家统计局-统计用区划和城乡划分代码 中华人民共和国国家统计局-统计用区划代码和城乡划分代码编制规则

本项目已更新至:

2018年统计用区划代码和城乡划分代码(截止时间:2018-10-31,发布时间:2019-01-31)

使用

发布migration文件 并填充数据

创建Address model

Address model 中 使用 AddressTrait

trait 方法

parent() 父级地址

children() 子地址

getFullPath($joiner) 获取完整的地址字符串,$joiner可选参数,地址字符串的拼接符,默认为' '

allChildren() 获取所有的用户,包含各级的children

待完善...


All versions of china-address with dependencies

PHP Build Version
Package Version
Requires overtrue/laravel-pinyin Version 4.*
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 szwss/china-address contains the following files

Loading the files please wait ....