DrupalBlade is a Drupal 11 codebase for local development with DDEV and Composer. The repository is based on Drupal's recommended project layout, with the web root in web/ and project-level configuration in config/.
- Drupal 11
- PHP 8.3
- MariaDB 10.11
- DDEV for local environment management
- Composer for dependency management
- PHPUnit and PHPCS for testing and linting
composer.json: project dependencies and Drupal install pathsweb/: Drupal document rootconfig/: exported site configurationpatches/: local Composer patches.ddev/: local development environment configuration
This repository currently contains a small amount of project-specific code:
web/modules/dev/config_package: developer tooling to analyze a content type and build partial config packages, including paragraph dependenciesweb/modules/custom/site_audit: a custom audit/reporting module with admin report pages and export formats
Most other modules in the codebase are contributed Drupal packages managed through Composer.
Typical first-time setup:
composer install
ddev startAfter the containers are running, install or import the Drupal site using your normal project workflow. The DDEV project is configured in .ddev/config.yaml with:
- project name:
drupal-blade - Drupal type:
drupal11 - docroot:
web - PHP:
8.3 - database:
mariadb:10.11
- The project follows the standard Drupal recommended-project structure.
- There is no custom theme in the repository at the moment; the installed contributed admin theme is Gin.
- A local patch is applied for
drupal/advent_calendarfrompatches/local/advent_calendar-fixes.patch.
Exported configuration indicates the site is set up for multilingual use with:
- English (
en) - Spanish (
es) - Drupal special language entries for
und(Not specified) andzxx(Not applicable)
There is also language-specific configuration under config/sync/language/es/, which indicates Spanish translations are present for part of the exported configuration.
The exported roles currently defined in configuration are:
- Anonymous user
- Authenticated user
- Content editor
- Administrator
Role definitions are stored in config/sync/user.role.*.yml, with Spanish label translations present under config/sync/language/es/.
The exported node content types currently present in configuration are:
- Article
- Basic page
- Book page
- Forum topic
- ToDo
Related content structure also exists for:
- Paragraph type: Text
- Webform: Contact
- Commerce store type: Online
- Commerce product types: Default, Drawing Slider
The node type definitions are stored under config/sync/node.type.*.yml.
Based on the enabled modules in config/sync/core.extension.yml and the installed packages in composer.json, the most relevant platform features currently available are:
- Multilingual support with content/config translation
- Editorial workflow support through roles, scheduling, and content moderation
- Flexible content authoring with Paragraphs, field grouping, media, media library, and inline entity form support
- Commerce capabilities including store, product, cart, checkout, and payment foundations
- Forms and contact handling through Webform and the core contact module
- SEO and URL management through Metatag, Pathauto, Redirect, Simple Sitemap, and Google Analytics integration
- Admin/developer tooling through Admin Toolbar, Gin Toolbar, Coffee, Devel, Config Split, Config Inspector, Upgrade Status, and project overview tooling
- Security and operational support through Honeypot, Backup and Migrate, Seckit, Encrypt/Key, and Trash
- Progressive web app support through the PWA modules
- Project-specific audit/reporting and config packaging through the custom
site_auditandconfig_packagemodules
Two helper scripts already exist at the project root:
./scripts/lint.sh
./scripts/test.shThey currently wrap:
- PHPCS / PHPCBF via
scripts/lint.sh - PHPUnit custom test suite via
scripts/test.sh
This README is an intentionally high-level first pass. It should be expanded later with project-specific install steps, configuration/import workflow, deployment notes, and any conventions the team wants to standardize.