PHPackages                             buibr/multicast-ip - 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. buibr/multicast-ip

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

buibr/multicast-ip
==================

Multicast IP helper and manipulator

v2.0(3y ago)0397MITPHPPHP ^7.4|^8

Since Sep 16Pushed 3y ago1 watchersCompare

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

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

Mlticast IP
===========

[](#mlticast-ip)

This package provides a set of functions for manipulating and validating Multicast IP addresses. Multicast IP addresses are used for communication between multiple hosts on a network. This package helps in validating and manipulating the Multicast IP addresses in various formats.

### Installation

[](#installation)

You can install this package via composer using the following command:

```
composer require buibr/multicast-ip
```

### Usage

[](#usage)

#### Validating Multicast IP addresses

[](#validating-multicast-ip-addresses)

You can use the isValidMulticastIP function to check if a given IP address is a valid Multicast IP address. It returns true if the IP address is valid, otherwise false.

```
use Buibr\Multicast\Multicast;

$ipAddress = '239.255.0.1';

if (Multicast::isValidMulticastIP($ipAddress)) {
    echo "Valid Multicast IP";
}
```

#### Add / Substract

[](#add--substract)

```
use Buibr\Multicast\Multicast;

$ip = Multicast::create('udp://239.0.0.10:12345');

$ip->add();
//or
$ip->getIp()->increment();
print (string)$mc // 'udp://239.0.0.11:12345',

$ip->sub();
or
$ip->getIp()->decrement();
print (string)$mc // 'udp://239.0.0.9:12345',
```

#### Range group detector

[](#range-group-detector)

```
use Buibr\Multicast\Multicast;

$url = Multicast::create('udp://239.0.0.1:12345');
$url->getIp()->isLocal(); // true

$url = Multicast::create('udp://224.0.1.1:12345');
$url->getIp()->isGlobal(); // true
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Every ~937 days

Total

2

Last Release

1132d ago

Major Versions

1.0 → v2.02023-04-12

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f010dfc3a6587d208aa1d9c7bec81d58f21fbf9100b1fce35b5ae05b747d5e5?d=identicon)[buibr](/maintainers/buibr)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/buibr-multicast-ip/health.svg)

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

###  Alternatives

[doublesecretagency/craft-inventory

Take stock of your field usage.

70125.6k1](/packages/doublesecretagency-craft-inventory)[acacha/helpers

Extra helpers for Laravel

25265.0k2](/packages/acacha-helpers)

PHPackages © 2026

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