2017 © Pedro Peláez
 

library ip

IP addresses model

image

innmind/ip

IP addresses model

  • Wednesday, July 12, 2017
  • by Baptouuuu
  • Repository
  • 1 Watchers
  • 0 Stars
  • 355 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 4 % Grown

The README.md

IP

Build Status codecov Type Coverage, (*1)

Immutable IP value objects., (*2)

Installation

require innmind/ip

Usage

use Innmind\IP\{
    IP,
    IPv4,
    IPv6,
    Exception\DomainException,
};
use Innmind\Immutable\Maybe;

$ipv4 = IP::v4('192.168.0.1');
$ipv6 = IP::v6('2001:db8:a0b:12f0::1');
IPv4::of('192.168.0.1'); // same as above
IPv6::of('2001:db8:a0b:12f0::1'); // same as above
IPv4::of('localhost'); // throws DomainException
IPv6::of('localhost'); // throws DomainException
IPv4::maybe('localhost'); // returns Maybe<IPv4>
IPv6::maybe('localhost'); // returns Maybe<IPv6>

The Versions

12/07 2017

dev-master

9999999-dev http://github.com/Innmind/IP

IP addresses model

  Sources   Download

MIT

The Requires

  • php ~7.1

 

The Development Requires

address ip

12/07 2017

1.0.0

1.0.0.0 http://github.com/Innmind/IP

IP addresses model

  Sources   Download

MIT

The Requires

  • php ~7.1

 

The Development Requires

address ip

12/07 2017

dev-develop

dev-develop http://github.com/Innmind/IP

IP addresses model

  Sources   Download

MIT

The Requires

  • php ~7.1

 

The Development Requires

address ip