Skip to content

Add httpsoft/http-message info #309

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion clients/includes/install-message-factory.inc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ to install one as well (for example `Guzzle PSR-7`_):

In order to provide full interoperability, message implementations are
accessed through :ref:`factories <message-factory>`. Message factories for
`Laminas Diactoros`_ (and its abandoned predecessor `Zend Diactoros`_), `Guzzle PSR-7`_ and `Slim Framework`_ are available in the
`Laminas Diactoros`_ (and its abandoned predecessor `Zend Diactoros`_), `Guzzle PSR-7`_, `Slim Framework`_ and
`HTTP Software PSR-7 Message`_ are available in the
:doc:`message </message>` component:

.. code-block:: bash
Expand All @@ -17,4 +18,5 @@ accessed through :ref:`factories <message-factory>`. Message factories for
.. _Guzzle PSR-7: https://github.com/guzzle/psr7
.. _Laminas Diactoros: https://github.com/laminas/laminas-diactoros
.. _Slim PSR-7: https://github.com/slimphp/Slim-Psr7
.. _HTTP Software PSR-7 Message: https://github.com/httpsoft/http-message
.. _Zend Diactoros: https://github.com/zendframework/zend-diactoros
7 changes: 6 additions & 1 deletion httplug/users.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ You can pick any of the clients or adapters :doc:`provided by PHP-HTTP </clients
Popular choices are ``php-http/curl-client`` and ``php-http/guzzle6-adapter``.

Many libraries also need a PSR-7 implementation and the PHP-HTTP message
factories to create messages. The PSR-7 implementations are Laminas Diactoros (also still supports the abandoned Zend Diactoros), Guzzle's PSR-7 and Slim Framework's PSR-7 messages. Do one of the following:
factories to create messages. The PSR-7 implementations are Laminas Diactoros (also still supports the abandoned Zend
Diactoros), Guzzle's PSR-7, Slim Framework's PSR-7 and HTTP Software PSR-7 messages. Do one of the following:

.. code-block:: bash

Expand All @@ -50,6 +51,10 @@ factories to create messages. The PSR-7 implementations are Laminas Diactoros (a

$ composer require php-http/message slim/psr7

.. code-block:: bash

$ composer require php-http/message httpsoft/http-message

Troubleshooting
---------------

Expand Down
1 change: 1 addition & 0 deletions message/message-factory.rst
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,5 @@ to do that yet. Contributions are welcome if you want to define the
.. _Guzzle PSR-7: https://github.com/guzzle/psr7
.. _Laminas Diactoros: https://github.com/laminas/laminas-diactoros
.. _Slim PSR-7: https://github.com/slimphp/Slim-Psr7
.. _HTTP Software PSR-17 Factories: https://github.com/httpsoft/http-message
.. _Zend Diactoros: https://github.com/zendframework/zend-diactoros