frostiede / eventable-flysystem
Installs: 9
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/frostiede/eventable-flysystem
Requires
- php: ^7.1 || ^7.2
- league/flysystem: ^1.0
- symfony/event-dispatcher: ^4.1
Requires (Dev)
- phpunit/phpunit: ^7.3
This package is auto-updated.
Last update: 2025-10-16 21:39:43 UTC
README
This is a Filesystem implementation which dispatches events on any call to the underlying filesystem.
In contrast to flysystem-eventable-filesystem this implementation can be used with Symfonys EventDispatcher.
Composer
$ composer require frostiede/eventable-flysystem
Usage
$adapter = new Local('./uploads'); # use League\Flysystem\Adapter\Local
$dispatcher = new EventDispatcher(); # use Symfony\Component\EventDispatcher\EventDispatcher
$filesystem = new EventableFilesystem($dispatcher, $adapter);
Of course, your $adapter can be any adapter 😉
Contribution
Feel free to contribute :-)
License
MIT