league/uri-interfaces
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|---|---|---|---|---|
psr/http-factory | 1.0.2 | 5.44 kB | MIT | prod |
The league/uri-interfaces package provides a comprehensive interface to accurately represent and interact with URI objects in your PHP development, according to the standards of RFC 3986. This valuable tool is an effective solution for managing URI objects in a way that aligns with the latest industry conventions, making it a great addition to your PHP development toolkit.
To use the league/uri-interfaces in your PHP code, you'll first need to install it in your project using Composer, the popular dependency management tool. You can install it by running the following command in your project directory:
$ composer require league/uri-interfaces
Once the package is installed, you can start using it in your PHP code. As this is an interface, it is used to specify methods that any implementing classes must adhere to. These include routines for handling Internationalized Domain Names (IDN), IPv4, and other aspects of URI representation and interaction. It's important to note that if you are interacting with an IDN host, you will require the intl
extension or a polyfill like symfony/polyfill-intl-idn
. For IPv4 conversion, you'll need either the GMP
extension, the BCMatch
extension, or a 64-bit PHP version.
The comprehensive documentation for the league/uri-interfaces package can be found on the official website of the PHP League at http://uri.thephpleague.com. The documentation provides a detailed guide on how to effectively use this package for URI representation and interaction in your PHP projects.