PHP 8.5 adds a built-in URI extension that provides standards-compliant parsing for both RFC 3986 and WHATWG URL standards. The extension includes Uri and Url classes with methods for parsing, normalizing, and manipulating URLs, with proper error handling through exceptions or referenced error arrays. Laravel applications can already use similar functionality through Laravel's URI class (available since 11.35), which wraps the league/uri package implementing RFC 3986.
Sort: