Skip to content

Commit 5906b63

Browse files
committed
Update README.md
1 parent c76a644 commit 5906b63

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,20 @@ An implementation of the [PSR-7](https://www.php-fig.org/psr/psr-7/) Http Messag
2020
composer require ingenioz-it/http-message
2121
```
2222

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+
2334
## Full documentation
2435

25-
You can list the available features by running
36+
You can list all the available features by running
2637

2738
```sh
2839
composer testdox

0 commit comments

Comments
 (0)