Contao PHP((原 TYPOlight))是一个开放源码内容管理系统(CMS),用于建设中型到大型的、易于维护的、专业的网站。该程序专研于后台(即开发者)和前台(即用户)的易用性,并遵守XHTML、HTML5、CSS标准,根据W3C/WAI 准则,生成页面。
Contao 4被设计成一个symfony包,可用于向任何symfony应用添加CMS的功能。如果你还没有symfony的应用程序,建议使用contao标准版作为您的应用程序的基础。
Contao是一个开源PHP内容管理系统,适用于想要一个易于维护的专业网站的用户。。(Contao is an Open Source PHP Content Management System for people who want a professional website that is easy to maintain. )
Contao PHP((原 TYPOlight))是一个开放源码内容管理系统(CMS),用于建设中型到大型的、易于维护的、专业的网站。该程序专研于后台(即开发者)和前台(即用户)的易用性,并遵守XHTML、HTML5、CSS标准,根据W3C/WAI 准则,生成页面。
Contao 4被设计成一个symfony包,可用于向任何symfony应用添加CMS的功能。如果你还没有symfony的应用程序,建议使用contao标准版作为您的应用程序的基础。
名稱與所有者 | contao/core-bundle |
---|---|
主編程語言 | PHP |
編程語言 | PHP (語言數: 4) |
平台 | |
許可證 | GNU Lesser General Public License v3.0 |
發布數 | 342 |
最新版本名稱 | 5.3.7 (發布於 ) |
第一版名稱 | 4.0.0-beta1 (發布於 2015-04-14 16:01:19) |
創建於 | 2014-06-05 09:45:55 |
推送於 | 2024-04-26 11:36:01 |
最后一次提交 | |
星數 | 121 |
關注者數 | 40 |
派生數 | 58 |
提交數 | 16.4k |
已啟用問題? | |
問題數 | 1025 |
打開的問題數 | 0 |
拉請求數 | 398 |
打開的拉請求數 | 0 |
關閉的拉請求數 | 240 |
已啟用Wiki? | |
已存檔? | |
是復刻? | |
已鎖定? | |
是鏡像? | |
是私有? |
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.
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
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.
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/routing.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.
Contao is licensed under the terms of the LGPLv3.
Visit the support page to learn about the available support options.