Skip to content

Releases: mlocati/ip-lib

v1.18.1

29 Oct 15:49
08bb43b
Compare
Choose a tag to compare

What's Changed

  • Avoid PHP 8.4 deprecation warnings by @mlocati in #91

Full Changelog: 1.18.0...1.18.1

v1.18.0

13 Jan 18:06
c77bd0b
Compare
Choose a tag to compare
  • Ability to parse addresses in ARPA (Reverse DNS Lookup) format (#78)

v1.17.1

10 Nov 15:27
28763c8
Compare
Choose a tag to compare
  • Fix Range\Single::containsRange() method (#76)

v1.17.0

03 Aug 15:45
db9552c
Compare
Choose a tag to compare

New features

Deprecated functions

In order to support parsing the above notations, some new functions have been introduced, which deprecate some of the methods that parse strings.

Deprecated function New function
IPLib\Factory::addressFromString IPLib\Factory::parseAddressString
IPLib\Factory::rangeFromString IPLib\Factory::parseRangeString
IPLib\Factory::rangeFromBoundaries IPLib\Factory::getRangeFromBoundaries
IPLib\Factory::rangesFromBoundaries IPLib\Factory::getRangesFromBoundaries
IPLib\Address\IPv4::fromString IPLib\Address\IPv4::parseString
IPLib\Address\IPv6::fromString IPLib\Address\IPv6::parseString
IPLib\Range\Pattern::fromString IPLib\Range\Pattern::parseString
IPLib\Range\Single::fromString IPLib\Range\Single::parseString
IPLib\Range\Subnet::fromString IPLib\Range\Subnet::parseString

See the phpdoc of the deprecated methods for further details.

Special thanks to @elrido for his productive contributions.

v1.16.0

03 Jun 12:30
f3db91b
Compare
Choose a tag to compare
  • New method for ranges: getSize() (thanks @vstelmakh)

v1.15.0

26 May 12:42
77a1c0d
Compare
Choose a tag to compare
  • Fix typo in RangesFromBoundaryCalculator class (thanks @lucascherifi)
  • New method for addresses and ranges: getAddressAtOffset() (thanks @ernix)
  • Fixed end address of ranges calculated by rangesFromBoundaries() (thanks @crucifyer)

v1.14.0

31 Dec 11:33
882bc0e
Compare
Choose a tag to compare
  • New methods added to IPLib\Address\AddressInterface:
    • getNumberOfBits()
    • getBits()
  • New methods added to IPLib\Factory:
    • rangesFromBoundaries()

v1.13.0

04 Oct 12:30
334de58
Compare
Choose a tag to compare
  • New methods added to IPLib\Range\RangeInterface:
    • asSubnet()
    • asPattern()
    • getReverseDNSLookupName()

v1.12.0

27 Jul 12:07
85a7277
Compare
Choose a tag to compare
  • New getReverseDNSLookupName() method added to AddressInterface: you can use it to perform reverse DNS lookups

v1.11.0

16 Jul 15:35
169aa5b
Compare
Choose a tag to compare
  • Improve support for IPv4 to IPv6 and IPv6 to IPv4 conversions (see README.md)