PHPackages                             thunder/thunder-project - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. thunder/thunder-project

ActiveProject[Utility &amp; Helpers](/categories/utility)

thunder/thunder-project
=======================

Project template for Thunder projects with composer

5.0.0(11mo ago)1040.7k↓42.9%2[3 issues](https://github.com/thunder/thunder-project/issues)[2 PRs](https://github.com/thunder/thunder-project/pulls)GPL-2.0-or-later

Since May 15Pushed 1mo ago4 watchersCompare

[ Source](https://github.com/thunder/thunder-project)[ Packagist](https://packagist.org/packages/thunder/thunder-project)[ RSS](/packages/thunder-thunder-project/feed)WikiDiscussions 5.x Synced yesterday

READMEChangelog (10)Dependencies (6)Versions (33)Used By (0)

Composer based Thunder installation
===================================

[](#composer-based-thunder-installation)

This project template should provide a kickstart for managing your site dependencies with [Composer](https://getcomposer.org/).

Usage
-----

[](#usage)

See our [install documentation](https://thunder.github.io/developer-guide/setup.html#install-thunder) on how to use Thunder project. We also have documentation on [extending](https://thunder.github.io/developer-guide/setup.html#extend) and [updating](https://thunder.github.io/developer-guide/setup.html#update) Thunder sites.

What does the template do?
--------------------------

[](#what-does-the-template-do)

When installing the given `composer.json` some tasks are taken care of:

- Drupal will be installed in the `docroot`-directory.
- Autoloader is implemented to use the generated composer autoloader in `vendor/autoload.php`, instead of the one provided by Drupal (`docroot/vendor/autoload.php`).
- Modules (packages of type `drupal-module`) will be placed in `docroot/modules/contrib/`
- Theme (packages of type `drupal-theme`) will be placed in `docroot/themes/contrib/`
- Profiles (packages of type `drupal-profile`) will be placed in `docroot/profiles/contrib/`
- Downloads Drupal scaffold files such as `index.php`, or `.htaccess`
- Creates `sites/default/files`-directory.

### File update

[](#file-update)

This project will attempt to keep all of your Thunder and drupal core files up-to-date; the project [drupal-composer/drupal-scaffold](https://github.com/drupal-composer/drupal-scaffold)is used to ensure that your scaffold files are updated every time drupal/core is updated. If you customize any of the "scaffolding" files (commonly .htaccess), you may need to merge conflicts if any of your modfied files are updated in a new release of Drupal core.

Follow the steps below to update your thunder files.

1. Run `composer update`
2. Run `git diff` to determine if any of the scaffolding files have changed. Review the files for any changes and restore any customizations to `.htaccess` or `robots.txt`.
3. Commit everything all together in a single commit, so `docroot` will remain in sync with the `core` when checking out branches or running `git bisect`.
4. In the event that there are non-trivial conflicts in step 2, you may wish to perform these steps on a branch, and use `git merge` to combine the updated core files with your customized files. This facilitates the use of a [three-way merge tool such as kdiff3](http://www.gitshah.com/2010/12/how-to-setup-kdiff-as-diff-tool-for-git.html). This setup is not necessary if your changes are simple; keeping all of your modifications at the beginning or end of the file is a good strategy to keep merges easy.

FAQ
---

[](#faq)

### Should I commit the contrib modules I download

[](#should-i-commit-the-contrib-modules-i-download)

Composer recommends **no**. They provide [argumentation against but also workrounds if a project decides to do it anyway](https://getcomposer.org/doc/faqs/should-i-commit-the-dependencies-in-my-vendor-directory.md).

### How can I apply patches to downloaded modules?

[](#how-can-i-apply-patches-to-downloaded-modules)

If you need to apply patches (depending on the project being modified, a pull request is often a better solution), you can do so with the [composer-patches](https://github.com/cweagans/composer-patches) plugin.

To add a patch to drupal module foobar insert the patches section in the extra section of composer.json:

```
"extra": {
    "patches": {
        "drupal/foobar": {
            "Patch description": "URL or local path to patch"
        }
    }
}
```

### Should I commit the scaffolding files?

[](#should-i-commit-the-scaffolding-files)

The [drupal-scaffold](https://github.com/drupal-composer/drupal-scaffold) plugin can download the scaffold files (like index.php, update.php, …) to the web/ directory of your project. If you have not customized those files you could choose to not check them into your version control system (e.g. git). If that is the case for your project it might be convenient to automatically run the drupal-scaffold plugin after every install or update of your project. You can achieve that by registering `@drupal-scaffold` as post-install and post-update command in your composer.json:

```
"scripts": {
    "drupal-scaffold": "DrupalComposer\\DrupalScaffold\\Plugin::scaffold",
    "post-install-cmd": [
        "@drupal-scaffold",
        "..."
    ],
    "post-update-cmd": [
        "@drupal-scaffold",
        "..."
    ]
},
```

### How can I prevent downloading modules from Thunder, that I do not need?

[](#how-can-i-prevent-downloading-modules-from-thunder-that-i-do-not-need)

To prevent downloading a module, that Thunder provides but that you do not need, add a replace block to your composer.json:

```
"replace": {
    "drupal/features": "*"
}
```

This example prevents any version of the feature module to be downloaded.

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance67

Regular maintenance activity

Popularity35

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~118 days

Recently: every ~138 days

Total

20

Last Release

352d ago

Major Versions

3.x-dev → 4.0.02023-06-19

4.x-dev → 5.0.02025-07-16

PHP version history (2 changes)3.0.0PHP &gt;=5.6

3.0.4PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/dfe90fee04d5ef4d2bd1ea46dc65f6aec95b2486e2ce47f3439b3e06eb2f37dd?d=identicon)[dbosen](/maintainers/dbosen)

---

Top Contributors

[![dbosen](https://avatars.githubusercontent.com/u/6398151?v=4)](https://github.com/dbosen "dbosen (44 commits)")[![chrfritsch](https://avatars.githubusercontent.com/u/731161?v=4)](https://github.com/chrfritsch "chrfritsch (20 commits)")[![ol0lll](https://avatars.githubusercontent.com/u/5558666?v=4)](https://github.com/ol0lll "ol0lll (15 commits)")[![mtodor](https://avatars.githubusercontent.com/u/3965286?v=4)](https://github.com/mtodor "mtodor (3 commits)")[![tjwelde](https://avatars.githubusercontent.com/u/1248214?v=4)](https://github.com/tjwelde "tjwelde (2 commits)")[![landsman](https://avatars.githubusercontent.com/u/3184228?v=4)](https://github.com/landsman "landsman (2 commits)")[![webflo](https://avatars.githubusercontent.com/u/123946?v=4)](https://github.com/webflo "webflo (1 commits)")[![budda](https://avatars.githubusercontent.com/u/104929?v=4)](https://github.com/budda "budda (1 commits)")[![sun](https://avatars.githubusercontent.com/u/41992?v=4)](https://github.com/sun "sun (1 commits)")[![ThunderTechAccount](https://avatars.githubusercontent.com/u/27956705?v=4)](https://github.com/ThunderTechAccount "ThunderTechAccount (1 commits)")[![alexpott](https://avatars.githubusercontent.com/u/769634?v=4)](https://github.com/alexpott "alexpott (1 commits)")

### Embed Badge

![Health badge](/badges/thunder-thunder-project/health.svg)

```
[![Health](https://phpackages.com/badges/thunder-thunder-project/health.svg)](https://phpackages.com/packages/thunder-thunder-project)
```

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[vardot/varbase-project

Project template for Varbase distribution.

5362.5k](/packages/vardot-varbase-project)[govcms/govcms

GovCMS Drupal Distribution

198102.2k3](/packages/govcms-govcms)[fourkitchens/sous-drupal-project

Starter project for Sous a Drupal distribution featuring a theme based on Emulsify Design System.

141.1k](/packages/fourkitchens-sous-drupal-project)

PHPackages © 2026

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