Download the PHP package becklyn/ddd-file-store without Composer
On this page you can find all versions of the php package becklyn/ddd-file-store. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download becklyn/ddd-file-store
More information about becklyn/ddd-file-store
Files in becklyn/ddd-file-store
Package ddd-file-store
Short Description File storage engine used in Becklyn projects
License MIT
Informations about the package ddd-file-store
Becklyn DDD FileStore
This library provides file storage capabilities using the Becklyn DDD framework.
Requirements
Command handlers and event subscribers must be enabled in the project. See becklyn/ddd-symfony-bridge documentation for how to set this up.
Installation
- Run
composer require becklyn/ddd-file-store
-
Add the following to bundles.php:
- There is a doctrine migration provided. Execute it by running
php bin/console doctrine:migrations:migrate
- Add the following to services.yaml if the command handlers should log errors:
How To
Files are saved to the file store by dispatching CreateFileCommand and ReplaceFileContentsCommand through the command bus. Files are read by using the load method of the FileManager class. Files are deleted by dispatching DeleteFileCommand through the command bus. Files created by the library will be stored to %kernel_project_root%/var/becklyn-files folder by default. This can be changed through configuration.
Configuration
To change the values of configuration options from their defaults, create a becklyn_ddd.file_store.yaml file in the config/packages folder with the following contents:
Available Options
filesystem.base_path
- Type: string
-
Default: '%kernel_project_root%/var/becklyn-files'
This is the folder where files will be saved to.
All versions of ddd-file-store with dependencies
becklyn/ddd-doctrine-bridge Version ^3.0
becklyn/ddd-symfony-bridge Version ^3.0 || ^4.0
doctrine/doctrine-bundle Version ^2.4
doctrine/orm Version ^2.10
psr/log Version ^1.0 || ^2.0 || ^3.0
ramsey/uuid Version ^4.0
symfony/config Version ^6.0
symfony/dependency-injection Version ^6.0
symfony/filesystem Version ^6.0
symfony/http-foundation Version ^6.0
doctrine/migrations Version ^3.0