contao / core-bundle
Contao Open Source CMS
Installs: 478 214
Dependents: 1 547
Suggesters: 0
Security: 10
Stars: 114
Watchers: 42
Forks: 65
Type:symfony-bundle
Requires
- php: ^7.3 || ^8.0
- ext-dom: *
- ext-gd: *
- ext-hash: *
- ext-intl: *
- ext-json: *
- ext-pcre: *
- ext-pdo: *
- ext-zlib: *
- ausi/slug-generator: ^1.1
- bacon/bacon-qr-code: ^2.0
- composer/package-versions-deprecated: ^1.8
- contao-components/ace: ^1.2
- contao-components/chosen: ^1.2
- contao-components/colorbox: ^1.6
- contao-components/colorpicker: ^1.5
- contao-components/contao: ^9.1
- contao-components/datepicker: ^2.3
- contao-components/dropzone: ^5.0.1
- contao-components/jquery: ^3.5
- contao-components/jquery-ui: ^1.11.4
- contao-components/mediabox: ^1.5
- contao-components/mootools: ^1.6.0.1
- contao-components/simplemodal: ^2.1
- contao-components/swipe: ^2.0.3
- contao-components/tablesort: ^4.0
- contao-components/tablesorter: ^2.1
- contao-components/tinymce4: ^4.7 || ^5.0
- contao/image: ^1.0
- contao/imagine-svg: ^0.2.3 || ^1.0
- contao/polyfill-symfony: ^1.0
- doctrine/dbal: ^2.11
- doctrine/doctrine-bundle: ^1.8 || ^2.0
- doctrine/orm: ^2.6.3
- doctrine/persistence: ^1.3.3 || ^2.0
- dragonmantank/cron-expression: ^2.3
- friendsofsymfony/http-cache: ^2.6
- friendsofsymfony/http-cache-bundle: ^2.6
- imagine/imagine: ^0.7 || ^1.0
- knplabs/knp-menu-bundle: ^2.1 || ^3.0
- knplabs/knp-time-bundle: ^1.10
- lcobucci/jwt: ^3.4 || ^4.0
- league/uri-components: ^1.8
- league/uri-schemes: ^1.2
- matthiasmullie/minify: ^1.3
- michelf/php-markdown: ^1.4
- nelmio/cors-bundle: ^1.5.3 || ^2.0.1
- nikic/php-parser: ^4.9
- nyholm/psr7: ^1.2
- paragonie/constant_time_encoding: ^2.2
- patchwork/utf8: ^1.2
- phpspec/php-diff: ^1.0
- psr/log: ^1.0
- ramsey/uuid: ^3.8
- scheb/2fa-backup-code: ^5.0
- scheb/2fa-bundle: ^5.0
- scheb/2fa-trusted-device: ^5.0
- scrivo/highlight.php: ^9.18
- scssphp/scssphp: ^1.4
- simplepie/simplepie: ^1.3
- spomky-labs/otphp: ^9.1 || ^10.0
- symfony-cmf/routing-bundle: ^2.4
- symfony/asset: 4.4.* || 5.2.*
- symfony/cache: 4.4.* || 5.2.*
- symfony/config: 4.4.* || 5.2.*
- symfony/console: 4.4.* || 5.2.*
- symfony/dependency-injection: 4.4.* || 5.2.*
- symfony/deprecation-contracts: ^2.1
- symfony/dom-crawler: 4.4.* || 5.2.*
- symfony/event-dispatcher: 4.4.* || 5.2.*
- symfony/expression-language: 4.4.* || 5.2.*
- symfony/filesystem: 4.4.* || 5.2.*
- symfony/finder: 4.4.* || 5.2.*
- symfony/framework-bundle: 4.4.* || 5.2.*
- symfony/http-foundation: 4.4.* || 5.2.*
- symfony/http-kernel: 4.4.* || 5.2.*
- symfony/lock: 4.4.* || 5.2.*
- symfony/mailer: 4.4.* || 5.2.*
- symfony/monolog-bridge: 4.4.* || 5.2.*
- symfony/process: 4.4.* || 5.2.*
- symfony/routing: 4.4.* || 5.2.*
- symfony/security-bundle: 4.4.* || 5.2.*
- symfony/translation: 4.4.* || 5.2.*
- symfony/twig-bundle: 4.4.* || 5.2.*
- symfony/var-dumper: 4.4.* || 5.2.*
- symfony/yaml: 4.4.* || 5.2.*
- terminal42/escargot: ^1.0
- terminal42/service-annotation-bundle: ^1.1
- true/punycode: ^2.1
- twig/twig: ^2.7
- ua-parser/uap-php: ^3.9
- webignition/robots-txt-file: ^3.0
- webmozart/path-util: ^2.2
- wikimedia/less.php: ^1.7
Requires (Dev)
- ext-fileinfo: *
- contao/maintenance-bundle-deprecated: ^2.1.5
- contao/manager-plugin: ^2.3.1
- contao/test-case: ^4.2
- phpunit/phpunit: ^8.5
- symfony/browser-kit: 4.4.* || 5.2.*
- symfony/http-client: 4.4.* || 5.2.*
- symfony/phpunit-bridge: ^5.2
Suggests
- contao/tcpdf-bundle: To export articles as PDF files
Conflicts
- contao-community-alliance/composer-plugin: <3.0
- contao/core: *
- contao/manager-bundle: 4.5.* <4.5.2
- contao/manager-plugin: <2.0 || >=3.0
- symfony/mime: 4.4.* <4.4.10 || 5.0.* <5.0.10 || 5.1.0
- symfony/security-bundle: 4.4.* <4.4.5
- terminal42/contao-ce-access: <3.0
- 4.x-dev
- 4.11.x-dev
- 4.11.0
- 4.11.0-RC2
- 4.11.0-RC1
- 4.10.x-dev
- 4.10.7
- 4.10.6
- 4.10.5
- 4.10.4
- 4.10.3
- 4.10.2
- 4.10.1
- 4.10.0
- 4.10.0-RC4
- 4.10.0-RC3
- 4.10.0-RC2
- 4.10.0-RC1
- 4.9.x-dev
- 4.9.12
- 4.9.11
- 4.9.10
- 4.9.9
- 4.9.8
- 4.9.7
- 4.9.6
- 4.9.5
- 4.9.4
- 4.9.3
- 4.9.2
- 4.9.1
- 4.9.0
- 4.9.0-RC2
- 4.9.0-RC1
- 4.8.x-dev
- 4.8.8
- 4.8.7
- 4.8.6
- 4.8.5
- 4.8.4
- 4.8.3
- 4.8.2
- 4.8.1
- 4.8.0
- 4.8.0-RC2
- 4.8.0-RC1
- 4.7.x-dev
- 4.7.7
- 4.7.6
- 4.7.5
- 4.7.4
- 4.7.3
- 4.7.2
- 4.7.1
- 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.6.0-RC3
- 4.6.0-RC2
- 4.6.0-RC1
- 4.5.x-dev
- 4.5.14
- 4.5.13
- 4.5.12
- 4.5.11
- 4.5.10
- 4.5.9
- 4.5.8
- 4.5.7
- 4.5.6
- 4.5.5
- 4.5.4
- 4.5.3
- 4.5.2
- 4.5.1
- 4.5.0
- 4.5.0-RC2
- 4.5.0-RC1
- 4.5.0-beta3
- 4.5.0-beta2
- 4.5.0-beta1
- 4.4.x-dev
- 4.4.55
- 4.4.54
- 4.4.53
- 4.4.52
- 4.4.51
- 4.4.50
- 4.4.49
- 4.4.48
- 4.4.47
- 4.4.46
- 4.4.45
- 4.4.44
- 4.4.43
- 4.4.42
- 4.4.41
- 4.4.40
- 4.4.39
- 4.4.38
- 4.4.37
- 4.4.36
- 4.4.35
- 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
- 4.4.21
- 4.4.20
- 4.4.19
- 4.4.18
- 4.4.17
- 4.4.16
- 4.4.15
- 4.4.14
- 4.4.13
- 4.4.12
- 4.4.11
- 4.4.10
- 4.4.9
- 4.4.8
- 4.4.7
- 4.4.6
- 4.4.5
- 4.4.4
- 4.4.3
- 4.4.2
- 4.4.1
- 4.4.0
- 4.4.0-RC2
- 4.4.0-RC1
- 4.4.0-beta1
- 4.3.11
- 4.3.10
- 4.3.9
- 4.3.8
- 4.3.7
- 4.3.6
- 4.3.5
- 4.3.4
- 4.3.3
- 4.3.2
- 4.3.1
- 4.3.0
- 4.3.0-RC1
- 4.2.5
- 4.2.4
- 4.2.3
- 4.2.2
- 4.2.1
- 4.2.0
- 4.2.0-RC1
- 4.2.0-beta1
- 4.1.3
- 4.1.2
- 4.1.1
- 4.1.0
- 4.1.0-RC1
- 4.1.0-beta1
- 4.0.4
- 4.0.3
- 4.0.2
- 4.0.1
- 4.0.0
- 4.0.0-RC1
- 4.0.0-beta1
This package is auto-updated.
Last update: 2021-02-22 12:50:36 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.
Contao 4 has been designed as a Symfony bundle, which can be used to add CMS functionality to any Symfony application. If you do not have an existing Symfony application yet, we recommend using the Contao managed edition as basis for your application.
Prerequisites
The Contao core bundle has a recipe in the symfony/recipes-contrib repository. Be sure to either enable contrib recipes for your project by running the following command or follow the instructions to use the contrib recipe during the installation process.
composer config extra.symfony.allow-contrib true
Add the contao-component-dir
to the extra
section of your composer.json
file.
composer config extra.contao-component-dir assets
Installation
Install Contao and all its dependencies by executing the following command:
composer require \
contao/core-bundle:4.8.* \
contao/installation-bundle:^4.8 \
php-http/guzzle6-adapter:^1.1
Note that you can exchange the php-http/guzzle6-adapter
package with any
other HTTP client implementation. If you already have an HTTP client
implementation, you can omit the package entirely.
Configuration
Configure the DATABASE_URL
in your environment, either using environment
variables or by using the Dotenv component.
Enable ESI in the config/packages/framework.yaml
file.
framework: esi: true
Add the Contao routes to your config/routing.yaml
file, and be sure to load
the ContaoCoreBundle
at the very end, so the catch-all route does not catch
your application routes.
ContaoCoreBundle: resource: "@ContaoCoreBundle/Resources/config/routes.yml"
Edit your config/security.yml
file and merge all the providers
, encoders
,
firewalls
and access_control
sections:
security: providers: contao.security.backend_user_provider: id: contao.security.backend_user_provider contao.security.frontend_user_provider: id: contao.security.frontend_user_provider encoders: Contao\User: algorithm: auto firewalls: dev: pattern: ^/(_(profiler|wdt|error)|css|images|js)/ security: false contao_install: pattern: ^/contao/install$ security: false contao_backend: request_matcher: contao.routing.backend_matcher provider: contao.security.backend_user_provider user_checker: contao.security.user_checker anonymous: ~ switch_user: true contao_login: remember_me: false logout: path: contao_backend_logout handlers: - contao.security.logout_handler success_handler: contao.security.logout_success_handler contao_frontend: request_matcher: contao.routing.frontend_matcher provider: contao.security.frontend_user_provider user_checker: contao.security.user_checker anonymous: ~ switch_user: false contao_login: remember_me: true remember_me: secret: '%kernel.secret%' remember_me_parameter: autologin logout: path: contao_frontend_logout handlers: - contao.security.logout_handler success_handler: contao.security.logout_success_handler access_control: - { path: ^/contao/login$, roles: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/contao/logout$, roles: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/contao(/|$), roles: ROLE_USER } - { path: ^/, roles: [IS_AUTHENTICATED_ANONYMOUSLY] }
The Contao core-bundle as well as the installation-bundle are now installed and
activated. Use the Contao install tool to complete the installation by opening
the /contao/install
route in your browser.
License
Contao is licensed under the terms of the LGPLv3.
Getting support
Visit the support page to learn about the available support options.