League URI components objects
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Improve github repo Nov 2, 2018
tests bugfix Intl extension issue Nov 16, 2018
.editorconfig Add .editorconfig file Jul 17, 2016
.gitattributes adding PHPStan Feb 22, 2018
.gitignore Improve path object decoupling Nov 2, 2018
.scrutinizer.yml update scrutinizr config Oct 10, 2018
CHANGELOG.md bugfix Intl extension issue Nov 16, 2018
LICENSE decoupled the URI components Oct 17, 2016
README.md improve dockblocks Nov 4, 2018
phpstan.src.neon backport #22 fixes Nov 1, 2018
phpstan.tests.neon improve test suite Oct 31, 2018
phpunit.xml update phpstan dependencies Oct 30, 2018


Uri Components

Build Status Latest Version

This package contains concrete URI components object represented as immutable value object.

System Requirements

You need:

  • PHP >= 7.1.3 but the latest stable version of PHP is recommended

In order to handle IDN host you should also install the intl extension otherwise and Exception will be thrown when attempting to validate such host.


$ composer require league/uri-components


Full documentation can be found at uri.thephpleague.com.


Contributions are welcome and will be fully credited. Please see CONTRIBUTING and CONDUCT for details.


uri-components has a PHPUnit test suite and a coding style compliance test suite using PHP CS Fixer. To run the tests, run the following command from the project folder.

$ composer test


If you discover any security related issues, please email nyamsprod@gmail.com instead of using the issue tracker.



The MIT License (MIT). Please see License File for more information.