contao  4.13.18
About: Contao is a Web content management system (CMS). Long-term support (LTS).
  Fossies Dox: contao-4.13.18.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

No Matches
contao Documentation

Some Fossies usage hints in advance:

  1. To see the Doxygen generated documentation please click on one of the items in the steelblue colored "quick index" bar above or use the side panel at the left which displays a hierarchical tree-like index structure and is adjustable in width.
  2. If you want to search for something by keyword rather than browse for it you can use the client side search facility (using Javascript and DHTML) that provides live searching, i.e. the search results are presented and adapted as you type in the Search input field at the top right.
  3. Doxygen doesn't incorporate all member files but just a definable subset (basically the main project source code files that are written in a supported language). So to search and browse all member files you may visit the Fossies contao-4.13.18.tar.gz contents page and use the Fossies standard member browsing features (also with source code highlighting and additionally with optional code folding).


Contao is a powerful open source CMS that allows you to create professional websites and scalable web applications. Visit the project website for more information.


The purpose of this package is to develop the Contao bundles. Use it if you e.g. want to create a pull request or if you want to report an issue.

The monorepo is automatically split into separate packages:

Please do not use contao/contao in production! Use the split packages instead.


To create a pull request and to test your changes within a running Contao application, it is the easiest to use the Contao Managed Edition. Start by installing it in your current directory:

composer create-project --no-install contao/managed-edition <directory> <branch>

Replace <directory> with the directory you want to install the Managed Edition in (use . for the current one). Replace <branch> with 5.x-dev if you want to add a new feature or with <lts-version>.x-dev (currently 4.9.x-dev) if you want to fix a bug.

Then adjust the require section in your composer.json file, so Composer loads the monorepo instead of the individual bundles:

"require": {
    "php": "^8.0",
    "contao/contao": "5.x-dev"

Again, use 5.x-dev if you want to add a new feature or <lts-version>.x-dev if you want to fix a bug.

Next, install the dependencies:

composer update

Composer will automatically clone the Git repo into the vendor/contao/contao folder. You can finish your setup by opening https://your-domain.local/contao/install in your browser.

All the changes you make in vendor/contao/contao are tracked via Git, so you can submit your pull request directly from within your application.

Running scripts

First install the code quality tools:

composer bin all install

Then run the code quality scripts via Composer:

composer run all

You can also run the scripts separately:

composer run unit-tests
composer run functional-tests
composer run cs-fixer
composer run service-linter
composer run phpstan
composer run monorepo-tools

If you want to pass additional flags to the underlying commands, you can use the -- argument:

composer run unit-tests -- --filter CoreBundle
composer run cs-fixer -- --clear-cache

Functional tests

To set up the functional tests, create a database named contao_test:

mysql -e "CREATE DATABASE contao_test"

If your database uses credentials, copy the file core-bundle/phpunit.xml.dist to core-bundle/phpunit.xml and adjust the following line:

    <env name="DATABASE_URL" value="mysql://root@localhost:3306/contao_test" />

Then run the functional tests via the run command:

composer run functional-tests


Contao is licensed under the terms of the LGPLv3.

Getting support

Visit the support page to learn about the available support options.