contao-bootstrap / core
Contao Bootstrap 扩展的核心
2.1.0
2022-04-20 09:57 UTC
Requires
- php: ^7.4 || ^8.0
- contao-community-alliance/meta-palettes: ^2.0
- contao/core-bundle: ^4.9
- symfony/config: ^4.4 || ^5.4
- symfony/dependency-injection: ^4.4 || ^5.4
- symfony/event-dispatcher-contracts: ^1.1 || ^2.0
- symfony/http-kernel: ^4.4 || ^5.4
- symfony/yaml: ^4.4 || ^5.4
Requires (Dev)
- contao/manager-plugin: ^2.0
- doctrine/coding-standard: ^9.0.
- netzmacht/phpspec-phpcq-plugin: *@dev
- phpcq/coding-standard: ^2.1.2
- phpcq/plugin-api: 1.x-dev
- phpcq/runner-bootstrap: 1.x-dev
- phpspec/phpspec: ^6.3.0 || ^7.0
Suggests
- components/bootstrap: Bootstrap Components package
- twbs/bootstrap: Official Bootstrap package
Conflicts
- dev-master / 2.1.x-dev
- dev-develop / 2.1.x-dev
- 2.1.0
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 2.0.0-beta2
- 2.0.0-beta1
- 2.0.0-alpha5
- 2.0.0-alpha3
- 2.0.0-alpha2
- 2.0.0-alpha1
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 1.0.0-rc3
- 1.0.0-rc2
- 1.0.0-rc1
- 1.0.0-beta2
- 1.0.0-beta1
- dev-dependabot/composer/nyholm/psr7-1.7.0
- dev-dependabot/composer/symfony/security-bundle-5.4.22
- dev-dependabot/composer/symfony/http-kernel-5.4.20
- dev-dependabot/composer/twig/twig-3.4.3
- dev-dependabot/composer/contao/core-bundle-4.13.3
This package is auto-updated.
Last update: 2024-09-22 00:04:30 UTC
README
此扩展将 Bootstrap 4 集成到 Contao 中。
Contao-Bootstrap 是一个模块化集成。核心组件为其他组件提供基础设施。
功能
- Bootstrap 环境
- 配置系统
- 模板预渲染和后渲染过滤器
变更日志
查看 变更日志
需求
- PHP ^7.4 || ^8.0
- Contao ^4.9
安装
管理版
当使用管理版时,安装包很简单。只需在 Contao 管理器中搜索包并安装,或者您可以使用 CLI。
# Using the contao manager $ php contao-manager.phar.php composer require contao-bootstrap/core~2.0 # Using composer directly $ php composer.phar require contao-bootstrap/core~2.0
Symfony 应用程序
如果您在没有 contao/manager-bundle 的情况下在 symfony 应用程序中使用 Contao,您必须手动注册以下捆绑包
class AppKernel { public function registerBundles() { $bundles = [ // ... new Contao\CoreBundle\HttpKernel\Bundle\ContaoModuleBundle('metapalettes', $this->getRootDir()), new ContaoBootstrap\Core\ContaoBootstrapCoreBundle(), ]; } }