Include vendor directory

This commit is contained in:
2025-10-24 12:35:37 +02:00
parent b81164279f
commit 43bc416554
712 changed files with 151811 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
Usage with PSR 7 Streams
===============
PSR-7 streams are `standardized streams <https://www.php-fig.org/psr/psr-7/>`_.
ZipStream-PHP supports working with these streams with the function
``addFileFromPsr7Stream``.
For all parameters of the function see the API documentation.
Example
---------------
.. code-block:: php
$stream = $response->getBody();
// add a file named 'streamfile.txt' from the content of the stream
$zip->addFileFromPsr7Stream(
fileName: 'streamfile.txt',
stream: $stream,
);