Install the URI package
masterInstall the league/uri package using Composer to manage URIs in your PHP application.
$ composer require league/urirepository·master·Indexed 22 days ago
https://github.com/thephpleague/uriA PHP package providing classes to manage URIs adhering to standards like PSR-7. Requires PHP >= 8.1 and optional extensions such as intl for IDN support, GMP or BCMatch for IPv4 conversion, and dom for HTML content.
Install the league/uri package using Composer to manage URIs in your PHP application.
$ composer require league/uriBefore using the URI package, ensure your environment meets the following requirements:
intl extension installed or a polyfill like symfony/polyfill-intl-idn. Without this, an exception will be thrown when interacting with such hosts.GMP extensionBCMatch extension64-bits PHP version
Failure to meet one of these will result in an exception.dom extension.