PHPackages                             bentools/user-aware-command-bundle - 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. [CLI &amp; Console](/categories/cli)
4. /
5. bentools/user-aware-command-bundle

ActiveSymfony-bundle[CLI &amp; Console](/categories/cli)

bentools/user-aware-command-bundle
==================================

Provides a user value to Doctrine Entities that implements Gedmo Blameable when using Console commands.

v1.0.1(9y ago)119.9k1MITPHPPHP &gt;=5.4

Since Aug 2Pushed 4y ago1 watchersCompare

[ Source](https://github.com/bpolaszek/UserAwareCommandBundle)[ Packagist](https://packagist.org/packages/bentools/user-aware-command-bundle)[ RSS](/packages/bentools-user-aware-command-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

UserAwareCommandBundle
======================

[](#userawarecommandbundle)

This Symfony bundle provides a user value to Doctrine Entities that implements [Gedmo Blameable](https://github.com/Atlantic18/DoctrineExtensions/blob/master/doc/blameable.md) when using Console commands.

Installation
------------

[](#installation)

`composer require bentools/user-aware-command-bundle`

Then, enable the bundle into Symfony's AppKernel.php:

```
# app/AppKernel.php
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        // ...
        $bundles[] = new BenTools\UserAwareCommandBundle\UserAwareCommandBundle();
    }
}
```

Usage
-----

[](#usage)

The bundle just works out of the box, provided you already have the Blameable extension configured and working on your entities. Your console command just has to implement `BenTools\UserAwareCommandBundle\Model\UserAwareInterface`, which contains no method:

```
namespace AppBundle\Command;

use BenTools\UserAwareCommandBundle\Model\UserAwareInterface;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class DoMyCommand extends Command implements UserAwareInterface
{
    protected function execute(InputInterface $input, OutputInterface $output) {
	    // ...
	}
}
```

By default, the bundle will bind the `System` user to your *createdBy* / *updatedBy* properties.

You can change this user per command run with the *--user* option:

`php bin/console do:mycommand --user Ben`

Advanced configuration
----------------------

[](#advanced-configuration)

```
# app/config.yml

user_aware_command:
    user_name: System # change default user
    option_name: user # change default command option
    option_shortcut: u # set option shortcut
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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 ~20 days

Total

2

Last Release

3591d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/acdd1a8ee0e657ddd06cf11f98a32100ef7121afb8aa270a5b295f5c29c038b3?d=identicon)[bpolaszek](/maintainers/bpolaszek)

---

Top Contributors

[![bpolaszek](https://avatars.githubusercontent.com/u/5569077?v=4)](https://github.com/bpolaszek "bpolaszek (3 commits)")[![awm1](https://avatars.githubusercontent.com/u/753281?v=4)](https://github.com/awm1 "awm1 (1 commits)")

### Embed Badge

![Health badge](/badges/bentools-user-aware-command-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/bentools-user-aware-command-bundle/health.svg)](https://phpackages.com/packages/bentools-user-aware-command-bundle)
```

###  Alternatives

[sulu/sulu

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

1.3k1.4M196](/packages/sulu-sulu)[kimai/kimai

Kimai - Time Tracking

4.7k8.7k1](/packages/kimai-kimai)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1615.6k12](/packages/2lenet-crudit-bundle)[vitre/php-console-bundle

Provides PHP console implementation

1311.9k](/packages/vitre-php-console-bundle)[seiffert/console-extra-bundle

This bundle adds support for commands defined as DI services

201.4k](/packages/seiffert-console-extra-bundle)

PHPackages © 2026

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