Skip to content

Commit b2642fb

Browse files
committed
Improve Interfaces documentation
1 parent a74cfc7 commit b2642fb

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

docs/interfaces/7.0/uri-parser-builder.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@ PHP has been relying on the `parse_url` function to split URI into its component
1010
function predates RFC3986 and as such does not fully comply to the specification. To work
1111
around the limitation the tooklit provides the `League\Uri\UriString` class. It is a
1212
user-land PHP URI parser and builder compliant with [RFC 3986](http://tools.ietf.org/html/rfc3986) and [RFC 3987](http://tools.ietf.org/html/rfc3987)
13-
The class act as a drop-in replacement for PHP's `parse_url` feature. And expand on
14-
the feature to provide RFC3986 features:
13+
The class act as a drop-in replacement for PHP's `parse_url` feature.
14+
The class provides other core features of RFC3986 like dot segment removal, URI resolution,
15+
and URI normalization.
16+
17+
## URI parsing
1518

1619
The parser is:
1720

@@ -21,8 +24,6 @@ The parser is:
2124
- makes a distinction between empty and undefined components;
2225
- the parser throws a `League\Uri\Contracts\UriException` exception instead of returning `false` on error;
2326

24-
## URI parsing
25-
2627
The class covers parsing URI in different context:
2728

2829
~~~php
@@ -185,6 +186,8 @@ echo $path; //displays 'path/to/the/sky%7Bfoo%7D'
185186

186187
## Component and String Validation
187188

189+
<p class="message-notice">Available since version <code>7.6</code></p>
190+
188191
The class exposes static methods to validate that a string:
189192

190193
- represents a valid scheme with the `isValidScheme()` method

0 commit comments

Comments
 (0)