pear/net_url2
PEAR Net_URL2 is a small PHP utility for parsing, validating, and manipulating URLs. It builds and edits URL components, handles query strings, resolves relative URLs, and offers easy getters/setters for scheme, host, path, port, user info, and fragments.
Adopt if:
Look elsewhere if:
Illuminate\Support\Str::of() or Symfony’s UrlHelper) that already handles 80% of your needs.spatie/url or buzz).For Executives:
"This package eliminates a technical debt black hole—URL parsing is a ubiquitous but error-prone task across our web properties. By adopting pear/net_url2, we standardize how we handle URLs (e.g., for marketing links, APIs, or redirects), reducing bugs and speeding up feature delivery. For example, it’ll let us launch our new affiliate program 30% faster by automating URL validation and tracking parameter extraction. The cost? Minimal—it’s a lightweight, battle-tested solution with almost 50 GitHub stars, used by teams building everything from CMS platforms to payment systems."
For Engineers:
*"Imagine never debugging parse_url() edge cases again. This package gives us:
InvalidArgumentExceptions from malformed URLs./path/to/resource vs. https://example.com/path inconsistencies.How can I help you explore Laravel packages today?