boson-php/uri
Boson URI is a small PHP library for parsing, building, normalizing, and comparing URIs. Provides immutable URI objects, convenient accessors for scheme/host/path/query/fragment, and helpers for resolving and manipulating URLs in a safe, standards-friendly way.
Illuminate\Support\Facades\URL) if custom logic or subtree splitting is needed for specific use cases (e.g., legacy systems or edge cases).mailto: or data:).URL helper and don’t need subtree splitting or custom URI logic (overhead of maintaining a separate package).symfony/psr-http-message or guzzlehttp/psr7).url-parse).boson-php/boson and need this component isolated (e.g., for modular monorepos).For Executives: "This package lets us standardize how our PHP services handle URLs—critical for APIs, webhooks, and routing—while avoiding the bloat of Laravel’s full framework. It’s a lightweight, MIT-licensed tool to prevent URI-related bugs (e.g., malformed requests) and future-proof our stack for non-HTTP URIs. Low maintenance risk since it’s a subtree split from a larger project, but we’d pair it with rigorous testing to ensure stability."
For Engineering:
"If we need to parse/validate URIs beyond Laravel’s defaults (e.g., custom schemes, edge cases), this gives us a drop-in replacement for Illuminate\Support\Facades\URL without coupling to the full Laravel ecosystem. It’s a single-purpose package, so integration is straightforward—just swap in boson-php/uri for URI logic. Caveat: No active community, so we’d need to vet it thoroughly or extend it ourselves. Alternatives like symfony/psr-http-message might be safer if we need broader HTTP support."
How can I help you explore Laravel packages today?