contao / core-bundle
Contao Open Source CMS
Fund package maintenance!
Other
Installs: 1 257 064
Dependents: 2 145
Suggesters: 0
Security: 25
Stars: 122
Watchers: 40
Forks: 57
Type:symfony-bundle
Requires
- php: ^8.1
- composer-runtime-api: ^2.0.14
- ext-dom: *
- ext-filter: *
- ext-gd: *
- ext-hash: *
- ext-intl: *
- ext-json: *
- ext-pcre: *
- ext-pdo: *
- ext-session: *
- ext-zlib: *
- ausi/slug-generator: ^1.1
- bacon/bacon-qr-code: ^2.0
- contao-components/ace: ^1.8
- contao-components/altcha: ^1.0
- contao-components/chosen: ^2.0
- contao-components/colorbox: ^1.6
- contao-components/colorpicker: ^1.5
- contao-components/contao: ^9.1
- contao-components/datepicker: ^3.0
- contao-components/dropzone: ^5.0.1
- contao-components/handorgel: ^1.0
- 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: ^3.0
- contao-components/swipe: ^2.0.3
- contao-components/swiper: ^11.0
- contao-components/tablesort: ^4.0
- contao-components/tablesorter: ^2.1
- contao-components/tinymce4: ^5.0 || ^6.0 || ^7.0
- contao-components/tristen-tablesort: ^5.3
- contao/image: ^1.2
- contao/imagine-svg: ^1.0
- debril/feed-io: ^6.0
- doctrine/collections: ^2.1
- doctrine/dbal: ^3.6
- doctrine/doctrine-bundle: ^2.8
- doctrine/orm: ^2.17
- doctrine/persistence: ^3.2
- dragonmantank/cron-expression: ^2.3
- friendsofsymfony/http-cache: ^3.0
- friendsofsymfony/http-cache-bundle: ^3.0
- guzzlehttp/promises: ^1.5
- imagine/imagine: ^1.2.4
- knplabs/knp-menu: ^3.1
- knplabs/knp-menu-bundle: ^3.0
- knplabs/knp-time-bundle: ^1.11 || ^2.0
- lcobucci/jwt: ^4.0 || ^5.0
- league/commonmark: ^2.2
- league/flysystem: ^3.7
- league/flysystem-bundle: ^3.0
- league/flysystem-local: ^3.0
- matthiasmullie/minify: ^1.3
- monolog/monolog: ^3.0
- nelmio/cors-bundle: ^2.0.1
- nelmio/security-bundle: ^3.0
- nikic/php-parser: ^5.0
- nyholm/psr7: ^1.2
- paragonie/constant_time_encoding: ^2.2
- phpspec/php-diff: ^1.0
- psr/cache: ^3.0
- psr/container: ^2.0
- psr/http-message: ^1.0 || ^2.0
- psr/log: ^1.1 || 2.0 || ^3.0
- scheb/2fa-backup-code: ^6.0 || ^7.0
- scheb/2fa-bundle: ^6.0 || ^7.0
- scheb/2fa-trusted-device: ^6.0 || ^7.0
- scrivo/highlight.php: ^9.18
- scssphp/scssphp: ^1.5
- simplepie/simplepie: ^1.3
- spatie/schema-org: ^3.4
- spomky-labs/otphp: ^10.0
- symfony-cmf/routing: ^3.0
- symfony-cmf/routing-bundle: ^3.0
- symfony/asset: ^6.4 || ^7.0
- symfony/cache-contracts: ^3.0
- symfony/config: ^6.4 || ^7.0
- symfony/console: ^6.4 || ^7.0
- symfony/dependency-injection: ^6.4 || ^7.0
- symfony/deprecation-contracts: ^3.0
- symfony/doctrine-bridge: ^6.4 || ^7.0
- symfony/doctrine-messenger: ^6.4 || ^7.0
- symfony/dom-crawler: ^6.4 || ^7.0
- symfony/event-dispatcher: ^6.4 || ^7.0
- symfony/event-dispatcher-contracts: ^3.0
- symfony/expression-language: ^6.4 || ^7.0
- symfony/filesystem: ^6.4 || ^7.0
- symfony/finder: ^6.4 || ^7.0
- symfony/framework-bundle: ^6.4 || ^7.0
- symfony/html-sanitizer: ^6.4 || ^7.0
- symfony/http-client: ^6.4 || ^7.0
- symfony/http-client-contracts: ^3.1
- symfony/http-foundation: ^6.4 || ^7.0
- symfony/http-kernel: ^6.4 || ^7.0
- symfony/intl: ^6.4 || ^7.0
- symfony/mailer: ^6.4 || ^7.0
- symfony/messenger: ^6.4 || ^7.0
- symfony/mime: ^6.4 || ^7.0
- symfony/monolog-bridge: ^6.4 || ^7.0
- symfony/password-hasher: ^6.4 || ^7.0
- symfony/polyfill-intl-idn: ^1.0
- symfony/polyfill-mbstring: ^1.0
- symfony/process: ^6.4 || ^7.0
- symfony/property-access: ^6.4 || ^7.0
- symfony/rate-limiter: ^6.4 || ^7.0
- symfony/routing: ^6.4 || ^7.0
- symfony/security-bundle: ^6.4 || ^7.0
- symfony/security-core: ^6.4 || ^7.0
- symfony/security-csrf: ^6.4 || ^7.0
- symfony/security-http: ^6.4 || ^7.0
- symfony/service-contracts: ^3.0
- symfony/string: ^6.4 || ^7.0
- symfony/translation: ^6.4 || ^7.0
- symfony/translation-contracts: ^3.0
- symfony/twig-bridge: ^6.4 || ^7.0
- symfony/twig-bundle: ^6.4 || ^7.0
- symfony/uid: ^6.4 || ^7.0
- symfony/var-dumper: ^6.4 || ^7.0
- symfony/yaml: ^6.4 || ^7.0
- terminal42/escargot: ^1.6
- terminal42/service-annotation-bundle: ^1.1
- toflar/cronjob-supervisor: ^2.0
- twig/string-extra: ^3.0
- twig/twig: ^3.10.2
- ua-parser/uap-php: ^3.9
- webignition/robots-txt-file: ^3.0
- wikimedia/less.php: ^1.7
Requires (Dev)
- ext-fileinfo: *
- contao/manager-plugin: ^2.3.1
- contao/news-bundle: 5.4.4
- contao/test-case: 5.4.4
- doctrine/annotations: ^2.0
- league/flysystem-memory: ^3.0
- phpunit/phpunit: ^9.5.19
- sebastian/diff: ^4.0
- symfony/browser-kit: ^6.4 || ^7.0
- symfony/cache: ^6.4 || ^7.0
- symfony/monolog-bundle: ^3.1
- symfony/phpunit-bridge: ^6.4 || ^7.0
- symfony/web-profiler-bundle: ^6.4 || ^7.0
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
- doctrine/cache: <1.10
- terminal42/contao-ce-access: <3.0
- thecodingmachine/safe: <1.2
- 5.x-dev
- 5.4.x-dev
- 5.4.4
- 5.4.3
- 5.4.2
- 5.4.1
- 5.4.0
- 5.4.0-RC4
- 5.4.0-RC3
- 5.4.0-RC2
- 5.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.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: 2024-11-21 08:21:43 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 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.* \
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/config/routes.yaml"
Edit your config/security.yaml
file and merge all the providers
, encoders
, firewalls
and access_control
sections:
security: password_hashers: Contao\User: auto Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: auto providers: contao.security.backend_user_provider: id: contao.security.backend_user_provider contao.security.frontend_user_provider: id: contao.security.frontend_user_provider firewalls: contao_backend: request_matcher: contao.routing.backend_matcher provider: contao.security.backend_user_provider user_checker: contao.security.user_checker switch_user: true login_throttling: ~ webauthn: authentication: enabled: true profile: contao_backend routes: options_path: /_contao/login/webauthn/options result_path: /_contao/login/webauthn/result login_link: check_route: contao_backend_login_link signature_properties: [username, lastLogin] success_handler: contao.security.authentication_success_handler contao_login: remember_me: false logout: path: contao_backend_logout contao_frontend: request_matcher: contao.routing.frontend_matcher provider: contao.security.frontend_user_provider user_checker: contao.security.user_checker access_denied_handler: contao.security.access_denied_handler switch_user: false login_throttling: ~ contao_login: remember_me: true remember_me: secret: '%kernel.secret%' remember_me_parameter: autologin token_provider: doctrine: true logout: path: contao_frontend_logout access_control: - { path: ^%contao.backend.route_prefix%/login$, roles: PUBLIC_ACCESS } - { path: ^%contao.backend.route_prefix%/logout$, roles: PUBLIC_ACCESS } - { path: ^%contao.backend.route_prefix%(/|$), roles: ROLE_USER } - { path: ^/, roles: [PUBLIC_ACCESS] }
The Contao core-bundle is now installed and activated. Use the contao:migrate
command to upgrade the database and the
contao:user:create
command to create your first back end user.
License
Contao is licensed under the terms of the LGPLv3.
Getting support
Visit the support page to learn about the available support options.