league / uri-components
URI components manipulation library
Fund package maintenance!
nyamsprod
Requires
- php: ^7.4 || ^8.0
- ext-json: *
- league/uri-interfaces: ^2.3
- psr/http-message: ^1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^v3.8.0
- guzzlehttp/psr7: ^2.2
- laminas/laminas-diactoros: ^2.11.0
- league/uri: ^6.0
- phpstan/phpstan: ^1.7
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.1
- phpstan/phpstan-strict-rules: ^1.2
- phpunit/phpunit: ^9.5.20
Suggests
- php-64bit: to improve handle IPV4 parsing
- ext-fileinfo: Needed to create Data URI from a filepath
- ext-gmp: to improve handle IPV4 parsing
- ext-intl: to handle IDN host
- jeremykendall/php-domain-parser: Public Suffix and Top Level Domain parsing implemented in PHP
- league/uri: to allow manipulating URI objects
- psr/http-message-implementation: to allow manipulating PSR-7 Uri objects
This package is auto-updated.
Last update: 2023-02-26 20:53:46 UTC
README
This package contains concrete URI components instances represented as immutable value objects.
System Requirements
The latest stable version of PHP is recommended.
Please find below the PHP support for URI
version 2.
Min. Library Version | Min. PHP Version | Max. Supported PHP Version |
---|---|---|
2.4.0 | PHP 7.4 | PHP 8.1.x |
2.0.0 | PHP 7.3 | PHP 8.0.x |
Dependencies
In order to handle IDN host you should also require the intl
extension otherwise an exception will be thrown when attempting to validate such host.
Installation
$ composer require league/uri-components
Documentation
Full documentation can be found at uri.thephpleague.com.
Contributing
⚠️ this is a sub-split, for development, pull requests and issues, visit: https://github.com/thephpleague/uri-src
License
The MIT License (MIT). Please see License File for more information.