mstaack / flysystem-encryption-adapter
Transparently encrypt and decrypt your content with flysystem
dev-master
2019-02-05 16:54 UTC
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: 2024-12-06 10:31:55 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)