Download the PHP package hightman/ipconv without Composer

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

简易IP地址信息转换查询

这是一个用 PHP 编写的 IPv4 地址信息转换查询库。 常用作于快速将 IP 地址转换为所在省市等地理位置、网络服务提供商等信息, 以便针对用户提供本地化的定制应用。

同时还包含一份基于纯真网络IP库的信息整理国内省市信息查询数据,可将 IPv4 地址转换为国内的省市及网络商信息,以及海外的国家名称。

Requirements

PHP >= 5.4.0

Install

Install from an Archive File

Extract the archive file downloaded from ipconv-master.zip to your project. And then add the library file into your program:

Install via Composer

If you do not have Composer, you may install it by following the instructions at getcomposer.org.

You can then install this library using the following command:

php composer.phar require "hightman/ipconv:*"

Usage

查询

使用非常简单,只需在实例化 \hightman\ipconv\Query 类后,调用 Query() 方法即可。 示范代码如下:

Demo

支持命令行、网页形式访问内置的 demo.php,无需多说,跑起来就懂。

定制创建数据

你可以通过附带的 build-data.php 根据自己的需求打造数据,实现通过 IP 地址快速查询任意信息。 用法参考如下:

用于输入的数据格式说明

格式为纯文本文件,每行为一条记录,每条记录由 4 个字段组成,字段时间用任意空格或制表符分隔, 空格数量任意均可,纯真 IP 数据导出后存为 UTF-8 即可直接使用。因此,仅最后那个字段内容可以包含空格。

对数据无排序要求,即使地址范围重叠、断档亦无所谓,转换程序会自动进行修正,这对于编写信息文件将十分方便。 四个字段的含义如下:

如果起始IP信息表述为 CIDR 的形式,则忽略结束IP字段,每个信息描述字段最多可达 255 字节。用法举例如下:

About dev-data

...

Contact me

If you have any questions, please report on github issues


All versions of ipconv with dependencies

PHP Build Version
Package Version
Requires php Version >=5.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 hightman/ipconv contains the following files

Loading the files please wait ....