@@ -30,23 +30,26 @@ implementations but only on the standard. The library should only require the
3030PSR standards.
3131
3232To run tests, you might still need an implementation. We recommend to
33- explicitly require that, but only for dev . To build a library that needs to
34- send HTTP requests, you could do:
33+ explicitly require that, but only for development . To build a library that
34+ needs to send HTTP requests, you could do:
3535
3636.. code-block :: bash
37+
3738 $ composer require --dev symfony/http-client
3839 $ composer require --dev nyholm/psr7
3940
4041 Then, you can disable the Composer plugin provided by ``php-http/discovery ``
41- because you just installed the dev dependencies you need for testing:
42+ because you just installed the `` dev `` dependencies you need for testing:
4243
4344.. code-block :: bash
45+
4446 $ composer config allow-plugins.php-http/discovery false
4547
4648 Finally, you need to require ``php-http/discovery `` and the generic implementations
4749that your library is going to need:
4850
4951.. code-block :: bash
52+
5053 $ composer require php-http/discovery:^1.17
5154 $ composer require psr/http-client-implementation:*
5255 $ composer require psr/http-factory-implementation:*
@@ -132,6 +135,7 @@ to prefer. You can specify the implementation for one of the standards:
132135
133136
134137.. code-block :: bash
138+
135139 $ composer config extra.discovery.psr/http-factory-implementation GuzzleHttp\P sr7\H ttpFactory
136140
137141 This will update your ``composer.json `` file to add the following configuration:
@@ -158,6 +162,7 @@ Don't forget to run composer install to apply the changes, and ensure that
158162the composer plugin is enabled:
159163
160164.. code-block :: bash
165+
161166 $ composer config allow-plugins.php-http/discovery true
162167 $ composer install
163168
@@ -338,7 +343,7 @@ Internally, this class relies on the concrete PSR-17 factories that are installe
338343and can use discovery to find implementations if you do not specify them in the constructor.
339344
340345``Psr17Factory `` provides two additional methods that allow creating
341- server requests or URI objects from the PHP super-globals ::
346+ server requests or URI objects from the PHP superglobals ::
342347
343348 $serverRequest = $factory->createServerRequestFromGlobals();
344349 $uri = $factory->createUriFromGlobals();
0 commit comments