PHPackages                             drupal-libraries/flystream - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. drupal-libraries/flystream

ActiveLibrary[File &amp; Storage](/categories/file-storage)

drupal-libraries/flystream
==========================

PHP stream wrapper for Flysystem v2 and v3

v3.0.0(1y ago)0644MITPHPPHP ^8.1CI failing

Since Aug 27Pushed 1y agoCompare

[ Source](https://github.com/drupal-libraries/flystream)[ Packagist](https://packagist.org/packages/drupal-libraries/flystream)[ RSS](/packages/drupal-libraries-flystream/feed)WikiDiscussions 3.x Synced 1mo ago

READMEChangelog (1)Dependencies (7)Versions (3)Used By (0)

Flystream
=========

[](#flystream)

This is a modified fork of elazar/flystream v1.2.0, with modifications to allow for extending classes specifically for use in Drupal's Flysystem ecosystem.

[![PHP Version Support](https://camo.githubusercontent.com/cb344141d6a48e32e1f644895452c73788fcdf9cb0d4be703e8d4d731bd81290/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d706870266d6573736167653d2533453d253230382e312e3026636f6c6f723d626c7565)](https://packagist.org/packages/drupal-libraries/flystream)[![Packagist Version](https://camo.githubusercontent.com/66ab85704a86583936d4c7d8668af6525327557fc1554c781287d262adc4d82e/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d7061636b6167697374266d6573736167653d312e322e3026636f6c6f723d626c7565)](https://packagist.org/packages/drupal-libraries/flystream)[![Software License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

[Flysystem v2/3](https://flysystem.thephpleague.com/v2/docs/) + [PHP stream wrappers](https://www.php.net/manual/en/class.streamwrapper.php) = 🔥

Flystream enables you to use core PHP filesystem functions to interact with Flysystem filesystems by registering them as custom protocols.

Released under the [MIT License](https://en.wikipedia.org/wiki/MIT_License).

Supported Use Cases
-------------------

[](#supported-use-cases)

- Using Flysystem with another library that interacts with the filesystem using PHP filesystem functions instead of Flysystem.
- Intercepting filesystem operations for verification in tests.
- Improving the speed of tests where the code under test would otherwise require access to the local filesystem.

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

[](#requirements)

- PHP 8.1+
- Flysystem 2 or 3

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

[](#installation)

Use [Composer](https://getcomposer.org/).

```
composer require drupal-libraries/flystream
```

**Note**: This will automatically install the latest version of the Flysystem core library that is available for your environment. However, you must handle installing adapters yourself. See [the Flysystem documentation](https://flysystem.thephpleague.com/docs/) for a list of official adapters.

Usage
-----

[](#usage)

If you want to run the examples below, you will need to install [`league/flysystem-memory`](https://packagist.org/packages/league/flysystem-memory).

```
composer require league/flysystem-memory
```

These examples below aren't comprehensive, but should provide a basic understanding of the capabilities of Flystream.

```
