PHPackages                             longman/ip-tools - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. longman/ip-tools

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

longman/ip-tools
================

PHP IP Tools for manipulation with IPv4 and IPv6

1.2.1(9y ago)147245.6k↓10.7%10[4 issues](https://github.com/akalongman/php-ip-tools/issues)6MITPHPPHP &gt;=5.5

Since Nov 12Pushed 2y ago8 watchersCompare

[ Source](https://github.com/akalongman/php-ip-tools)[ Packagist](https://packagist.org/packages/longman/ip-tools)[ Docs](https://github.com/akalongman/php-ip-tools)[ RSS](/packages/longman-ip-tools/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (7)Used By (6)

PHP IP Tools
============

[](#php-ip-tools)

[![Build Status](https://camo.githubusercontent.com/50f4d53c8d582fc6f2d5daed6d815c9204adcc109fa3d6e1ffc4b2cc45127d27/68747470733a2f2f7472617669732d63692e6f72672f616b616c6f6e676d616e2f7068702d69702d746f6f6c732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/akalongman/php-ip-tools)[![Latest Stable Version](https://camo.githubusercontent.com/24286e91ba45aa847f41a2b08cfdb37b368c7ec87a42176da7578fa1a2c78aae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f4c6f6e676d616e2f69702d746f6f6c732e737667)](https://packagist.org/packages/longman/ip-tools)[![Total Downloads](https://camo.githubusercontent.com/8c4adfdcf098e161644616bdd442f4040d269fed97a1836f03d7f877592bd166/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f4c6f6e676d616e2f69702d746f6f6c732e737667)](https://packagist.org/packages/longman/ip-tools)[![Downloads Month](https://camo.githubusercontent.com/e542bf1b0b217a874ce3ada1dd572d21e65f3b7b20a453ff3b9b2571254b1bb8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f4c6f6e676d616e2f69702d746f6f6c732e737667)](https://packagist.org/packages/longman/ip-tools)[![License](https://camo.githubusercontent.com/a144d3b1e69f7f0de9afdd61742d4e66d6b9bc1f64d974db94b91ca6588f13e9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f4c6f6e676d616e2f69702d746f6f6c732e737667)](https://github.com/akalongman/ip-tools/LICENSE.md)

Universal IP Tools for manipulation on IPv4 and IPv6.

Require this package with Composer
----------------------------------

[](#require-this-package-with-composer)

Install this package through [Composer](https://getcomposer.org/). Edit your project's `composer.json` file to require `longman/ip-tools`.

Create *composer.json* file:

```
{
    "name": "yourproject/yourproject",
    "type": "project",
    "require": {
        "longman/ip-tools": "~1.1.0"
    }
}
```

And run composer update

**Or** run a command in your command line:

```
composer require longman/ip-tools

```

Usage
-----

[](#usage)

```
