contao/contao

Contao Open Source CMS

4.2.3 2016-09-06 14:53 UTC

README

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.5+ with GDlib, DOM, Phar, openssl and SOAP
  • MySQL 5.0.3+

Prerequisites

  • A Symfony 2.8 or 3.x 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.2"
},
"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(
            // ...

            // Required bundles
            new Knp\Bundle\TimeBundle\KnpTimeBundle(),
            new Contao\CoreBundle\ContaoCoreBundle(),

            // Optional bundles
            new Contao\CalendarBundle\ContaoCalendarBundle(),
            new Contao\CommentsBundle\ContaoCommentsBundle(),
            new Contao\FaqBundle\ContaoFaqBundle(),
            new Contao\InstallationBundle\ContaoInstallationBundle(),
            new Contao\ListingBundle\ContaoListingBundle(),
            new Contao\NewsBundle\ContaoNewsBundle(),
            new Contao\NewsletterBundle\ContaoNewsletterBundle(),
        );
    }
}

License

Contao is licensed under the terms of the LGPLv3.

Getting support

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