This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Transparently encrypt and decrypt your content with flysystem

dev-master 2019-02-05 16:54 UTC

This package is auto-updated.

Last update: 2021-11-06 03:44:12 UTC


Build Status Total Downloads

Uses halite as a default or implement EncryptionInterface. Also uses a stream filter when requested.


composer require mstaack/flysystem-encryption-adapter


use League\Flysystem\Filesystem;
use League\Flysystem\Memory\MemoryAdapter;
use MStaack\Flysystem\Encryption\Encryption;
use MStaack\Flysystem\Encryption\EncryptionAdapterDecorator;

$adapter = new MemoryAdapter();
$encryption = new Encryption($encryptionKey='yournicekey');

$adapterDecorator = new EncryptionAdapterDecorator($adapter, $encryption);

$filesystem = new Filesystem($adapterDecorator)