PackageTrack
Sign in Get early access

darsyn/ip

An immutable IP Address value object that provides several different notations, including helper functions.

6.0.0 2.1M downloads/mo #4494 most downloaded on Packagist darsyn/ip

What this package is like to depend on

Last release 2 years ago

no release in 18 months

Ships unpredictably

gaps range from 2 months to 3.4 years

Some releases are documented

notes for 8 of 21 stable releases

Nothing withdrawn

no release was ever pulled

11 years old

25 releases · first in 2015

0 releases in the last 12 months

see the full history below

Release timeline

24 releases · Aug 2015 to Feb 2025
2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 25
  1. 6.0.0 10 Feb 2025
    Release notes
    • Drop support for PHP versions less than 7.1
    • Remove deprecations on PHP 8.4
    Open source →
    Release notes
    • Rename default branch name from develop/master to 6.x; branch 5.x from 5.0.0 tag for ongoing support (bugfixes only). Update GitHub Actions CI workflows, and update README with description on the 6.x/5.x split.
    • Drop support for PHP versions less than 7.1.
    • Fix PHP 8.4 deprecation errors (nullable arguments must be explicit).
    • Add strict types.
    • Add native type support. Remove unnecessary type annotations in doc blocks. Remove unit tests that assert invalid types no longer allowed by PHP's strict typing.
    Open source →
  2. 5.0.1 05 Dec 2024
    Release notes

    Add support for PHP 8.4 (static analysis fixes and added to CI pipeline).
    PHP 8.4 deprecations are expected as they cannot be removed without dropping support for PHP versions less than 7.1

    Open source →
    Release notes
    • Add support for PHP 8.4.
    • Reference comment added for generating documentation on Podman.
    Open source →
  3. 5.0.0 07 Jun 2024
    Release notes
    • Split off Doctrine functionality into separate package darsyn/ip-doctrine.
    • Better static analysis and higher coverage.
    Open source →
    Release notes
    • Removed Doctrine functionality, and split it off into its own package: darsyn/ip-doctrine. List it as a Composer dependency suggestion.
    • Change from Psalm to PHPStan for static analysis.
      • Add types to all function arguments lists and return values.
      • Update the codebase to pass static analysis on max level (standard, deprecation, and bleeding edge rules).
    • Test against PHP versions 8.2 and 8.3 in CI pipeline.
    • Update README with notes on version compatibility.
    • Explicitly state the requirement of the ctype PHP extension.
    • Add PHPUnit attributes alongside annotations to be compatible with the highest version of PHPUnit for any supported PHP version.
    Open source →
  4. 5.0.0-rc1 no date pre-release
    Release notes
    • Split off Doctrine functionality into separate package darsyn/ip-doctrine.
    • Better static analysis and higher type coverage.
    Open source →
  5. 4.1.0 19 May 2022
    Release notes

    Pull in Return Types from 4.0.2

    Open source →
    Release notes
    • Added IpInterface::equals() method for comparing two IP addresses.
    • Added getCommonCidr(IpInterface $ip): int for determining how in range two IP addresses are according to their common CIDR value.
    • Added isBenchmarking(), isDocumentation(), and isPublicUse() type methods for both IPv4 and IPv6 addresses.
    • Added isBroadcast(), isShared(), and isFutureReserved() type methods for IPv4 addresses.
    • Added getMulticastScope(), isUniqueLocal(), isUnicast(), and isUnicastGlobal() type methods for IPv6 addresses.
    • Added Ipv6::fromEmbedded() factory method to create an instance of an IPv4-embedded address as IPv6 instead of Multi.
    • Made internal helper methods for dealing with binary data into utility classes: Darsyn\IP\Util\Binary and Darsyn\IP\Util\MbString.
    • Complete documentation overhaul
    • Increase test coverage.
    • Started using static analysis both locally and via GitHub actions.
    • Documentation and tests are excluded from the Git archive to reduce download size when installing Composer dependency as dist.
    • Updated Code of Conduct to Contributor Covenant v2.1
    Open source →
  6. 4.0.2 08 Mar 2022
    Release notes

    PATCH: Add missing return tags to PHPDoc to prevent latest symfony/error-handler printing info logs to console.

    Open source →
    Release notes
    Open source →
  7. 4.0.1 18 Nov 2021
    Release notes
    • Correct string casting of IP objects
    • Unit testing fully working in CI from PHP 5.6 to PHP 8+
    • Binary utility helper
    Open source →
    Release notes
    • Add Code of Conduct to project.
    • Add new internal helper for dealing with binary strings.
    • Add namespace indicator to function calls to speed up symbol resolution.
    • Add __toString() to IP objects.
    • Update unit tests, now runnable on all PHP versions 5.6 to 8.1
    Open source →
  8. 4.0.0 15 Jun 2018
    Release notes
    • Complete rewrite of library.
    Open source →
  9. 4.0.0-beta2 17 Apr 2018 pre-release

    Nothing published for this version

  10. 4.0.0-beta1 26 Feb 2018 pre-release

    Nothing published for this version

  11. 4.0.0-alpha 26 Oct 2017 pre-release

    Nothing published for this version

  12. 3.4.0 15 Jun 2018
    Release notes

    Version 3.4.0; deprecations ready for major version bump.

    Open source →
  13. 3.3.1 03 Aug 2017

    Nothing published for this version

  14. 3.3.0 07 Mar 2017

    Nothing published for this version

  15. 3.2.0 19 Dec 2016

    Nothing published for this version

  16. 3.1.0 16 Jun 2016

    Nothing published for this version

  17. 3.0.1 02 Jun 2016

    Nothing published for this version

  18. 3.0.0 02 Jun 2016

    Nothing published for this version

  19. 2.0.2 17 May 2016

    Nothing published for this version

  20. 2.0.1 17 May 2016

    Nothing published for this version

  21. 2.0.0 22 Aug 2015

    Nothing published for this version

  22. 1.1.2 22 Aug 2015

    Nothing published for this version

  23. 1.1.1 22 Aug 2015

    Nothing published for this version

  24. 1.1.0 22 Aug 2015

    Nothing published for this version

  25. 1.0.0 22 Aug 2015

    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