PHPackages                             muvo/yii2-ip-calc - 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. muvo/yii2-ip-calc

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

muvo/yii2-ip-calc
=================

Simple IP calculator, which can be used as basic Model in Yii2

2017.09.01.2(8y ago)0366PHPPHP &gt;=7.0

Since Sep 1Pushed 8y ago1 watchersCompare

[ Source](https://github.com/MuVO/yii2-ip-calc)[ Packagist](https://packagist.org/packages/muvo/yii2-ip-calc)[ RSS](/packages/muvo-yii2-ip-calc/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (3)Used By (0)

Simple IP calculator
====================

[](#simple-ip-calculator)

Quick start
===========

[](#quick-start)

Add model to your project

```
$ composer require muvo/yii2-ip-calculator "*"

```

or add this into section `require` of your `composer.json`:

```
...
    "require" : {
        ...
        "muvo/yii2-ip-calc" : "*"
    }
...

```

then run

```
$ composer update

```

Basic usage
===========

[](#basic-usage)

Examples
--------

[](#examples)

```
$ipv4 = address\IPv4('192.168.0.3/24');

echo $ipv4->ip;         // 192.168.0.3      # Actual IP address
echo $ipv4->net;        // 192.168.0.0      # Address of current IP network
echo $ipv4->mask;       // 255.255.255.0    # Netmask in string format
echo $ipv4->prefixlen;  // 24               # Prefix length of current network
echo $ipv4->broadcast;  // 192.168.0.255    # Broadcast address of network
echo $ipv4->first;      // 192.168.0.1      # First **REALLY AVAILABLE** IP for using
echo $ipv4->last;       // 192.168.0.254    # Last **REALLY AVAILABLE** IP
echo $ipv4->cidr;       // 192.168.0.0/24   # Network address written in CIDR format

```

Credits
=======

[](#credits)

Vladislav Muschinskikh  © 2016

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

3224d ago

### Community

Maintainers

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

---

Top Contributors

[![MuVO](https://avatars.githubusercontent.com/u/965579?v=4)](https://github.com/MuVO "MuVO (5 commits)")

---

Tags

addressmodelIPyii2

### Embed Badge

![Health badge](/badges/muvo-yii2-ip-calc/health.svg)

```
[![Health](https://phpackages.com/badges/muvo-yii2-ip-calc/health.svg)](https://phpackages.com/packages/muvo-yii2-ip-calc)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)

PHPackages © 2026

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