PackageTrack
Sign in Get early access

mlocati/ip-lib

Handle IPv4, IPv6 addresses and ranges

1.22.0 7.9M downloads/mo #1152 most downloaded on Packagist mlocati/ip-lib

What this package is like to depend on

Last release 10 months ago

15 Oct 2025

Ships unpredictably

gaps range from 2 weeks to 2.8 years

Some releases are documented

notes for 10 of 27 stable releases

Nothing withdrawn

no release was ever pulled

10 years old

27 releases · first in 2016

2 releases in the last 12 months

see the full history below

Release timeline

27 releases · Mar 2016 to Oct 2025
2017 2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 27
  1. 1.22.0 15 Oct 2025
    Release notes

    What's Changed

    Full Changelog: 1.21.0...1.22.0

    Open source →
    Release notes

    v1.22.0 Latest

    Latest

    Compare

    Choose a tag to compare

    Open source →
  2. 1.21.0 24 Sep 2025
    Release notes

    What's Changed

    Full Changelog: 1.20.0...1.21.0

    Open source →
    Release notes

    v1.21.0

    Compare

    Choose a tag to compare

    Open source →
  3. 1.20.0 04 Feb 2025
    Release notes

    What's Changed

    • Add AddressInterface::shift() by @mlocati in #94
    • Add AddressInterface::add() by @mlocati in #95
    • Don't throw an OverflowException in RangeInterface::split() by @mlocati in #96

    Full Changelog: 1.19.0...1.20.0

    Open source →
    Release notes

    v1.20.0

    Compare

    Choose a tag to compare

    Open source →
  4. 1.19.0 04 Feb 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 1.18.1...1.19.0

    Open source →
    Release notes

    v1.19.0

    Compare

    Choose a tag to compare

    Open source →
  5. 1.18.1 29 Oct 2024
    Release notes

    What's Changed

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

    Full Changelog: 1.18.0...1.18.1

    Open source →
    Release notes

    v1.18.1

    Compare

    Choose a tag to compare

    Open source →
  6. 1.18.0 13 Jan 2022
    Release notes
    • Ability to parse addresses in ARPA (Reverse DNS Lookup) format (#78)
    Open source →
    Release notes

    v1.18.0

    Compare

    Choose a tag to compare

    Open source →
  7. 1.17.1 10 Nov 2021
    Release notes
    • Fix Range\Single::containsRange() method (#76)
    Open source →
    Release notes

    v1.17.1

    Compare

    Choose a tag to compare

    Open source →
  8. 1.17.0 03 Aug 2021
    Release notes

    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.

    Open source →
    Release notes

    v1.17.0

    Compare

    Choose a tag to compare

    Open source →
  9. 1.16.0 31 May 2021
    Release notes
    • New method for ranges: getSize() (thanks @vstelmakh)
    Open source →
    Release notes

    v1.16.0

    Compare

    Choose a tag to compare

    Open source →
  10. 1.15.0 26 May 2021
    Release notes
    • 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)
    Open source →
    Release notes

    v1.15.0

    Compare

    Choose a tag to compare

    Open source →
  11. 1.14.0 31 Dec 2020

    Nothing published for this version

  12. 1.13.0 04 Oct 2020

    Nothing published for this version

  13. 1.12.0 27 Jul 2020

    Nothing published for this version

  14. 1.11.0 16 Jul 2020

    Nothing published for this version

  15. 1.10.0 09 Jul 2020

    Nothing published for this version

  16. 1.9.0 20 Sep 2019

    Nothing published for this version

  17. 1.8.0 30 Jul 2019

    Nothing published for this version

  18. 1.7.0 25 Feb 2019

    Nothing published for this version

  19. 1.6.0 12 Aug 2018

    Nothing published for this version

  20. 1.5.0 18 Dec 2017

    Nothing published for this version

  21. 1.4.0 30 Aug 2017

    Nothing published for this version

  22. 1.3.0 06 Jul 2017

    Nothing published for this version

  23. 1.2.1 14 Mar 2017

    Nothing published for this version

  24. 1.2.0 15 Feb 2017

    Nothing published for this version

  25. 1.1.1 15 Feb 2017

    Nothing published for this version

  26. 1.1.0 02 Feb 2017

    Nothing published for this version

  27. 1.0.0 18 Mar 2016

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive