PHPackages                             tavib47/drupal-boilerplate - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. tavib47/drupal-boilerplate

ActiveProject[Framework](/categories/framework)

tavib47/drupal-boilerplate
==========================

Project template for Drupal 11 projects

11.1.8(7mo ago)025GPL-2.0-or-laterPHP

Since Nov 17Pushed 7mo agoCompare

[ Source](https://github.com/tavib47/drupal-boilerplate)[ Packagist](https://packagist.org/packages/tavib47/drupal-boilerplate)[ Docs](https://www.drupal.org/project/drupal)[ RSS](/packages/tavib47-drupal-boilerplate/feed)WikiDiscussions 11.x Synced 1mo ago

READMEChangelogDependencies (60)Versions (15)Used By (0)

Drupal 11 Boilerplate
=====================

[](#drupal-11-boilerplate)

A comprehensive project template for Drupal 11 development with pre-configured modules and development tools.

Quick Start
-----------

[](#quick-start)

### 1. Create new project from template

[](#1-create-new-project-from-template)

```
composer create-project tavib47/drupal-boilerplate:^11 my-project-name --ignore-platform-reqs --no-interaction
cd my-project-name
```

### 2. Edit project details

[](#2-edit-project-details)

Edit the project name, description and other details in the following files:

- composer.json
- example.robo.yml
- .ddev/config.yaml
- drush/example.drush.yml
- sites/default/settings.ddev.local.php
- README.md (also delete the Drupal 11 Boilerplate title and Quick Start section)

### 3. Configure DDEV

[](#3-configure-ddev)

```
ddev config --project-name=my-project-name --project-type=drupal11 --docroot=web
```

### 4. Install Drupal

[](#4-install-drupal)

```
ddev start
ddev drush site:install pixel_standard --site-name="My Project Name" --account-name=office@example.com --account-mail=office@example.com --site-mail=office@example.com --account-pass=password
```

### 5. Export configuration

[](#5-export-configuration)

```
ddev drush cex -y
```

### 6. Initialize git repository

[](#6-initialize-git-repository)

```
git init
git add .
git commit -m "Initial commit"
```

My Project Name
===============

[](#my-project-name)

I. Prerequisites
----------------

[](#i-prerequisites)

- [mkcert](https://github.com/FiloSottile/mkcert?tab=readme-ov-file#mkcert) (run `mkcert -install`)
- DDEV 1.22.0+ ()

If you get the `Could not connect to a docker provider. Please start or install a docker provider.` error you need to add your user to `docker` group:

```
sudo usermod -aG docker $USER
newgrp docker
```

II. Project setup
-----------------

[](#ii-project-setup)

- Clone the repository
- Copy `example.robo.yml` to `robo.yml` and customize `username`, `password` and `admin_username`
- Copy `.env.example` to `.env`
- Copy `drush/example.drush.yml` to `drush/drush.yml`

III. Installation
-----------------

[](#iii-installation)

### 1. First time installation

[](#1-first-time-installation)

```
ddev drush site-install --existing-config --site-name="My Project Name" --account-name=office@example.com --account-mail=office@example.com --site-mail=office@example.com --account-pass=password
```

### 2. Retrieving the database and files from production or staging

[](#2-retrieving-the-database-and-files-from-production-or-staging)

```
./scripts/install.sh
```

IV. Development
---------------

[](#iv-development)

- Run `ddev start` to start the project without reinstalling the database
- Run `ddev stop` to stop the project
- Run `ddev launch` to launch the application in the browser or access
- Running drush commands: `ddev drush command` (e.g. `ddev drush config:export`)
- Running custom apps within vendor: `ddev exec ./vendor/bin/app command` (e.g. `ddev exec ./vendor/bin/robo site:update`)

### Other scripts

[](#other-scripts)

- `./scripts/update.sh`: Reinstalls all modules, libraries and updates the Drupal instance.
- `./scripts/code-qa.sh`: Runs PHPCS and PHPCBF on custom modules and themes.
- `./scripts/start.sh`: Starts the DDEV containers and launches the application in the browser.

### Theme development

[](#theme-development)

Node Version Manager and Node are already installed in the DDEV's web container.

Start a shell session in the web container (`ddev ssh`) and run the following commands:

- Go to theme directory: `cd web/themes/custom/theme_name`
- Install node version: `nvm install`
- Change node version: `nvm use`
- Run the watcher or the build command:
    - `npm run watch`
    - `npm run build`

### Composer

[](#composer)

DDEV provides a built-in command to simplify use of PHP’s dependency manager, Composer, without requiring it to be installed on the host machine.

- `ddev composer help` runs Composer’s help command to learn more about what’s available.

### Email Capture and Review (MailHog)

[](#email-capture-and-review-mailhog)

After your project is started, access the MailHog web interface at , or run `ddev launch -m` to launch it in your default browser.

### Using Development Tools on the Host Machine

[](#using-development-tools-on-the-host-machine)

Tools that interact with files and require no database connection, such as Git or Composer, can be run from the host machine against the codebase for a DDEV project with no additional configuration necessary.

### Xdebug

[](#xdebug)

- Configure PHPStorm debug:
- Run `ddev xdebug on` to enable Xdebug
- Run `ddev xdebug off` to disable Xdebug

If you want to use Xdebug with a Drush command:

- Create a server in PHPStorm (Project settings-&gt;Servers) and name it `my-project-name.ddev.site`
- In the PHPStorm server configuration, map your host project directory to /var/www/html
- Run the drush command inside the container (`ddev ssh`): `./vendor/bin/drush command`

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance68

Regular maintenance activity

Popularity6

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~23 days

Recently: every ~0 days

Total

15

Last Release

220d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c53359423740cf0a7081222887b60408692abc341c5bb68936d97ec40282738?d=identicon)[tavib47](/maintainers/tavib47)

---

Top Contributors

[![tavib47](https://avatars.githubusercontent.com/u/11833801?v=4)](https://github.com/tavib47 "tavib47 (39 commits)")[![xjm](https://avatars.githubusercontent.com/u/1369057?v=4)](https://github.com/xjm "xjm (12 commits)")[![alexpott](https://avatars.githubusercontent.com/u/769634?v=4)](https://github.com/alexpott "alexpott (5 commits)")[![larowlan](https://avatars.githubusercontent.com/u/555254?v=4)](https://github.com/larowlan "larowlan (4 commits)")[![longwave](https://avatars.githubusercontent.com/u/197817?v=4)](https://github.com/longwave "longwave (2 commits)")[![webchick](https://avatars.githubusercontent.com/u/332535?v=4)](https://github.com/webchick "webchick (1 commits)")[![catch56](https://avatars.githubusercontent.com/u/116285?v=4)](https://github.com/catch56 "catch56 (1 commits)")

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/tavib47-drupal-boilerplate/health.svg)

```
[![Health](https://phpackages.com/badges/tavib47-drupal-boilerplate/health.svg)](https://phpackages.com/packages/tavib47-drupal-boilerplate)
```

###  Alternatives

[drupalwxt/wxt

Project template for Drupal 10 sites built with the WxT distribution.

29159.8k8](/packages/drupalwxt-wxt)[voidagency/vactory_starter_kit

Vactory is a custom Drupal profile which is developed and released by VOID Agency.

1019.7k](/packages/voidagency-vactory-starter-kit)[thunder/thunder-distribution

The thunder distribution

50634.8k3](/packages/thunder-thunder-distribution)[govcms/govcms

GovCMS Drupal Distribution

18997.1k3](/packages/govcms-govcms)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
