azjezz/psl
PSL (PHP Standard Library) offers a consistent, well-typed set of safer, async-ready APIs to replace PHP primitives. Covers async, collections, networking, I/O, cryptography, terminal UI, and type-safe data validation with predictable errors.
The CIDR component provides utilities for working with CIDR (Classless Inter-Domain Routing) notation. It supports both IPv4 and IPv6 addresses.
IPv4 addresses are internally normalized to IPv4-mapped IPv6 for unified comparison, so mixed-family matching works transparently.
@example('networking/cidr-usage.php')
Block::contains() accepts either a string or an IP\Address object:
@example('networking/cidr-address.php')
@example('networking/cidr-ipv4.php')
@example('networking/cidr-ipv6.php')
@example('networking/cidr-single-host.php')
See src/Psl/CIDR/ for the full API.
How can I help you explore Laravel packages today?