Download the PHP package markrogoyski/ipv4-subnet-calculator without Composer
On this page you can find all versions of the php package markrogoyski/ipv4-subnet-calculator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download markrogoyski/ipv4-subnet-calculator
More information about markrogoyski/ipv4-subnet-calculator
Files in markrogoyski/ipv4-subnet-calculator
Package ipv4-subnet-calculator
Short Description Network calculator for subnet mask and other classless (CIDR) network information.
License MIT
Homepage https://github.com/markrogoyski/ipv4-subnet-calculator-php
Informations about the package ipv4-subnet-calculator

IPv4 Subnet Calculator (PHP)
Comprehensive PHP library for IPv4 subnet calculations, network planning, and CIDR operations.
Quick Start
View Complete Documentation →
Features
Core Capabilities
- Network Calculations - Subnet masks, wildcard masks, network/host portions, broadcast addresses
- IP Address Operations - Range detection, type classification (private, public, loopback, multicast, etc.)
- Network Analysis - Overlap detection, containment checking, conflict validation
- CIDR Operations - Aggregation, supernetting, subnet splitting
- Capacity Planning - Utilization analysis, optimal subnet sizing, waste calculation
- Advanced IPAM - Subnet exclusion, address space carving, sequential allocation
Output Formats
- Multiple formats: dotted decimal, hex, binary, integer, quads array
- Reports: JSON, associative arrays, formatted text, printed output
- Reverse DNS: IPv4 ARPA domain generation
Use Cases
- Network planning and IP address management (IPAM)
- Firewall rule validation and conflict detection
- BGP route summarization and optimization
- DHCP scope configuration
- DNS reverse zone setup
- Network automation and infrastructure-as-code
Complete Feature List →
Installation
Using Composer (Command Line)
Or Add to composer.json
Then run:
Requirements
- PHP 8.1+
- 64-bit architecture
- (For 32-bit architecture, use v4.4)
- Upgrading from v4? See the Migration Guide
Detailed Installation Guide →
Usage
Creating Subnets
All Creation Methods →
Basic Network Information
Network Component Access →
Network Overlap & Conflict Detection
Overlap Detection Guide →
IP Address Type Classification
Supported types: private, public, loopback, link-local, multicast, carrier-grade-nat, documentation, benchmarking, reserved, and more.
All IP Address Types →
CIDR Aggregation & Route Summarization
CIDR Aggregation Guide →
Subnet Exclusion (IPAM)
Subnet Exclusion Guide →
Utilization & Capacity Planning
Utilization Analysis Guide →
Subnet Operations
Subnet Operations Guide →
Generate Reports
Example Report Output:
Complete Report Documentation →
Documentation
Getting Started
- Installation & Setup - Get up and running quickly
- Creating Subnet Calculators - All factory methods
- Basic Usage Examples - Common operations
Core Features
- Network Component Access - IP addresses, masks, network/host portions
- Network Overlap & Containment - Conflict detection
- IP Address Type Detection - Classify addresses (private, public, etc.)
- Subnet Operations - Split, navigate, reverse DNS
- Adjacent Subnet Navigation - Sequential subnet allocation
Advanced Features
- Subnet Exclusion - IPAM and address carving
- CIDR Aggregation - Route summarization
- Utilization Statistics - Capacity planning
- Network Classes - Legacy classful networking
Reference & Examples
- API Reference - Complete method documentation
- Reports - All output formats and examples
- Real-World Examples - IPAM, firewall rules, BGP, DHCP, DNS, automation
Upgrading
- Migration Guide: v4 to v5 - Upgrade from v4.x with step-by-step instructions
Quick Links
- Documentation Index - Complete navigation and learning paths
- Quick Reference - Common operations at a glance
Unit Tests
Standards
IPv4 Subnet Calculator (PHP) conforms to the following standards:
- PSR-1 - Basic coding standard (http://www.php-fig.org/psr/psr-1/)
- PSR-4 - Autoloader (http://www.php-fig.org/psr/psr-4/)
- PSR-12 - Extended coding style guide (http://www.php-fig.org/psr/psr-12/)
License
IPv4 Subnet Calculator (PHP) is licensed under the MIT License.
All versions of ipv4-subnet-calculator with dependencies
ext-ctype Version *
ext-filter Version *