mstaack / flysystem-encryption-adapter
Transparently encrypt and decrypt your content with flysystem
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 1
Forks: 1
Open Issues: 3
pkg:composer/mstaack/flysystem-encryption-adapter
Requires
- php: >=7.2
- clue/stream-filter: ^1.4
- defuse/php-encryption: ^2.2
- league/flysystem: ^1.0
- league/flysystem-adapter-decorator: ^1.0
- league/flysystem-replicate-adapter: ^1.0
- league/flysystem-ziparchive: ^1.0
- paragonie/halite: ^4.5
Requires (Dev)
- codedungeon/phpunit-result-printer: ^0.25.0
- larapack/dd: ^1.1
- league/flysystem-memory: ^1.0
- phpunit/phpunit: ^6.0
This package is auto-updated.
Last update: 2025-10-06 12:11:16 UTC
README
Uses halite
as a default or implement EncryptionInterface
. Also uses a stream filter when requested.
Installation
composer require mstaack/flysystem-encryption-adapter
Usage
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)