michaelpetri / symfony-file-watcher
Symfony Message Receiver to receive filesystem events.
Installs: 1 631
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 2
Forks: 3
Open Issues: 4
Requires
- php: ~8.1.0 || ~8.2.0
- michaelpetri/php-git: ^0.5.1
- symfony/dependency-injection: ^6.2.7
- symfony/framework-bundle: ^6.2.7
- symfony/messenger: ^6.2.7
- symfony/process: ^6.2.7
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.15.1
- phpunit/phpunit: ^10.1.1
- roave/security-advisories: dev-latest
- vimeo/psalm: ^5.8
- dev-main
- 0.2.5
- 0.2.4
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.2
- 0.1.1
- 0.1.0
- dev-dependabot/composer/symfony/http-foundation-6.4.14
- dev-dependabot/composer/symfony/process-6.4.14
- dev-dependabot/composer/symfony/messenger-7.1.6
- dev-dependabot/composer/symfony/dependency-injection-7.1.6
- dev-dependabot/composer/symfony/dependency-injection-6.2.8
This package is auto-updated.
Last update: 2024-11-06 18:31:37 UTC
README
This package contains a file watcher based on symfony/messenger and michaelpetri/php-git.
Since it is based on git it can emmit events for files even after it has been paused for a decent time. All changes will
trigger a FileCreated
, FileChanged
or FileDeleted
event which then can be handled by an event handler.
Note: Keep in mind that git is not good at handling binary files and using this package can lead to bloated disk usage!
Installation
composer require michaelpetri/symfony-file-watcher
Usage
# messenger.yaml transports: my-file-watcher: dsn: 'watch:///absolute/path/to/files?timeout=60000' # timeout in milliseconds
bin/console messenger:setup bin/console messenger:consume my-file-watcher
Sponsor
By using cutting-edge technology, process automation and taking responsibility for integration, synchronization, quality and consistency of your data.