Skip to content

Commit 6dab7be

Browse files
committed
update docs
1 parent d67f051 commit 6dab7be

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,12 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [0.2.0] - 2023-06-02
8+
### Added
9+
- `Uri::withPathAdded(string $path)` has been added to allow adding path segments to an existing URI
10+
11+
### Fixed
12+
- User Info segment is now properly urlencoded according to RFC 3986
13+
714
## [0.1.0] - 2022-12-28
815
- Initial release

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# urimanage
2-
A library to parse, format and modify URIs following the [PSR-7 URI interface](https://www.php-fig.org/psr/psr-7/])
2+
A library to parse, format and modify URIs following the [PSR-7 URI interface](https://www.php-fig.org/psr/psr-7/]),
3+
with URL encoding according to RFC 3986.
34

45
## Installation
56
Install via [composer](https://getcomposer.org):
@@ -20,3 +21,8 @@ echo $uri->isAbsolute(); // true
2021
## Full API Reference
2122
For a full reference of all available methods supported by PSR-7, please
2223
[see here](https://github.com/php-fig/http-message/blob/efd67d1dc14a7ef4fc4e518e7dee91c271d524e4/docs/PSR7-Interfaces.md#psrhttpmessageuriinterface-methods).
24+
25+
### Additional methods
26+
- `Uri::withPathAdded(string $path) : Uri` adds a path segment to the URI
27+
- `Uri::isAbsolute() : bool` whether the URI is absolute (has scheme or authority) or not
28+
- `Uri::getOriginalUri() : ?string` returns the original URI before any modifications

0 commit comments

Comments
 (0)