---
title: "PHP 8.5 Introduces a New URI Extension"
url: https://daily.dev/posts/php-8-5-introduces-a-new-uri-extension-nkrks8bt5
source_url: https://laravel-news.com/php-85-introduces-a-new-uri-extension
type: article
source: "Laravel News"
published: 2025-10-14T13:12:02.085Z
updated: 2025-10-14T13:12:23.449Z
tags: ["webdev", "php", "laravel"]
reading_time: 2
upvotes: 54
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# PHP 8.5 Introduces a New URI Extension

**[Laravel News](https://daily.dev/sources/ln)** · 2 min read · 54 upvotes · 0 comments

## Summary

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.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://laravel-news.com/php-85-introduces-a-new-uri-extension>

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#php](https://daily.dev/tags/php), [#laravel](https://daily.dev/tags/laravel)

[View this post on daily.dev](https://daily.dev/posts/php-8-5-introduces-a-new-uri-extension-nkrks8bt5)
