PHPackages                             mindpowered/iptools - 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. mindpowered/iptools

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

mindpowered/iptools
===================

Tools for working with IP4/IP6 IP Addresses including IPv4, IPv6, CIDR, and Subnet Masks

0.0.17(5y ago)01.9k—0%MITPHP

Since Dec 10Pushed 5y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (18)Used By (0)

iptools
=======

[](#iptools)

Tools for working with IP4/IP6 IP Addresses including IPv4, IPv6, CIDR, and Subnet Masks

[![Build Status](https://camo.githubusercontent.com/350e5de6fc9deab835621bac10b7fc27c50920e9f0a9cf51151bcb6e0eb2d586/68747470733a2f2f6d696e64706f77657265642e6465762f6173736574732f696d616765732f6769746875622d6261646765732f6275696c642d70617373696e672e737667)](https://camo.githubusercontent.com/350e5de6fc9deab835621bac10b7fc27c50920e9f0a9cf51151bcb6e0eb2d586/68747470733a2f2f6d696e64706f77657265642e6465762f6173736574732f696d616765732f6769746875622d6261646765732f6275696c642d70617373696e672e737667)

Contents
========

[](#contents)

- [Source Code and Documentation](#source-code-and-documentation)
- [About](#about)
- [Requirements](#requirements)
- [Installation](#installation)
- [Usage](#usage)
- [Support](#support)
- [Licensing](#licensing)

Source Code and Documentation
=============================

[](#source-code-and-documentation)

- Source Code:
- Documentation:

About
=====

[](#about)

IPv4 uses a 32-bit address for its Internet addresses. All IPv4 addresses are now assigned. IPv6 utilizes 128-bit Internet addresses so there are 1028 times more addresses. Mappings exist for converting from an IPv4 address to an IPv6 addresses. This allows interoperability.

An IP address consists of octets delimited by dots (".") for IPv4 or colons (":") for IPv6. We can compress IPv6 addresses by removing extra zeros to make the address shorter. Computers store IP addresses as their corresponding integer values. The number represented by this integer is its decimal representation.

Subnetting is the process of dividing a network into smaller network sections. A part of the IP address is *masked* off to define a network. The remaining part of the address identifies a device on the network. CIDR is an alternative way of representing a subnet mask and IP address range.

Requirements
============

[](#requirements)

- php &gt;= 7
- php `mbstring` extension
- php `xml` extension

Third-party dependencies may have additional requirements.

Installation
============

[](#installation)

You can get iptools using Composer. Composer manages dependencies for packages from Packagist and you can get it here:  .

Create a composer.json file in the top-most directory of your project and add `mindpowered/iptools` to the requirements:

```
{
        "require": {
                "mindpowered/iptools" : "*"
        }
}

```

Now you can run the command to update composer: `composer update`. In order for composer to install the package dependencies you will need an archive manager such as zip installed. Composer requires use of the commands `zip` and `unzip`.

Usage
=====

[](#usage)

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

use \mindpowered\iptools\IPTools;

$ipt = new IPTools();
$decimal = $ipt->IPToDecimal("192.168.1.1");
```

Support
=======

[](#support)

We are here to support using this package. If it doesn't do what you're looking for, isn't working, or you just need help, please [Contact us](https://mindpowered.dev/support/?ref=ip-tools-php/).

There is also a public [Issue Tracker](https://github.com/mindpowered/ip-tools-php/issues) available for this package.

Licensing
=========

[](#licensing)

This package is released under the MIT License.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

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 ~3 days

Total

17

Last Release

1931d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f2efe4b7e4d54390e1f0b7a9a75b959a95a714f55a7a5c228fca9752ea750ab6?d=identicon)[mindpowered](/maintainers/mindpowered)

### Embed Badge

![Health badge](/badges/mindpowered-iptools/health.svg)

```
[![Health](https://phpackages.com/badges/mindpowered-iptools/health.svg)](https://phpackages.com/packages/mindpowered-iptools)
```

###  Alternatives

[thomascombe/backpack-async-export

This is a package to manage async export in Backpack for Laravel

1528.5k](/packages/thomascombe-backpack-async-export)

PHPackages © 2026

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