You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-22Lines changed: 4 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,12 +3,14 @@ Uri Interfaces
3
3
4
4
This package contains an interface to represents URI objects according to [RFC 3986](http://tools.ietf.org/html/rfc3986).
5
5
6
+
> ⚠️ this is a sub-split, for development, pull requests and issues, visit: https://github.com/thephpleague/uri-src
7
+
6
8
System Requirements
7
9
-------
8
10
9
11
You need:
10
12
11
-
-**PHP >= 7.2** but the latest stable version of PHP is recommended
13
+
-**PHP >= 8.1** but the latest stable version of PHP is recommended
12
14
13
15
Install
14
16
--------
@@ -37,6 +39,7 @@ The `UriInterface` interface defines the following methods to access the URI str
37
39
<?php
38
40
39
41
public UriInterface::__toString(void): string
42
+
public UriInterface::toString(void): string
40
43
public UriInterface::jsonSerialize(void): string
41
44
public UriInterface::getScheme(void): ?string
42
45
public UriInterface::getUserInfo(void): ?string
@@ -89,26 +92,10 @@ The `UriComponentInterface` interface defines the following methods to access th
89
92
public UriComponentInterface::value(): ?string
90
93
public UriComponentInterface::toString(): ?string
91
94
public UriComponentInterface::__toString(): string
92
-
public UriComponentInterface::getContent(): ?string
93
95
public UriComponentInterface::getUriComponent(): ?string
94
96
public UriComponentInterface::jsonSerialize(): ?string
95
97
~~~
96
98
97
-
-`UriComponentInterface::value()` added since version 2.4.0;
98
-
-`UriComponentInterface::toString()` added since version 2.4.0;
99
-
-`UriComponentInterface::getContent()` is deprecated since version 2.4.0 and is replaced by `UriComponentInterface::value()`;
100
-
-`UriComponentInterface::withContent()` is deprecated since version 2.4.0 with no replacement;
101
-
102
-
#### Modifying URI properties
103
-
104
-
The `UriComponentInterface` interface defines the following modifying method. this method **must** be implemented such that it retains the internal state of the current instance and return an instance that contains the changed state.
105
-
106
-
~~~php
107
-
<?php
108
-
109
-
public UriComponentInterface::withContent(?string $content): static
110
-
~~~
111
-
112
99
### UriComponentInterface extended interfaces
113
100
114
101
Because each URI component has specific needs most have specialized interface which all extends the `UriComponentInterface` interface. The following interfaces also exist:
@@ -125,11 +112,6 @@ Because each URI component has specific needs most have specialized interface wh
125
112
-`League\Uri\Contract\QueryInterface`
126
113
-`League\Uri\Contract\SegmentedPathInterface`
127
114
128
-
Contributing
129
-
-------
130
-
131
-
> ⚠️ this is a sub-split, for development, pull requests and issues, visit: https://github.com/thephpleague/uri-src
0 commit comments