PHPackages                             draw/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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. draw/command-bundle

ActiveSymfony-bundle[Logging &amp; Monitoring](/categories/logging)

draw/command-bundle
===================

This bundle track command execution in the database.

0.7.59(4y ago)03.5k1[1 issues](https://github.com/mpoiriert/command-bundle/issues)[1 PRs](https://github.com/mpoiriert/command-bundle/pulls)MITPHP

Since Nov 13Pushed 4y ago1 watchersCompare

[ Source](https://github.com/mpoiriert/command-bundle)[ Packagist](https://packagist.org/packages/draw/command-bundle)[ RSS](/packages/draw-command-bundle/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (13)Versions (86)Used By (0)

DrawCommandBundle
=================

[](#drawcommandbundle)

This bundle allows triggering command from the sonata admin. It also logs every command execution in the database even if they have been started from the command line.

Configuration
-------------

[](#configuration)

The configuration lists the commands available from Sonata to be selected and executed:

```
draw_command:
    sonata:
        commands:
            clearCache:
                commandName: "redis:flushdb"
                label: "Clear Cache"
                icon: "fa-ban"
            reIndexSearch:
                commandName: "fos:elastica:populate"
                label: "Re-Index Search"
                icon: "fa-search-plus"
```

Logging command execution
-------------------------

[](#logging-command-execution)

All command execution are log in the databases. They also log the output, so you can debug them in case an error happen.

If you want to proper log the output from command line interface you must use the BufferedConsoleOutput for you output in bin/console:

```
$application->run($input, new \Draw\Bundle\CommandBundle\Console\Output\BufferedConsoleOutput());
```

Some predefined command are ignored by the command logging. This is a predefined list:

- help
- doctrine:database:drop
- doctrine:database:create
- cache:clear

Todo
----

[](#todo)

- Allow to configure the list of command that are ignored form the logger
- Allow to have argument on the command execution, could be predefined from the configuration, an input in the admin, or a more complex input done by reverse engineering the arguments of a command

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~10 days

Recently: every ~4 days

Total

84

Last Release

1503d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8bb9496b48abc2bfd37ebafa9cc4b3b1307a369ad27f6514943408d9b5ff18a5?d=identicon)[mpoiriert](/maintainers/mpoiriert)

---

Top Contributors

[![mpoiriert](https://avatars.githubusercontent.com/u/4175616?v=4)](https://github.com/mpoiriert "mpoiriert (77 commits)")

---

Tags

symfonycommandsonata

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/draw-command-bundle/health.svg)

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

###  Alternatives

[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

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

1.3k1.3M152](/packages/sulu-sulu)[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M193](/packages/simplesamlphp-simplesamlphp)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[contao/manager-bundle

Provides the Contao Managed Edition

181.3M61](/packages/contao-manager-bundle)

PHPackages © 2026

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