URI Class¶
The URI class is the class provided by the uri extension. It is build with a string, as URL, and parses it in smaller part with its methods.
<?php
use Uri\Rfc3986\Uri;
$url = new Uri('https://www.php.net:443/phpinfo');
?>
See also PHP 8.5 Introduces a New URI Extension.
Related : Universal Resource Identifier (URI), Universal Resource Locator (URL), URI Extension