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 2mo ago

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 75% 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

2720d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/895dc6b7ec7660675ec9c13904cc5bac6ccc471aaa7950725349800fbe43bdd2?d=identicon)[Fuzzyma](/maintainers/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

[spatie/laravel-backup

A Laravel package to backup your application

6.0k21.8M191](/packages/spatie-laravel-backup)[ssch/typo3-rector

Instant fixes for your TYPO3 PHP code by using Rector.

2592.8M263](/packages/ssch-typo3-rector)[guikingone/scheduler-bundle

A Symfony bundle that allows to schedule and create repetitive tasks

114217.4k](/packages/guikingone-scheduler-bundle)[worksome/foggy

Foggy is a tool for making database dumps with some data removed/changed.

26571.7k1](/packages/worksome-foggy)[psx/sql

Generate type-safe PHP classes from your database

1773.4k4](/packages/psx-sql)[bartlett/php-compatinfo-db

Reference Database of all functions, constants, classes, interfaces on PHP standard distribution and about 110 extensions

1183.0k1](/packages/bartlett-php-compatinfo-db)

PHPackages © 2026

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