Download the PHP package crgao/ip2region without Composer

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

ip2region - 最自由的ip地址查詢庫,ip到地區的映射庫,提供Binary,B樹和純內存三種查詢算法,媽媽再也不用擔心我的ip地址定位。

將該庫打包成 PHP composer 版本

1. 99.9%準確率,定時更新:

數據聚合了一些知名ip到地名查詢提供商的數據,這些是他們官方的的準確率,經測試著實比純真啥的準確多了。
每次聚合一下數據需要1-2天,會不定時更新。

2. 標準化的數據格式:

每條ip數據段都固定了格式:城市Id|國家|區域|省份|城市|ISP

只有中國的數據精確到了城市,其他國家只能定位到國家,後前的選項全部是0,已經包含了全部你能查到的大大小小的國家。 (請忽略前面的城市Id,個人項目需求)

3. 體積小:

生成的數據庫文件ip2region.db只有1.5M(1.2版本前是3.5M)

4. composer 安裝:


All versions of ip2region with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3
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 crgao/ip2region contains the following files

Loading the files please wait ....