Home » Networking » Net_CheckIP2
A package to determine if an IP (v4) is valid.
This package is unmaintained.
Download latest release 1.0.0RC3 (archived versions might be outdated)
License: MIT License
Description
Net_CheckIP2 allows you to validate an IPv4 address.
Additionally, using isReserved(), you may check if an IP is from a reserved/private
IP space (according to RFC 1918). Using getClass(), you may retrieve the IP's class
network (A, B, C currently supported).
Net_CheckIP2 is a PHP5 port of the Net_CheckIP package and is almost a drop-in replacement.
Documentation
Maintainers
- Till Klampaeckel (till) — lead, active
- Martin Jansen (mj) — lead, active
Dependencies
Required
- PHP (>= 5.2.0)
- PEAR Installer (>= 1.4.0b1)
Releases
- 1.0.0RC3 (beta, 2009-09-30)
Release notes
License: MIT License
This release introduces a last-minute BC break:
To update your code, please replace the following:
Net_CheckIP2::check_ip($ip);
... with:
Net_CheckIP2::isValid($ip);
Changelog:
* introduced getClass() - determine the CLASS network (A, B, C supported)
* introduced isValid() - replaces check_ip()
* introduced isReserved() - determine if the IP is from within a reserved space
* introduced isZeroconf() - determine if the IP is from the zeroconf pool
* added AllTests and new test suite - 1.0.0RC2 (beta, 2008-02-02)
Release notes
License: MIT License
Added a test.
- 1.0.0RC1 (beta, 2007-12-04)
Release notes
License: MIT License
Initial PHP5 port of Net_CheckIP.
Bugs
No bugs.