Skip to content

Mention Slim Framework factories #159

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

Merged
merged 1 commit into from
Oct 17, 2016
Merged
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
3 changes: 2 additions & 1 deletion clients/includes/install-message-factory.inc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ to install one as well (for example `Guzzle PSR-7`_):

In order to provide full interoperability, message implementations are
accessed through :doc:`factories </message/message-factory>`. Message factories for
`Diactoros`_ and `Guzzle PSR-7`_ are available in the
`Diactoros`_, `Guzzle PSR-7`_ and `Slim Framework`_ are available in the
:doc:`message </message>` component:

.. code-block:: bash
Expand All @@ -16,3 +16,4 @@ accessed through :doc:`factories </message/message-factory>`. Message factories

.. _Diactoros: https://github.com/zendframework/zend-diactoros
.. _Guzzle PSR-7: https://github.com/guzzle/psr7
.. _Slim Framework: https://github.com/slimphp/Slim
2 changes: 1 addition & 1 deletion discovery.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Strategies

The package supports multiple discovery strategies and comes with two out-of-the-box:

- A built-in strategy supporting the HTTPlug adapters, clients and factories (including Guzzle and Diactoros)
- A built-in strategy supporting the HTTPlug adapters, clients and factories (including Guzzle, Diactoros and Slim Framework)
- A strategy supporting the beta version of `Puli`_

Strategies provide candidates of a type which gets evaluated by the discovery service.
Expand Down
7 changes: 5 additions & 2 deletions httplug/users.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ 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 Zend's Diactoros
and Guzzle's PSR-7. Do one of the following:
factories to create messages. The PSR-7 implementations are Zend's Diactoros, Guzzle's PSR-7 and Slim Framework's PSR-7 messages. Do one of the following:

.. code-block:: bash

Expand All @@ -47,6 +46,10 @@ and Guzzle's PSR-7. Do one of the following:

$ composer require php-http/message guzzlehttp/psr7

.. code-block:: bash

$ composer require php-http/message slim/slim

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

Expand Down
2 changes: 1 addition & 1 deletion message.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This package contains various PSR-7 tools which might be useful in an HTTP workf
* Authentication method implementations
* Various Stream encoding tools
* Message decorators
* Message factory implementations for Guzzle PSR-7 and Diactoros
* Message factory implementations for Guzzle PSR-7, Diactoros and Slim Framework.
* Cookie implementation

.. _message-factory:
Expand Down
4 changes: 3 additions & 1 deletion message/message-factory.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ The `php-http/message-factory` package defines interfaces for PSR-7 factories in
- ``UploadedFileFactory`` - WIP (PRs welcome)
- ``UriFactory``

Implementation for the interfaces above for `Diactoros`_ and `Guzzle PSR-7`_ can be found in ``php-http/message``.
Implementation for the interfaces above for `Diactoros`_ and `Guzzle PSR-7`_ and `Slim Framework`_ can be found in ``php-http/message``.

.. code:: php

Expand All @@ -53,3 +53,5 @@ You could also use :doc:`/discovery` to find an installed factory automatically.

.. _Diactoros: https://github.com/zendframework/zend-diactoros
.. _Guzzle PSR-7: https://github.com/guzzle/psr7
.. _Slim Framework: https://github.com/slimphp/Slim