league/url

League/url is a lightweight PHP Url manipulating library

Installs: 112 038

Dependents: 40

Stars: 302

Watchers: 18

Forks: 47

Open Issues: 1

Language: PHP

4.0.0-beta.3 2015-06-10 09:57 UTC

README

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.

Build Status Coverage Status Quality Score Software License Latest Version Total Downloads

The League\Url package provides simple and intuitive classes to create and manage Urls in PHP.

Highlights

  • Simple API
  • RFC3986 compliant
  • Implements the UriInterface from PSR-7
  • Fully documented
  • Framework Agnostic
  • Composer ready, PSR-2 and PSR-4 compliant

Documentation

Full documentation can be found at url.thephpleague.com. Contribute to this documentation in the gh-pages branch

System Requirements

You need:

  • PHP >= 5.5.0 or HHVM >= 3.6, but the latest stable version of PHP/HHVM is recommended
  • the mbstring extension
  • the intl extension

To use the library.

Install

Install League\Url using Composer.

$ composer require league/url

Testing

League\Url has a PHPUnit test suite. To run the tests, run the following command from the project folder.

$ phpunit

Contributing

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

Security

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

Credits

License

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