League/url is a lightweight PHP Url manipulating library
The master branch will no longer receive any update. To avoid dependency hell, the new version is now being developped on a different repository https://github.com/thephpleague/uri. You can still access the last stable version code by switching to the 3.x branch.
League\Url package provides simple and intuitive classes to create and manage Urls in PHP.
- Simple API
- RFC3986 compliant
- Implements the
- Fully documented
- Framework Agnostic
- Composer ready, PSR-2 and PSR-4 compliant
- PHP >= 5.5.0 or HHVM >= 3.6, but the latest stable version of PHP/HHVM is recommended
To use the library.
League\Url using Composer.
$ composer require league/url
League\Url has a PHPUnit test suite. To run the tests, run the following command from the project folder.
Contributions are welcome and will be fully credited. Please see CONTRIBUTING for details.
If you discover any security related issues, please email firstname.lastname@example.org instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.