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 2025Releases
latest 25-
6.0.010 Feb 2025Release notes
Open source →- Drop support for PHP versions less than 7.1
- Remove deprecations on PHP 8.4
Release notes
Open source →- Rename default branch name from
develop/masterto6.x; branch5.xfrom5.0.0tag for ongoing support (bugfixes only). Update GitHub Actions CI workflows, and update README with description on the6.x/5.xsplit. - Drop support for PHP versions less than
7.1. - Fix PHP
8.4deprecation 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.
-
5.0.105 Dec 2024Release notes
Open source →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.1Release notes
Open source →- Add support for PHP
8.4. - Reference comment added for generating documentation on Podman.
- Add support for PHP
-
5.0.007 Jun 2024Release notes
Open source →- Split off Doctrine functionality into separate package
darsyn/ip-doctrine. - Better static analysis and higher coverage.
Release notes
Open source →- 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
maxlevel (standard, deprecation, and bleeding edge rules).
- Test against PHP versions
8.2and8.3in CI pipeline. - Update README with notes on version compatibility.
- Explicitly state the requirement of the
ctypePHP extension. - Add PHPUnit attributes alongside annotations to be compatible with the highest version of PHPUnit for any supported PHP version.
- Split off Doctrine functionality into separate package
-
5.0.0-rc1no date pre-releaseRelease notes
Open source →- Split off Doctrine functionality into separate package
darsyn/ip-doctrine. - Better static analysis and higher type coverage.
- Split off Doctrine functionality into separate package
-
4.1.019 May 2022Release notes
Open source →- Added
IpInterface::equals()method for comparing two IP addresses. - Added
getCommonCidr(IpInterface $ip): intfor determining how in range two IP addresses are according to their common CIDR value. - Added
isBenchmarking(),isDocumentation(), andisPublicUse()type methods for both IPv4 and IPv6 addresses. - Added
isBroadcast(),isShared(), andisFutureReserved()type methods for IPv4 addresses. - Added
getMulticastScope(),isUniqueLocal(),isUnicast(), andisUnicastGlobal()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\BinaryandDarsyn\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
- Added
-
4.0.208 Mar 2022Release notes
Open source →PATCH: Add missing return tags to PHPDoc to prevent latest symfony/error-handler printing info logs to console.
Release notes
Open source →- Add return types to DocComments to prevent
symfony/error-handlerfrom throwing deprecation errors
- Add return types to DocComments to prevent
-
4.0.118 Nov 2021Release notes
Open source →- Correct string casting of IP objects
- Unit testing fully working in CI from PHP 5.6 to PHP 8+
- Binary utility helper
Release notes
Open source →- 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
-
4.0.015 Jun 2018 -
4.0.0-beta217 Apr 2018 pre-releaseNothing published for this version
-
4.0.0-beta126 Feb 2018 pre-releaseNothing published for this version
-
4.0.0-alpha26 Oct 2017 pre-releaseNothing published for this version
-
3.4.015 Jun 2018 -
3.3.103 Aug 2017Nothing published for this version
-
3.3.007 Mar 2017Nothing published for this version
-
3.2.019 Dec 2016Nothing published for this version
-
3.1.016 Jun 2016Nothing published for this version
-
3.0.102 Jun 2016Nothing published for this version
-
3.0.002 Jun 2016Nothing published for this version
-
2.0.217 May 2016Nothing published for this version
-
2.0.117 May 2016Nothing published for this version
-
2.0.022 Aug 2015Nothing published for this version
-
1.1.222 Aug 2015Nothing published for this version
-
1.1.122 Aug 2015Nothing published for this version
-
1.1.022 Aug 2015Nothing published for this version
-
1.0.022 Aug 2015Nothing published for this version