PHPackages                             devtoolboxuk/ip-address - 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. devtoolboxuk/ip-address

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

devtoolboxuk/ip-address
=======================

IP Address Library

1.0.1(6y ago)0772MITPHP

Since Dec 27Pushed 6y ago1 watchersCompare

[ Source](https://github.com/devtoolboxuk/ip-address)[ Packagist](https://packagist.org/packages/devtoolboxuk/ip-address)[ RSS](/packages/devtoolboxuk-ip-address/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (2)

IP Address
==========

[](#ip-address)

[![Build Status](https://camo.githubusercontent.com/aff4236144d0ea62fb6c3acc0a96e45c6cf3fb692c8494c0418782e9aa89e031/68747470733a2f2f6170692e7472617669732d63692e6f72672f646576746f6f6c626f78756b2f69702d616464726573732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/devtoolboxuk/ip-address)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/191dd16842af109e364c2fd02f8f7282a828bde050e5cda22eb5e2794433d93c/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f646576746f6f6c626f78756b2f69702d616464726573732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/devtoolboxuk/ip-address/?branch=master)[![Coveralls](https://camo.githubusercontent.com/057bee88d1e4305d6d7bf6114363cff3a3ab5932390fc9c7b0868d133a37be72/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f646576746f6f6c626f78756b2f69702d616464726573732f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/devtoolboxuk/ip-address?branch=master)[![CodeCov](https://camo.githubusercontent.com/677f2595be1eaf7a55086e5c9da1fe7d8b7d39c7a1315e852eefd3deade2163d/68747470733a2f2f636f6465636f762e696f2f67682f646576746f6f6c626f78756b2f69702d616464726573732f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/devtoolboxuk/ip-address)

[![Latest Stable Version](https://camo.githubusercontent.com/39a43b1e1becf37d62e191aec65c4e675ad37a993bd4fe837891685aae7be411/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646576746f6f6c626f78756b2f69702d616464726573732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/devtoolboxuk/ip-address)[![Total Downloads](https://camo.githubusercontent.com/8dcfe87b5f75e4873921cfbed45785470102d46d6d4a75a931b3b5efb0acdf01/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646576746f6f6c626f78756b2f69702d616464726573732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/devtoolboxuk/ip-address)[![License](https://camo.githubusercontent.com/8ba13f72c5d03967a7e4643a734467521cf2afe4baddb7d1f78a89676cbcb162/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f646576746f6f6c626f78756b2f69702d616464726573732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/devtoolboxuk/ip-address)

Table of Contents
-----------------

[](#table-of-contents)

- [Background](#Background)
- [Usage](#Usage)
- [Maintainers](#Maintainers)
- [License](#License)

Background
----------

[](#background)

Used to convert an IP address to an Integer, or for a IPv6 IP address, a long it will also convery an IP range into an array of integers representing the IP address.

Initially created so that I could store IP addresses in a database and do a look up against it.

Usage
-----

[](#usage)

```
$ composer require devtoolboxuk/ip-address
```

Then include Composer's generated vendor/autoload.php to enable autoloading:

```
require 'vendor/autoload.php';
```

```
use devtoolboxuk/ip-address;

IP::parse($ipAddress)->long
IP::parse($ipAddress)->toLong()
```

Maintainers
-----------

[](#maintainers)

[@DevToolboxUk](https://github.com/DevToolBoxUk).

License
-------

[](#license)

[MIT](LICENSE) © DevToolboxUK

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~149 days

Total

2

Last Release

2546d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/11e7828108a460ad0b3dc92c08fa9e0e863168b8dae2b4d7041a6d699f936faa?d=identicon)[devtoolboxuk](/maintainers/devtoolboxuk)

---

Top Contributors

[![devtoolboxuk](https://avatars.githubusercontent.com/u/6337609?v=4)](https://github.com/devtoolboxuk "devtoolboxuk (10 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/devtoolboxuk-ip-address/health.svg)

```
[![Health](https://phpackages.com/badges/devtoolboxuk-ip-address/health.svg)](https://phpackages.com/packages/devtoolboxuk-ip-address)
```

###  Alternatives

[tatter/menus

Dynamic menus for CodeIgniter 4

1713.8k1](/packages/tatter-menus)[llm/mcp-server

PHP SDK for building MCP servers

431.1k](/packages/llm-mcp-server)[asorasoft/chhankitek

Convert from AD (Anno Domini) to Lunar (Chhankitek) format.

104.2k](/packages/asorasoft-chhankitek)[mohammedmanssour/super-simple-dto

Creating data transfer objects with the power of php objects

122.8k1](/packages/mohammedmanssour-super-simple-dto)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
