/contao

Contao 4 meta package

Contao Open Source CMS

Contao is an Open Source PHP Content Management System for people who want a professional website that is easy to maintain. Visit the project website for more information.

System requirements

  • Web server with symlink support
  • PHP 5.4+ with GDlib, DOM, Phar, openssl and SOAP
  • MySQL 5.0.3+

Prerequisites

  • A Symfony 2.7+ installation

If you do not yet have a Symfony installation, we recommend installing the Contao standard edition.

Installation

Open a command console, enter your project directory and add the following to your composer.json file:

"require": {
    "contao/contao": "~4.0"
},
"config": {
    "component-dir": "assets"
},
"post-install-cmd": {
    "Contao\\CoreBundle\\Composer\\ScriptHandler::addDirectories",
    "Contao\\CoreBundle\\Composer\\ScriptHandler::generateSymlinks"
},
"post-update-cmd": {
    "Contao\\CoreBundle\\Composer\\ScriptHandler::addDirectories",
    "Contao\\CoreBundle\\Composer\\ScriptHandler::generateSymlinks"
}

Then run php composer.phar update to install the vendor files.

Activation

Add the following lines to your app/AppKernel.php file:

// app/AppKernel.php
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Contao\CoreBundle\ContaoCoreBundle(),
            new Contao\CalendarBundle\ContaoCalendarBundle(),
            new Contao\CommentsBundle\ContaoCommentsBundle(),
            new Contao\FaqBundle\ContaoFaqBundle(),
            new Contao\ListingBundle\ContaoListingBundle(),
            new Contao\NewsBundle\ContaoNewsBundle(),
            new Contao\NewsletterBundle\ContaoNewsletterBundle(),
        );
    }
}

You can optionally omit everything but the ContaoCoreBundle.

License

Contao is licensed under the terms of the LGPLv3.

Getting support

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