PHPackages                             bakame/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. bakame/psr7-csv-factory

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

bakame/psr7-csv-factory
=======================

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

113.2k↓31%1PHPCI failing

Since Aug 9Pushed 4y ago1 watchersCompare

[ Source](https://github.com/bakame-php/psr7-adapter)[ Packagist](https://packagist.org/packages/bakame/psr7-csv-factory)[ RSS](/packages/bakame-psr7-csv-factory/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (2)Used By (0)

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)

```
