league / uri-components
URI components manipulation library
Fund package maintenance!
nyamsprod
Requires
- php: ^8.1
- league/uri: ^7.3
Suggests
- php-64bit: to improve IPV4 host parsing
- ext-bcmath: to improve IPV4 host parsing
- ext-fileinfo: to create Data URI from file contennts
- ext-gmp: to improve IPV4 host parsing
- ext-intl: to handle IDN host with the best performance
- ext-mbstring: to use the sorting algorithm of URLSearchParams
- jeremykendall/php-domain-parser: to resolve Public Suffix and Top Level Domain
- symfony/polyfill-intl-idn: to handle IDN host via the Symfony polyfill if ext-intl is not present
- dev-master / 7.x-dev
- 7.4.1
- 7.4.0
- 7.3.0
- 7.2.1
- 7.2.0
- 7.1.0
- 7.0.0
- 7.0.0-beta.2
- 7.0.0-beta.1
- 2.4.x-dev
- 2.4.2
- 2.4.1
- 2.4.0
- 2.3.0
- 2.2.1
- 2.2.0
- 2.1.0
- 2.0.1
- 2.0.0
- 1.8.2
- 1.8.1
- 1.8.0
- 1.7.1
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.1
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.1
- 1.1.0
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 1.0.0-RC1
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.1
- 0.2.0
- 0.1.1
- 0.1.0
This package is auto-updated.
Last update: 2024-10-20 04:02:37 UTC
README
This package contains concrete URI components instances represented as immutable value objects.
⚠️ 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
GMP
extension, - the
BCMatch
extension or - a
64-bits
PHP version
otherwise an exception will be thrown when attempting to convert a host as an IPv4 address.
Dependencies
Installation
$ composer require league/uri-components
Documentation
Full documentation can be found at uri.thephpleague.com.
License
The MIT License (MIT). Please see License File for more information.