URI Class
The URI class is the class provided by the uri extension. It is built with a string, as a URL, and parses it into smaller parts with its methods.
<?php
use Uri\Rfc3986\Uri;
$url = new Uri('https://www.php.net:443/phpinfo');
?>