league / uri-interfaces
Common tools for parsing and resolving RFC3987/RFC3986 URI
                                    Fund package maintenance!
                                                                            
                                                                                                                                        nyamsprod
                                                                                    
                                                                
Installs: 164 560 763
Dependents: 23
Suggesters: 0
Security: 0
Stars: 517
Watchers: 5
Forks: 9
pkg:composer/league/uri-interfaces
Requires
- php: ^8.1
- ext-filter: *
- psr/http-factory: ^1
- psr/http-message: ^1.1 || ^2.0
Suggests
- php-64bit: to improve IPV4 host parsing
- ext-bcmath: to improve IPV4 host parsing
- ext-gmp: to improve IPV4 host parsing
- ext-intl: to handle IDN host with the best performance
- symfony/polyfill-intl-idn: to handle IDN host via the Symfony polyfill if ext-intl is not present
README
This package contains an interface to represents URI objects according to RFC 3986.
⚠️ this is a sub-split, for development, pull requests and issues, visit: https://github.com/thephpleague/uri-src
System Requirements
You require PHP >= 8.1 but the latest stable version of PHP is recommended
Handling of an IDN host requires the presence of the intl
extension or a polyfill for the intl IDN functions like the
symfony/polyfill-intl-idn otherwise an exception will be thrown
when attempting to validate or interact with such a host.
IPv4 conversion requires at least one of the following:
- the GMPextension,
- the BCMatchextension or
- a 64-bitsPHP version
otherwise an exception will be thrown when attempting to convert a host as an IPv4 address.
Install
$ composer require league/uri-interfaces
Documentation
Full documentation can be found at uri.thephpleague.com.
License
The MIT License (MIT). Please see License File for more information.