URI manipulation library
Uri package provides simple and intuitive classes to create and manage URIs in PHP.
- Simple API
- RFC3986 and RFC3987 compliant
- Implements the
- Fully documented
- Framework Agnostic
- Composer ready, PSR-2 and PSR-4 compliant
Full documentation can be found at uri.thephpleague.com.
- PHP >= 7.0.13 but the latest stable version of PHP is recommended
To use the library.
We no longer recommend installing this package directly.
The package is a metapackage that aggregates all components related to processing and manipulating URI in PHP; in most cases, you will want a subset, and these may be installed separately.
The following components are part of the metapackage:
- League Uri Parser
- League Uri Schemes
- League Uri Components
- League Uri Manipulations
- League Uri Hostname Parser since version 5.2 in replacement of PHP Domain Parser version 3.0
The primary use case for installing the entire suite is when upgrading from a version 4 release.
If you decide you still want to install the entire suite use Composer and run the following command on a composer installed box:
$ composer require league/uri
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.