PHPackages                             ho-nl-fork/psr7-csv-factory - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. ho-nl-fork/psr7-csv-factory

ActiveLibrary[HTTP &amp; Networking](/categories/http)

ho-nl-fork/psr7-csv-factory
===========================

a factory to return league csv object from PSR-7 StreamInterface

v1.0.0(1y ago)0261MITPHPPHP &gt;=7.3

Since Sep 12Pushed 1mo agoCompare

[ Source](https://github.com/ho-nl-fork/psr7-adapter)[ Packagist](https://packagist.org/packages/ho-nl-fork/psr7-csv-factory)[ Docs](https://github.com/bakame-php/psr7-csv-factory)[ RSS](/packages/ho-nl-fork-psr7-csv-factory/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (8)Versions (2)Used By (1)

Bakame PSR-7 Adapter
====================

[](#bakame-psr-7-adapter)

This package enables converting a [PSR-7 StreamInterface objects](//www.php-fig.org/psr/psr-7/) into a PHP stream. This make it possible to work with functions and class which expect a PHP stream resource like [League CSV object](//csv.thephpleague.com) package.

The included `StreamWrapper` class is heavily inspired/copied from the excellent [Guzzle/Psr7](https://github.com/guzzle/psr7#php-streamwrapper) package written by Michael Dowling which uses the [MIT License](https://github.com/guzzle/psr7/blob/master/LICENSE)

Requirements
------------

[](#requirements)

You need **PHP &gt;= 7.3** but the latest stable version of PHP is recommended.

- A [PSR-7](//packagist.org/providers/psr/http-message-implementation) http mesage implementation ([Diactoros](//github.com/zendframework/zend-diactoros), [Guzzle](//github.com/guzzle/psr7), [Slim](//github.com/slimphp/Slim), etc...)

Installation
------------

[](#installation)

Install `bakame/psr7-adapter` using Composer.

```
$ composer require bakame/psr7-adapter

```

Documentation
-------------

[](#documentation)

### StreamWrapper::streamToResource

[](#streamwrapperstreamtoresource)

### StreamWrapper::streamToAppendableResource

[](#streamwrapperstreamtoappendableresource)

```
