PHPackages                             fuzzyma/contao-database-commands-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. [Database &amp; ORM](/categories/database)
4. /
5. fuzzyma/contao-database-commands-bundle

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

fuzzyma/contao-database-commands-bundle
=======================================

Commands to update the contao database or add an admin entry

0.2.4(7y ago)196.4k31MITPHP

Since Jul 12Pushed 7y ago3 watchersCompare

[ Source](https://github.com/Fuzzyma/contao-database-commands-bundle)[ Packagist](https://packagist.org/packages/fuzzyma/contao-database-commands-bundle)[ RSS](/packages/fuzzyma-contao-database-commands-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (4)Versions (7)Used By (1)

ContaoDatabaseCommandsBundle
============================

[](#contaodatabasecommandsbundle)

No need for the install tool anymore. This Bundle comes with a command to update the database to reflect all changed made in the dca files. Furthermore you can now add admin user per command, accept the license and do the whole first setup process with one command!

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

[](#installation)

### Step 1: Install the bundle

[](#step-1-install-the-bundle)

```
composer require fuzzyma/contao-database-commands-bundle
```

### Step 2: Register the bundle

[](#step-2-register-the-bundle)

Open your AppKernel.php and add the following line in the dev/test section:

```
$bundles[] = new Fuzzyma\Contao\DatabaseCommandsBundle\ContaoDatabaseCommandsBundle();
```

or use the composer plugin to register bundles: [ComposerRegisterBundlePlugin](https://github.com/Fuzzyma/composer-register-bundle-plugin)

Usage
-----

[](#usage)

The following commands are available:

- contao:database:update | Updates the database to the current dca state
- contao:database:addAdmin | Adds a new admin user
- contao:license | Accepts the license
- contao:setup | Creates Database and runs all other commands to perform a full contao setup

### contao:database:update

[](#contaodatabaseupdate)

```
bin/console contao:database:update -d        // updates the database INCLUDING [d]rops
bin/console contao:database:update --dry-run // only prints queries. database is left untouched

```

### contao:database:addAdmin

[](#contaodatabaseaddadmin)

```
bin/console contao:database:addAdmin // creates a new admin user interactively
bin/console contao:database:addAdmin -u username -a name -m mail -p password // for the pros
bin/console contao:database:addAdmin --force // will add admin even if admin user already present in tl_user table

```

### contao:license

[](#contaolicense)

```
bin/console contao:license       // accept the license interactively
bin/console contao:license --yes // accept the license directly

```

### contao:setup

[](#contaosetup)

```
bin/console contao:setup // do all together + creates database if not exists

```

Register database updates to the composer post-update-cmd
---------------------------------------------------------

[](#register-database-updates-to-the-composer-post-update-cmd)

Just add the following to the post-update-cmd array in your composer.json:

```
php bin/console contao:database:update
```

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.4% 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 ~175 days

Recently: every ~214 days

Total

6

Last Release

2765d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3540542?v=4)[Ulrich-Matthias Schäfer](/maintainers/Fuzzyma)[@Fuzzyma](https://github.com/Fuzzyma)

---

Top Contributors

[![Fuzzyma](https://avatars.githubusercontent.com/u/3540542?v=4)](https://github.com/Fuzzyma "Fuzzyma (15 commits)")[![bytehead](https://avatars.githubusercontent.com/u/754921?v=4)](https://github.com/bytehead "bytehead (4 commits)")[![patrickjDE](https://avatars.githubusercontent.com/u/6651001?v=4)](https://github.com/patrickjDE "patrickjDE (1 commits)")[![xchs](https://avatars.githubusercontent.com/u/1218766?v=4)](https://github.com/xchs "xchs (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fuzzyma-contao-database-commands-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/fuzzyma-contao-database-commands-bundle/health.svg)](https://phpackages.com/packages/fuzzyma-contao-database-commands-bundle)
```

###  Alternatives

[perplorm/perpl

Perpl is an improved and still maintained fork of Propel2, an open-source Object-Relational Mapping (ORM) for PHP.

249.4k](/packages/perplorm-perpl)

PHPackages © 2026

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