1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
---
layout: default
title: Uri
---
# Overview
[](https://twitter.com/nyamsprod)
[](https://github.com/thephpleague/uri)
[](https://packagist.org/packages/league/uri)
[](LICENSE.md)
[](https://travis-ci.org/thephpleague/uri)
[](https://packagist.org/packages/league/uri)
The library is a **meta package** which provides simple and intuitive classes to parse, validate and manipulate URIs and their components in PHP.
<p class="message-warning">We no longer recommend installing this package directly.</p>
## System Requirements
* **PHP >= 7.0.13** but the latest stable version of PHP is recommended;
* `mbstring` extension;
* `intl` extension;
## Install
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](/parser/1.0/)
- [League Uri Schemes](/schemes/1.0/)
- [League Uri Components](/components/1.0/)
- [League Uri Manipulations](/manipulations/1.0/)
- [League Uri Hostname Parser](/domain-parser/1.0/) *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]( https://packagist.org/packages/league/uri) use [Composer](https://getcomposer.org/). This can be done by running the following command on a composer installed box:
~~~bash
$ composer require league/uri
~~~
Most modern frameworks will include Composer out of the box, but ensure the following file is included:
~~~php
<?php
// Include the Composer autoloader
require 'vendor/autoload.php';
~~~
|