Download the PHP package slince/china without Composer

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

中国

我国的资料库查询库;本库主要包含民族、节日、地址库信息的查询;部分数据来源采集自百科以及国家统计局;欢迎收藏欢迎贡献代码;

Build Status Coverage Status Latest Stable Version Scrutinizer

Installation

执行下面命令安装

Document

你可以在这里发现文档;

Basic Usage

节日查询

按名称查找节日

民族查询

按名称查找

地址库查询

按名称查找地区

查询身份证所在地

地区链功能

通过AddressInterfacegetParent()getChildren()方法你可以自由地查找当前地区的上级或者下级地区,下级地区集合是RegionCollectionInterfaec 实例;

Json Serialize

上述代码会输出蚌埠市及其下属地区的完整的json树形结构;如果你不需要的话下级地区的话请将children设置为空

建议:在电商系统中城市县三级地区联动的数据可以使用此方法获取,避免将数据导入数据库再从数据库获取;

命令行工具

执行下面命令查看支持的所有命令

输出信息:

例: 展示我国所有的省、直辖市、自治区以及特别行政区:

上述命令会输出以下结果:

...

License

The MIT license. See MIT


All versions of china with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2||^8.0
ext-json Version *
symfony/console Version ^4.2|^5.0|^6.0
doctrine/collections Version ^1.0|^2.0
slince/config Version ^1.1
slince/di Version ^3.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 slince/china contains the following files

Loading the files please wait ....