Releases: mlocati/ip-lib
Releases · mlocati/ip-lib
v1.12.0
v1.11.0
v1.10.0
- Add support for non-decimal IPv4/range addresses (more details)
- Add support for the Carrier-grade NAT (CGNAT) IPv4 address range (thanks @stathis for pointing that out)
v1.9.0
- New method:
IPLib\Address\IPv6::toMixedIPv6IPv4String()
to render IPv6 addresses in the mixed IPv6+IPv4 representation described in https://tools.ietf.org/html/rfc4291#section-2.2 point 3 IPLib\Factory::addressFromString()
can now parse the mixed IPv6+IPv4 representation (for example:2001:da8:d800:9:200:5efe:101.94.1.77
)
v1.8.0
- New method:
IPLib\Range\Pattern::asSubnet()
to convert pattern ranges (eg192.168.0.*
) to subnet/CIDR ranges (eg `192.168.0.0/24) - New method:
IPLib\Range\Subnet::asPattern()
to convert subnet/CIDR ranges (eg192.168.0.0/24
) to pattern ranges (eg192.168.0.*
) - New method for all the range types (
getSubnetMask()
) to retrieve the subnet mask (only for IPv4 ranges)
v1.7.0
v1.6.0
v1.5.0
New instance methods available for IPLib\Range\RangeInterface
:
getRangeType()
to get the type of a range (if available)containsRange(RangeInterface $otherRange)
to check if a range fully contains another range
New static methods available for IPLib\Range\AddressInterface
:
getReservedRanges()
to get the list of rangesgetDefaultReservedRangeType()
to get the type of IP addresses not present in the ranges returned bygetReservedRanges()
New static methods available for IPLib\Range\Subnet
:
get6to4()
to get the IPv66to4
subnet range