All Projects → contao → Core Bundle

contao / Core Bundle

Licence: lgpl-3.0
[READ-ONLY] Contao Core Bundle

Projects that are alternatives of or similar to Core Bundle

Sonatanotificationbundle
Symfony SonataNotificationBundle
Stars: ✭ 136 (+20.35%)
Mutual labels:  cms, symfony, symfony-bundle
Sonatapagebundle
This bundle provides a Site and Page management through container and block services
Stars: ✭ 181 (+60.18%)
Mutual labels:  cms, symfony, symfony-bundle
Victoire
Fullstack Symfony CMS: The perfect mix between a framework and a CMS
Stars: ✭ 227 (+100.88%)
Mutual labels:  cms, symfony, symfony-bundle
Beetbox
Pre-provisioned L*MP stack
Stars: ✭ 94 (-16.81%)
Mutual labels:  cms, symfony
Liipcachecontrolbundle
DEPRECATED! This bundle is superseded by FOSHttpCacheBundle. A migration guide is in the README of LiipCacheControlBundle
Stars: ✭ 108 (-4.42%)
Mutual labels:  symfony, symfony-bundle
Whiteoctobertcpdfbundle
A bundle to facilitate using TCPDF for PDF generation in Symfony applications
Stars: ✭ 91 (-19.47%)
Mutual labels:  symfony, symfony-bundle
Web Server Bundle
WebServerBundle provides commands for running applications using the PHP built-in web server. It simplifies your local development setup because you don't have to configure a proper web server such as Apache or Nginx to run your application.
Stars: ✭ 1,281 (+1033.63%)
Mutual labels:  symfony, symfony-bundle
Personal Management System
Your web application for managing personal data. <[email protected]>
Stars: ✭ 2,027 (+1693.81%)
Mutual labels:  cms, symfony
Easy Security Bundle
EasySecurityBundle
Stars: ✭ 95 (-15.93%)
Mutual labels:  symfony, symfony-bundle
Slack Bundle
Symfony bundle integration of the nexylan/slack library.
Stars: ✭ 110 (-2.65%)
Mutual labels:  symfony, symfony-bundle
Filemanagerbundle
FileManager is a simple Multilingual File Manager Bundle for Symfony
Stars: ✭ 105 (-7.08%)
Mutual labels:  symfony, symfony-bundle
Service Bus Symfony Bundle
Symfony Bundle - PHP Lightweight Message Bus supporting CQRS
Stars: ✭ 90 (-20.35%)
Mutual labels:  symfony, symfony-bundle
Swarrotbundle
A symfony bundle for swarrot integration
Stars: ✭ 89 (-21.24%)
Mutual labels:  symfony, symfony-bundle
Event Store Symfony Bundle
Event Store Symfony Bundle
Stars: ✭ 93 (-17.7%)
Mutual labels:  symfony, symfony-bundle
Syliuselasticsearchplugin
Elasticsearch integration for Sylius apps.
Stars: ✭ 88 (-22.12%)
Mutual labels:  symfony, symfony-bundle
Knppaginatorbundle
SEO friendly Symfony paginator to sort and paginate
Stars: ✭ 1,534 (+1257.52%)
Mutual labels:  symfony, symfony-bundle
Fosjsroutingbundle
A pretty nice way to expose your Symfony2 routing to client applications.
Stars: ✭ 1,358 (+1101.77%)
Mutual labels:  symfony, symfony-bundle
Liipimaginebundle
Symfony Bundle to assist in imagine manipulation using the imagine library
Stars: ✭ 1,516 (+1241.59%)
Mutual labels:  symfony, symfony-bundle
Sonataseobundle
Symfony SonataSeoBundle
Stars: ✭ 106 (-6.19%)
Mutual labels:  symfony, symfony-bundle
Knpmenubundle
Object Oriented menus for your Symfony project.
Stars: ✭ 1,242 (+999.12%)
Mutual labels:  symfony, symfony-bundle

Contao 4 core bundle

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
                target: contao_root
                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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].