-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3ef939e
commit e54671e
Showing
3 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
Symfony Client | ||
============== | ||
|
||
An HTTPlug implementation from the `Symfony HttpClient`_. | ||
|
||
Installation | ||
------------ | ||
|
||
To install the Symfony client, run: | ||
|
||
.. code-block:: bash | ||
$ composer require symfony/http-client | ||
This client does not come with a PSR-7 implementation out of the box, so you have | ||
to install one as well. `Nyholm PSR-7`_ is supported natively: | ||
|
||
.. code-block:: bash | ||
$ composer require nyholm/psr7 | ||
.. include:: includes/install-discovery.inc | ||
|
||
Usage | ||
----- | ||
|
||
use Symfony\Component\HttpClient\HttplugClient; | ||
|
||
$symfonyClient = new HttplugClient(); | ||
|
||
.. note:: | ||
|
||
Check the official `Symfony HttpClient`_ documentation for more details. | ||
|
||
.. _Symfony HttpClient: https://symfony.com/doc/current/components/http_client.html#httplug | ||
|
||
.. _Nyholm PSR-7: https://github.com/Nyholm/psr7/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters