PHPackages                             nyxtechnology/drupal-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. [Framework](/categories/framework)
4. /
5. nyxtechnology/drupal-project

ActiveProject[Framework](/categories/framework)

nyxtechnology/drupal-project
============================

Project template for Drupal projects with a relocated document root

1.0(5y ago)6813[9 PRs](https://github.com/nyxtechnology/drupal-project/pulls)MITPHPPHP &gt;=7.0.8

Since Jun 21Pushed 2y ago2 watchersCompare

[ Source](https://github.com/nyxtechnology/drupal-project)[ Packagist](https://packagist.org/packages/nyxtechnology/drupal-project)[ RSS](/packages/nyxtechnology-drupal-project/feed)WikiDiscussions master Synced 3d ago

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

Composer template for Drupal projects
=====================================

[](#composer-template-for-drupal-projects)

[![CI](https://github.com/drupal-composer/drupal-project/actions/workflows/ci.yml/badge.svg?branch=10.x)](https://github.com/drupal-composer/drupal-project/actions/workflows/ci.yml)

Depedencies
-----------

[](#depedencies)

- Docker with Docker Compose
    - [Docker](https://docs.docker.com/get-docker/)
- Make
    - [GNU Make](https://www.gnu.org/software/make/)
- Composer
    - [Composer](https://getcomposer.org/)
- Git
    - [Git](https://git-scm.com/)

Usage
-----

[](#usage)

1- Install Docker

After that you can create the project:

```
composer create-project nyxtechnology/drupal-project:dev-master some-dir --no-interaction

```

2- Copy `.env.example` to `.env` and change the values

4- Run command `make up`

5- Run command `make composer install`

6- Add your `project_base_url` in your hosts file and try access

Look docker.mk to see others make commands and read .env about database settings

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 `web`-directory.
- Autoloader is implemented to use the generated composer autoloader in `vendor/autoload.php`, instead of the one provided by Drupal (`web/vendor/autoload.php`).
- Modules (packages of type `drupal-module`) will be placed in `web/modules/contrib/`
- Theme (packages of type `drupal-theme`) will be placed in `web/themes/contrib/`
- Profiles (packages of type `drupal-profile`) will be placed in `web/profiles/contrib/`
- Creates default writable versions of `settings.php` and `services.yml`.
- Creates `web/sites/default/files`-directory.
- Latest version of drush is installed locally for use at `vendor/bin/drush`.
- Latest version of DrupalConsole is installed locally for use at `vendor/bin/drupal`.
- Creates environment variables based on your .env file. See [.env.example](.env.example).
- Graphql module

Updating Drupal Core
--------------------

[](#updating-drupal-core)

This project will attempt to keep all of your 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 modified files are updated in a new release of Drupal core.

Follow the steps below to update your core files.

1. Run `composer update "drupal/core-*" --with-dependencies` to update Drupal Core and its dependencies.
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 `web` 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).

### Should I commit the scaffolding files?

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

The [Drupal Composer Scaffold](https://github.com/drupal/core-composer-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 `@composer drupal:scaffold` as post-install and post-update command in your composer.json:

```
"scripts": {
    "post-install-cmd": [
        "@composer drupal:scaffold",
        "..."
    ],
    "post-update-cmd": [
        "@composer drupal:scaffold",
        "..."
    ]
},
```

### 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"
        }
    }
}
```

### How do I specify a PHP version?

[](#how-do-i-specify-a-php-version)

This project supports PHP 8.1 as minimum version (see [Environment requirements of Drupal 10](https://www.drupal.org/docs/system-requirements/php-requirements)), however it's possible that a `composer update` will upgrade some package that will then require PHP 8.1+.

To prevent this you can add this code to specify the PHP version you want to use in the `config` section of `composer.json`:

```
"config": {
    "sort-packages": true,
    "platform": {
        "php": "8.1.13"
    }
},
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 92.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 ~155 days

Recently: every ~118 days

Total

6

Last Release

2109d ago

Major Versions

0.5 → 1.02020-08-04

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

0.5PHP &gt;=7.0.8

### Community

Maintainers

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

---

Top Contributors

[![edmargomes](https://avatars.githubusercontent.com/u/6574942?v=4)](https://github.com/edmargomes "edmargomes (39 commits)")[![D4vidLuc4s](https://avatars.githubusercontent.com/u/54363252?v=4)](https://github.com/D4vidLuc4s "D4vidLuc4s (1 commits)")[![handrus](https://avatars.githubusercontent.com/u/134201?v=4)](https://github.com/handrus "handrus (1 commits)")[![revagomes](https://avatars.githubusercontent.com/u/201890?v=4)](https://github.com/revagomes "revagomes (1 commits)")

### Embed Badge

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

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

###  Alternatives

[goalgorilla/open_social

Open Social is a distribution for building social communities and intranets.

190458.8k](/packages/goalgorilla-open-social)[drupalcommerce/project-base

Commerce 2.x project template

5451.6k](/packages/drupalcommerce-project-base)[drupalwxt/wxt

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

29159.8k8](/packages/drupalwxt-wxt)[fourkitchens/sous-drupal-project

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

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

PHPackages © 2026

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