PHPackages                             becklyn/ddd-file-store - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. becklyn/ddd-file-store

ActiveSymfony-bundle[File &amp; Storage](/categories/file-storage)

becklyn/ddd-file-store
======================

File storage engine used in Becklyn projects

5.0.0(11mo ago)14.7k↓62.5%MITPHPPHP &gt;=8.1

Since Jan 27Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/Becklyn/ddd-file-store)[ Packagist](https://packagist.org/packages/becklyn/ddd-file-store)[ RSS](/packages/becklyn-ddd-file-store/feed)WikiDiscussions 4.x Synced yesterday

READMEChangelog (9)Dependencies (13)Versions (14)Used By (0)

Becklyn DDD FileStore
=====================

[](#becklyn-ddd-filestore)

This library provides file storage capabilities using the Becklyn DDD framework.

Requirements
------------

[](#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
------------

[](#installation)

- Run `composer require becklyn/ddd-file-store`
- Add the following to bundles.php:

```
Becklyn\Ddd\FileStore\BecklynFileStoreBundle::class => ['all' => true],

```

- 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:

```
becklyn_ddd.file_store.handler.create_file:
        class: Becklyn\Ddd\FileStore\Application\CreateFileHandler
        arguments:
            $logger: '@YOUR_PSR_LOGGER_INTERFACE_COMPLIANT_SERVICE_HERE'
        tags:
            - { name: command_handler, register_public_methods: true }

becklyn_ddd.file_store.handler.replace_file_contents:
    class: Becklyn\Ddd\FileStore\Application\ReplaceFileContentsHandler
    arguments:
        $logger: '@YOUR_PSR_LOGGER_INTERFACE_COMPLIANT_SERVICE_HERE'
    tags:
        - { name: command_handler, register_public_methods: true }

```

How To
------

[](#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
-------------

[](#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:

```
becklyn_ddd.file_store:
   option_name: value
   option_namespace_1:
       namespaced_option_name: value

```

### Available Options

[](#available-options)

#### filesystem.base\_path

[](#filesystembase_path)

- Type: string
- Default: '%kernel\_project\_root%/var/becklyn-files'

This is the folder where files will be saved to.

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance52

Moderate activity, may be stable

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 54.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~98 days

Recently: every ~264 days

Total

14

Last Release

339d ago

Major Versions

1.x-dev → 2.0.02022-07-15

2.x-dev → 3.0.02022-08-24

3.x-dev → 4.0.02023-05-17

4.x-dev → 5.0.02025-07-29

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1044355?v=4)[Becklyn Studios](/maintainers/becklyn)[@Becklyn](https://github.com/Becklyn)

---

Top Contributors

[![msvujnovic-becklyn](https://avatars.githubusercontent.com/u/74408165?v=4)](https://github.com/msvujnovic-becklyn "msvujnovic-becklyn (20 commits)")[![msvujnovic](https://avatars.githubusercontent.com/u/22997161?v=4)](https://github.com/msvujnovic "msvujnovic (14 commits)")[![Thyrannoizer](https://avatars.githubusercontent.com/u/29758676?v=4)](https://github.com/Thyrannoizer "Thyrannoizer (3 commits)")

---

Tags

dddddd-architecturephpsymfonysymfony-bundle

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/becklyn-ddd-file-store/health.svg)

```
[![Health](https://phpackages.com/badges/becklyn-ddd-file-store/health.svg)](https://phpackages.com/packages/becklyn-ddd-file-store)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M386](/packages/easycorp-easyadmin-bundle)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M737](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M203](/packages/sulu-sulu)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[oro/platform

Business Application Platform (BAP)

645143.5k115](/packages/oro-platform)[contao/core-bundle

Contao Open Source CMS

1231.6M2.8k](/packages/contao-core-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
