drupal/ogcb
Composer 安装命令:
composer require drupal/ogcb
包简介
A starter kit for building a government community.
README 文档
README
How to set up a new Drupal 11 project with DDEV and require the OGCB site template.
1. Set up a new Drupal 11 project with DDEV
mkdir ogcb-new && cd ogcb-new
ddev config --project-type=drupal11 --docroot=web --project-name=ogcb-new
ddev start
ddev composer create drupal/recommended-project --no-install
2. Configure composer.json
Minimum stability
The site template and some of its dependencies are not stable releases:
ddev composer config minimum-stability dev
ddev composer config prefer-stable true
Patches file
The site template requires several patches to function. Download the patches file and tell cweagans/composer-patches where to find it:
wget -O patches.json https://git.drupalcode.org/project/ogcb/-/raw/1.x/patches.json
Be sure to replace 1.x with the correct version you are using
Then add to composer.json:
"extra": {
"composer-patches": {
"patches-file": "patches.json"
}
}
3. Require the necessary packages
Require cweagans/composer-patches v2 first. The --no-install flag avoids a partial install before the site template is added:
ddev composer require cweagans/composer-patches:^2 --no-install
Then require the site template:
ddev composer require drupal/ogcb:1.x-dev
This installs Drupal core and all modules the site template depends on, and applies the patches.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2026-06-29