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
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,9 +20,20 @@ An implementation of the [PSR-7](https://www.php-fig.org/psr/psr-7/) Http Messag
20
20
composer require ingenioz-it/http-message
21
21
```
22
22
23
+
## Extra feature
24
+
25
+
This implementation strictly follows the PSR-7 and PSR-17 specifications, but it also provides one useful extra feature: the ability to create a `ServerRequest` from the global variables.
26
+
27
+
```php
28
+
use IngeniozIT\Http\Message\ServerRequestFactory;
29
+
30
+
$factory = new ServerRequestFactory(/* ... */);
31
+
$serverRequest = $factory->fromGlobals($GLOBALS);
32
+
```
33
+
23
34
## Full documentation
24
35
25
-
You can list the available features by running
36
+
You can list all the available features by running
0 commit comments