PHPackages                             bakame/aide-uri - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. bakame/aide-uri

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

bakame/aide-uri
===============

Polyfill backporting PHP 8.5+ native RFC3986/WHATWG URI features to lower PHP versions

5153PHPCI failing

Since Sep 22Pushed 7mo ago2 watchersCompare

[ Source](https://github.com/bakame-php/aide-uri)[ Packagist](https://packagist.org/packages/bakame/aide-uri)[ RSS](/packages/bakame-aide-uri/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Warning

This package is archived, please use [League URI Polyfill](https://github.com/thephpleague/uri-polyfill) instead which is maintained and is the more stable version.

URI parsing polyfill for PHP8.1+
================================

[](#uri-parsing-polyfill-for-php81)

```
$uri = new Uri\Rfc3986\Uri("HTTPS://ex%61mpLE.com:443/foo/../bar/./baz?#fragment");
$uri->toRawString(); // returns "HTTPS://ex%61mpLE.com:443/foo/../bar/./baz?#fragment"
$uri->toString();    // returns "https://example.com:443/bar/baz?#fragment"

$url = new Uri\WhatWg\Url("HTTPS://🐘.com:443/foo/../bar/./baz?#fragment");
echo $url->toAsciiString();   // returns "https://xn--go8h.com/bar/baz?#fragment"
echo $url->toUnicodeString(); // returns "https://🐘.com/bar/baz?#fragment"
```

This package provides a polyfill for the new native PHP URI parsing features to be included in **PHP8.5**. The polyfill works for PHP versions greater or equal to **PHP8.1**

System Requirements
-------------------

[](#system-requirements)

To use the package, you require:

- **PHP &gt;= 8.1** but the latest stable version of PHP is recommended
- [league/uri-interfaces](https://github.com/thephpleague/uri-interfaces)
- [rowbot/url](https://github.com/TRowbotham/URL-Parser)

Tip

If you are using **PHP 8.1**, you **SHOULD** install `symfony/polyfill-php82` to use its `SensitiveParameter` polyfill

Install
-------

[](#install)

Install the package using Composer.

```
composer require bakame/aide-uri:dev-main
```

Documentation
-------------

[](#documentation)

The RFC introduces:

- the `Uri\Rfc3986\Uri` class, an [RFC 3986](https://www.rfc-editor.org/rfc/rfc3986) compliant URI parser
- the `Uri\WhatWg\Url` class, an [WHATWG](https://url.spec.whatwg.org/) compliant URL parser

Full documentation can be found on the [Add RFC 3986 and WHATWG compliant URI parsing support RFC](https://wiki.php.net/rfc/url_parsing_api).

Testing
-------

[](#testing)

The package has:

- a [PHPUnit](https://phpunit.de) test suite
- a code analysis compliance test suite using [PHPStan](https://github.com/phpstan/phpstan).
- a coding style compliance test suite using [PHP CS Fixer](http://cs.sensiolabs.org/).
- a benchmark using [PHP Bench](https://github.com/phpbench/phpbench).

To run the tests, run the following command from the project root folder.

```
composer test
```

You can run the benchmark separately using the following command:

```
composer benchmark
```

Contributing
------------

[](#contributing)

Contributions are welcome and will be fully credited. Please see [CONTRIBUTING](.github/CONTRIBUTING.md) and [CONDUCT](.github/CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

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

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [Ignace Nyamagana Butera](https://github.com/nyamsprod)
- [All Contributors](https://github.com/bakame-php/aide-uri/graphs/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [LICENSE](LICENSE) for more information.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance43

Moderate activity, may be stable

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/51073?v=4)[Ignace Nyamagana Butera](/maintainers/nyamsprod)[@nyamsprod](https://github.com/nyamsprod)

---

Top Contributors

[![nyamsprod](https://avatars.githubusercontent.com/u/51073?v=4)](https://github.com/nyamsprod "nyamsprod (111 commits)")

---

Tags

compatibilityequivalencerfc3986rfc3987uriuri-encode-decodeuri-parseruri-resolverurlwhatwg-url

### Embed Badge

![Health badge](/badges/bakame-aide-uri/health.svg)

```
[![Health](https://phpackages.com/badges/bakame-aide-uri/health.svg)](https://phpackages.com/packages/bakame-aide-uri)
```

###  Alternatives

[putyourlightson/craft-element-status-events

Element status events extension for Craft CMS.

121.0k](/packages/putyourlightson-craft-element-status-events)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
