contao/contao
Contao 4 bundles
Installs: 9 486
Dependents: 2
Suggesters: 0
Stars: 45
Watchers: 25
Forks: 28
Open Issues: 65
Type:symfony-bundle
Requires
- php: ^7.1
- ext-dom: *
- ext-gd: *
- ext-intl: *
- ext-json: *
- ext-pcre: *
- ext-pdo: *
- ext-zlib: *
- ausi/slug-generator: ^1.1
- bacon/bacon-qr-code: ^2.0
- contao-components/ace: ^1.2
- contao-components/chosen: ^1.2
- contao-components/colorbox: ^1.6
- contao-components/colorpicker: ^1.5
- contao-components/compass: ^0.12
- contao-components/contao: ^8.0
- contao-components/datepicker: ^2.3
- contao-components/dropzone: ^5.0.1
- contao-components/highlight: ^9.0
- contao-components/html5shiv: ^3.7.3
- contao-components/jquery: ^1.12 || ^2.0 || ^3.0
- contao-components/jquery-ui: ^1.11.4
- contao-components/mediabox: ^1.5
- contao-components/mediaelement: ^4.1
- contao-components/mootools: ^1.6.0.1
- contao-components/respimage: ^1.4
- contao-components/simplemodal: ^2.1
- contao-components/swipe: ^2.0.3
- contao-components/tablesort: ^3.4.5
- contao-components/tablesorter: ^2.1
- contao-components/tinymce4: ^4.7
- contao/image: ^0.3.5
- contao/imagine-svg: ^0.1.2 || ^0.2
- contao/manager-plugin: ^2.6.2
- doctrine/dbal: ^2.5
- doctrine/doctrine-bundle: ^1.7.2
- doctrine/doctrine-cache-bundle: ^1.3
- friendsofsymfony/http-cache: ^2.5
- friendsofsymfony/http-cache-bundle: ^2.6
- imagine/imagine: ^0.7
- knplabs/knp-menu-bundle: ^2.1
- knplabs/knp-time-bundle: ^1.5.2
- leafo/scssphp: ^0.7.1
- league/uri: ^5.0
- lexik/maintenance-bundle: ^2.1.3
- matthiasmullie/minify: ^1.3
- michelf/php-markdown: ^1.4
- nelmio/cors-bundle: ^1.5.3
- nelmio/security-bundle: ^2.2
- ocramius/package-versions: ^1.2
- ocramius/proxy-manager: ^2.1
- oyejorge/less.php: ^1.7
- paragonie/constant_time_encoding: ^2.2
- patchwork/utf8: ^1.2
- php-http/guzzle6-adapter: ^1.1
- phpspec/php-diff: ^1.0
- phpunit/php-token-stream: ^1.4 || ^2.0 || ^3.0
- psr/log: ^1.0
- scheb/two-factor-bundle: ^3.7
- sensiolabs/ansi-to-html: ^1.1
- simplepie/simplepie: ^1.3
- spomky-labs/otphp: ^9.1
- symfony-cmf/routing-bundle: ^2.1
- symfony/asset: 3.4.* || 4.1.* || 4.2.*
- symfony/cache: 3.4.* || 4.1.* || 4.2.*
- symfony/config: 3.4.* || 4.1.* || 4.2.*
- symfony/console: 3.4.* || 4.1.* || 4.2.*
- symfony/debug-bundle: 3.4.* || 4.1.* || 4.2.*
- symfony/dependency-injection: 3.4.* || 4.1.* || 4.2.*
- symfony/dotenv: 3.4.* || 4.1.* || 4.2.*
- symfony/event-dispatcher: 3.4.* || 4.1.* || 4.2.*
- symfony/expression-language: 3.4.* || 4.1.* || 4.2.*
- symfony/filesystem: 3.4.* || 4.1.* || 4.2.*
- symfony/finder: 3.4.* || 4.1.* || 4.2.*
- symfony/framework-bundle: 3.4.* || 4.1.* || 4.2.*
- symfony/http-foundation: 3.4.* || 4.1.* || 4.2.*
- symfony/http-kernel: 3.4.* || 4.1.* || 4.2.*
- symfony/lock: 3.4.* || 4.1.* || 4.2.*
- symfony/monolog-bridge: 4.1.* || 4.2.*
- symfony/monolog-bundle: ^3.1
- symfony/process: 3.4.* || 4.1.* || 4.2.*
- symfony/proxy-manager-bridge: 3.4.* || 4.1.* || 4.2.*
- symfony/routing: 3.4.* || 4.1.* || 4.2.*
- symfony/security-bundle: 3.4.* || 4.1.* || 4.2.*
- symfony/swiftmailer-bundle: ^2.6 || ^3.1.5
- symfony/translation: 3.4.* || 4.1.* || 4.2.*
- symfony/twig-bundle: 3.4.* || 4.1.* || 4.2.*
- symfony/web-profiler-bundle: 3.4.* || 4.1.* || 4.2.*
- symfony/yaml: 3.4.* || 4.1.* || 4.2.*
- tecnickcom/tcpdf: ^6.2.22
- terminal42/header-replay-bundle: ^1.5.3
- toflar/psr6-symfony-http-cache-store: ^1.0.2
- true/punycode: ^2.1
Requires (Dev)
- ext-fileinfo: *
- composer/composer: ^1.0
- contao/monorepo-tools: dev-master
- contao/phpstan: ^0.4
- contao/test-case: ^2.0
- doctrine/doctrine-migrations-bundle: ^1.1
- doctrine/event-manager: ^1.0
- doctrine/orm: ^2.5
- friendsofphp/php-cs-fixer: ^2.12
- monolog/monolog: ^1.22
- php-coveralls/php-coveralls: ^2.1
- phpstan/phpstan-phpunit: ^0.10
- phpunit/phpunit: ^7.0
- symfony/browser-kit: 3.4.* || 4.1.* || 4.2.*
- symfony/phpunit-bridge: ^3.4.5
Conflicts
- contao-community-alliance/composer-plugin: <3.0
- contao/core: *
- contao/manager-plugin: <2.0 || >=3.0
- doctrine/dbal: 2.9.* <2.9.3
- doctrine/doctrine-migrations-bundle: <1.1
- doctrine/orm: <2.4
- knplabs/knp-time-bundle: 1.9.0
- lexik/maintenance-bundle: 2.1.4
- symfony/finder: 3.4.7 || 4.0.7
- symfony/swiftmailer-bundle: 2.6.* <2.6.2
- symfony/twig-bundle: 4.1.0
Replaces
- contao/core-bundle: 4.7.0
- contao/calendar-bundle: 4.7.0
- contao/comments-bundle: 4.7.0
- contao/faq-bundle: 4.7.0
- contao/installation-bundle: 4.7.0
- contao/listing-bundle: 4.7.0
- contao/manager-bundle: 4.7.0
- contao/news-bundle: 4.7.0
- contao/newsletter-bundle: 4.7.0
- dev-master / 4.8.x-dev
- 4.7.x-dev
- 4.7.0
- 4.7.0-RC4
- 4.7.0-RC3
- 4.7.0-RC2
- 4.7.0-RC1
- 4.6.x-dev
- 4.6.14
- 4.6.13
- 4.6.12
- 4.6.11
- 4.6.10
- 4.6.9
- 4.6.8
- 4.6.7
- 4.6.6
- 4.6.5
- 4.6.4
- 4.6.3
- 4.6.2
- 4.6.1
- 4.6.0
- 4.5.x-dev
- 4.5.14
- 4.5.13
- 4.4.x-dev
- 4.4.34
- 4.4.33
- 4.4.32
- 4.4.31
- 4.4.30
- 4.4.29
- 4.4.28
- 4.4.27
- 4.4.26
- 4.4.25
- 4.4.24
- 4.4.23
- 4.4.22
README
This is a monorepo holding the official Contao 4 bundles.
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.
Purpose
The purpose of this package is to develop the Contao 4 bundles. Use it if you e.g. want to create a pull request or if you want to report an issue.
The monorepo is split into separate packages automatically:
- CalendarBundle
- CommentsBundle
- CoreBundle
- FaqBundle
- InstallationBundle
- ListingBundle
- ManagerBundle
- NewsBundle
- NewsletterBundle
Please do not use contao/contao
in production but use the split packages
instead.
Development
To create a pull request and to test your changes within a running Contao 4 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) and <branch>
with dev-master
if you want to
add a new feature or with <lts-version>.x-dev
(currently 4.4.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": "^7.1", "contao/contao": "dev-master" },
Again, use dev-master
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 visiting
https://your-domain.local/contao/install
.
All the changes you make in vendor/contao/contao
can be tracked via Git and
you can submit your pull request directly from within your application.
Running scripts
You can use the run
command to run scripts in all bundles:
./run phpunit ./run php-cs-fixer
Functional tests
To set up functional tests, create a database named contao_test
and import
the core-bundle/tests/Functional/app/Resources/contao_test.sql
file.
mysql -e "CREATE DATABASE contao_test" mysql contao_test < core-bundle/tests/Functional/app/Resources/contao_test.sql
If your database uses credentials, copy the file core-bundle/phpunit.xml.dist
to core-bundle/phpunit.xml
and add the following lines:
<php> <env name="DB_HOST" value="localhost" /> <env name="DB_USER" value="…" /> <env name="DB_PASS" value="…" /> <env name="DB_NAME" value="contao_test" /> </php>
Then run the functional tests via the run
command:
./run functional
License
Contao is licensed under the terms of the LGPLv3.
Getting support
Visit the support page to learn about the available support options.