The aim here is to integrate with PLatform.sh!
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.
- Web server with symlink support
- PHP 5.4+ with GDlib, DOM, Phar, openssl and SOAP
- MySQL 5.5+
- A Symfony 2.6+ installation
If you do not yet have a Symfony installation, we recommend installing the Contao standard edition.
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::addContaoDirectories"
},
"post-update-cmd": {
"Contao\\CoreBundle\\Composer\\ScriptHandler::addContaoDirectories"
}
Then run php composer.phar update
to install the vendor files.
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\CoreBundle\ContaoCalendarBundle(),
new Contao\CoreBundle\ContaoCommentsBundle(),
new Contao\CoreBundle\ContaoFaqBundle(),
new Contao\CoreBundle\ContaoListingBundle(),
new Contao\CoreBundle\ContaoNewsBundle(),
new Contao\CoreBundle\ContaoNewsletterBundle(),
);
\Contao\CoreBundle\Kernel\BundleSorter::sort($bundles);
// ...
}
}
You can optionally omit everything but the ContaoCoreBundle
.
Contao is licensed under the terms of the LGPLv3.
Visit the support page to learn about the available support options.