drupal/ogcb

A starter kit for building a government community.

Maintainers

Package info

git.drupalcode.org/project/ogcb.git

Type:drupal-recipe

pkg:composer/drupal/ogcb

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

1.0.0-beta2 2026-06-30 11:11 UTC

This package is auto-updated.

Last update: 2026-06-30 11:42:41 UTC


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
ddev start
ddev composer create drupal/recommended-project --no-install
ddev composer require drush/drush

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:

curl https://git.drupalcode.org/project/ogcb/-/raw/1.x/patches.json -O

Be sure to replace 1.x with the newest tag version if you want a stable experience

composer config 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"

Be sure to replace 1.x with the newest tag version if you want a stable experience

This installs Drupal core and all modules the site template depends on, and applies the patches.

4. Install

ddev drush si
ddev drush cr
cd web
ddev drush recipe ../recipes/ogcb