PHP Classes
elePHPant
Icontem

Get IP by ISP: Get IP address ranges using suip.biz Web service

Recommend this page to a friend!
  Info   View files Documentation   View files View files (10)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2017-10-05 (1 month ago) RSS 2.0 feedNot yet rated by the usersTotal: 107 This week: 1All time: 8,757 This week: 599Up
Version License PHP version Categories
getipbyisp 1.0The PHP License7Networking, PHP 5, Web services
Description Author

This class can get IP address ranges using suip.biz Web service.

It can send HTTP requests to the suip.biz API Web server to perform several types of queries to get IP address ranges.

Currently it can get IP address ranges by city, country or ISP.

Innovation Award
PHP Programming Innovation award nominee
September 2017
Number 12
This class can get IP address ranges using suip.biz Web service.

It can send HTTP requests to the suip.biz API Web server to perform several types of queries to get IP address ranges.

Currently it can get IP address ranges by city, country or ISP.

Manuel Lemos
Name: John <contact>
Classes: 1 package by
Country: Russian Federation Russian Federation
Age: ???
All time rank: 4079109 in Russian Federation Russian Federation
Week rank: 493 Up19 in Russian Federation Russian Federation Up
Innovation award
Innovation award
Nominee: 1x

Details

GetIpByIsp

Simple cURL based console application for getting IP ranges from https://suip.biz suip.biz web-services by city, country (very big size!! i'm really afraid) or ISP. In case of ISP you may specify single ip or web-site url of that provider as argument of script.

Dependencies

  • pear/console_commandline

Installation

Install via Composer:

composer require himei/get-ip-by-isp

For manual installation clone repo

git clone https://github.com/hlmel/getIpbyIsp.git

Follow to the root programm folder:

cd getIpbyIsp

Then install dependencies

composer install

Usage

Now follow to the src directory in root program folder:

cd src

Make main program file executable:

chmod +x getipbyisp.php

Now use it.

Type next in your console for getting help:

./getipbyisp.php -h

or

./getipbyisp.php --help

The output:

Console application for getting IP ranges 
from suip.biz web-services by city, country or ISP

Usage:
  getipbyisp.php [options] type request

Options:
  -o output, --output=output  File to store the result
                              
  -h, --help                  Show this help message and exit

Arguments:
  type     Set the type of which IP ranges will be requested: city, counrty or isp
           
  request  Request string: for country - 2-letter country code, for city - its name, for ISP - single IP or ISP's url

Examples

To get all IP ranges of Serbia

./getipbyisp.php country RS

To get all IP ranges of London and save it to file.txt

./getipbyisp.php city london -o file.txt

To get all IP ranges of Beeline ISP

./getipbyisp.php isp beeline.ru

or

./getipbyisp.php isp 217.118.85.19

Warning!!! In case of request by city, write the name of the city carefully and accurately, as much as possible. If an error occurs in the name, the search on the uncleaned database is activated, and the result includes ALL IP ranges from all possible variants. To get the most accurate result, the city name must not contain errors.

TODO

  • Tests

Contact

For bug reports or any other purpose you may contact me via email [himei at tuta dot io].

  Files folder image Files  
File Role Description
Files folder imagesrc (3 files)
Files folder imagetests (1 file)
Accessible without login Plain text file CHANGELOG.md Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file phpdox.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  src  
File Role Description
  Accessible without login Plain text file agents Data Auxiliary data
  Plain text file getipbyisp.php Class Class source
  Plain text file getipby_core.php Class Class source

  Files folder image Files  /  tests  
File Role Description
  Plain text file GetIpCoreTest.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:107
This week:1
All time:8,757
This week:599Up