urimanage / urimanage
PSR-7 compliant URI manager to parse, modify and format
Installs: 365
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/urimanage/urimanage
Requires
- php: >=8.0
- psr/http-message: ^1.0||^2.0
Requires (Dev)
- php-http/psr7-integration-tests: ^1.4.0
- phpstan/phpstan: ^1.12.15
- phpunit/phpunit: ^9.6.22||^10.5.41
- vimeo/psalm: ^5.26.1
This package is auto-updated.
Last update: 2025-09-21 14:01:23 UTC
README
A library to parse, format and modify URIs following the PSR-7 URI interface, with URL encoding according to RFC 3986.
Installation
Install via composer:
composer require urimanage/urimanage
Simple Usage
$uri = new \UriManage\Uri('https://github.com/filecage/urimanage'); echo $uri->getScheme(); // https echo $uri->getHost(); // github.com echo $uri->getPath(); // /filecage/urimanage echo $uri->isAbsolute(); // true
Full API Reference
For a full reference of all available methods supported by PSR-7, please see here.
Additional methods
Uri::withPathAdded(string $path) : Uri
adds a path segment to the URIUri::isAbsolute() : bool
whether the URI is absolute (has scheme or authority) or notUri::getOriginalUri() : ?string
returns the original URI before any modifications