Skip to content

Commit 4cc854f

Browse files
authored
Merge pull request #159 from tuupola/slim-docs
Mention Slim Framework factories
2 parents 5b00df4 + 4321550 commit 4cc854f

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

clients/includes/install-message-factory.inc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ to install one as well (for example `Guzzle PSR-7`_):
77

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

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

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

discovery.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Strategies
3131

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

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

3737
Strategies provide candidates of a type which gets evaluated by the discovery service.

httplug/users.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ You can pick any of the clients or adapters :doc:`provided by PHP-HTTP </clients
3636
Popular choices are ``php-http/curl-client`` and ``php-http/guzzle6-adapter``.
3737

3838
Many libraries also need a PSR-7 implementation and the PHP-HTTP message
39-
factories to create messages. The PSR-7 implementations are Zend's Diactoros
40-
and Guzzle's PSR-7. Do one of the following:
39+
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:
4140

4241
.. code-block:: bash
4342
@@ -47,6 +46,10 @@ and Guzzle's PSR-7. Do one of the following:
4746
4847
$ composer require php-http/message guzzlehttp/psr7
4948
49+
.. code-block:: bash
50+
51+
$ composer require php-http/message slim/slim
52+
5053
Troubleshooting
5154
---------------
5255

message.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This package contains various PSR-7 tools which might be useful in an HTTP workf
1111
* Authentication method implementations
1212
* Various Stream encoding tools
1313
* Message decorators
14-
* Message factory implementations for Guzzle PSR-7 and Diactoros
14+
* Message factory implementations for Guzzle PSR-7, Diactoros and Slim Framework.
1515
* Cookie implementation
1616

1717
.. _message-factory:

message/message-factory.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The `php-http/message-factory` package defines interfaces for PSR-7 factories in
3030
- ``UploadedFileFactory`` - WIP (PRs welcome)
3131
- ``UriFactory``
3232

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

3535
.. code:: php
3636
@@ -53,3 +53,5 @@ You could also use :doc:`/discovery` to find an installed factory automatically.
5353
5454
.. _Diactoros: https://github.com/zendframework/zend-diactoros
5555
.. _Guzzle PSR-7: https://github.com/guzzle/psr7
56+
.. _Slim Framework: https://github.com/slimphp/Slim
57+

0 commit comments

Comments
 (0)