PHPackages                             studioumi/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. studioumi/drupal-project

Abandoned → [studio-umi/drupal-project](/?search=studio-umi%2Fdrupal-project)Project[Framework](/categories/framework)

studioumi/drupal-project
========================

Project template for Drupal 11 projects with composer

11.x-dev(10mo ago)32941[1 issues](https://github.com/studio-umi/drupal-project/issues)GPL-2.0-or-laterPHPPHP &gt;=8.3CI passing

Since Oct 9Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/studio-umi/drupal-project)[ Packagist](https://packagist.org/packages/studioumi/drupal-project)[ RSS](/packages/studioumi-drupal-project/feed)WikiDiscussions 11.x Synced 1w ago

READMEChangelogDependencies (13)Versions (4)Used By (0)

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

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

[![Merge upstream branches](https://github.com/studioumi/drupal-project/actions/workflows/scheduled_sync.yml/badge.svg)](https://github.com/studioumi/drupal-project/actions/workflows/scheduled_sync.yml)[![CI](https://github.com/studioumi/drupal-project/actions/workflows/ci.yml/badge.svg)](https://github.com/studioumi/drupal-project/actions/workflows/ci.yml)

composer create-projectによってDrupal10.xの初期構築を行うパッケージ。

使用方法
----

[](#使用方法)

最初に [composer](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx) をインストールしてください。

下記のコマンドでプロジェクトを作成します。

```
# {some-dir} は Drupal をインストールするディレクトリ.
composer create-project studioumi/drupal-project:10.x-dev {some-dir} --no-interaction
```

プロジェクト作成後、インストールディレクトリへ移動しDrupalの初期インストールを実行します。

```
cd {some-dir}
drush site:install --account-name=admin --account-mail=foo@example.com --account-pass=pass --locale=ja --db-url=mysql://user:password@host:port/dbname
```

初期インストール後、 `settings.php` を変更しgitの初期化を行います。

```
git init
git commit -m "initial commit."
```

DDEVを実行
-------

[](#ddevを実行)

以下コマンドでDDEV環境が起動します。 DDEVのインストールは事前に行ってください。(  )

```
ddev start
```

その他ライブラリ導入方法
------------

[](#その他ライブラリ導入方法)

コントリビュートモジュールやその他ライブラリをインストールする場合 `composer require ...` コマンドで導入できます。

```
cd some-dir
composer require drupal/devel:~1.0
```

Drupal コアのアップデート
----------------

[](#drupal-コアのアップデート)

1. `composer update` を利用し、パッケージをアップデートします

```
composer update drupal/core-* --with-dependencies
```

2. `git diff` で差分の確認を行います。その際、 `.htaccess` や `robots.txt` 等のファイルも更新される為 必要に応じて差分の取り込みを行います。

コア及びコントリビュートモジュールのパッチ適用
-----------------------

[](#コア及びコントリビュートモジュールのパッチ適用)

コア等の挙動に問題があり、パッチを当てる必要がある場合 `composer.json` へ適用するパッチを記載します。 これは [composer-patches](https://github.com/cweagans/composer-patches) によって自動的にパッチが適用されます。

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

PHPのバージョンを固定する方法
----------------

[](#phpのバージョンを固定する方法)

以下コマンドで実行するPHPのバージョンを固定することが出来ます。

```
composer config platform.php 8.1
```

フロントエンド開発用のパッケージ
----------------

[](#フロントエンド開発用のパッケージ)

本パッケージにはカスタムモジュール/テーマのフロントエンド開発を楽にするためのタスクランナーとリンターが含まれています。これらを利用するにはローカル環境で Node.js と Yarn を使えるようにしてください。

### セットアップ

[](#セットアップ)

次のコマンドを実行して必要な Node.js のパッケージをインストールします。

```
yarn
```

### stylelint

[](#stylelint)

SCSS で書かれたファイルを Drupal のコーディングスタンダードをベースとしたものに則ってチェックします。

```
npx stylelint

# カスタムモジュールを一括で stylelint する例
npx stylelint app/modules/custom/**/*.scss
```

### ESLint

[](#eslint)

ES6 の JavaScript で書かれたファイルを Drupal のコーディングスタンダードに則ってチェックします。

```
npx eslint

# カスタムモジュールを一括で eslint する例
npx eslnt app/modules/custom/**/*.es6.js
```

### Gulp.js

[](#gulpjs)

Browsersync の起動や、SASS(SCSS) および ES6 で書かれた JavaScript のトランスパイルなどのタスクを自動化するタスクランナーです。

```
npx gulp [tasks]
```

`gulp` 実行時にタスクを指定しなかった場合は Browsersync が起動し、SCSS および JavaScript(ES6) のファイルを監視して更新があった時にトランスパイルします。

利用可能なタスク:

タスク説明`build:scss`カスタムモジュール・テーマ内にある、SCSSファイル(拡張子が .scss のもの)をCSSにトランスパイルします。`build:js`カスタムモジュール・テーマ内にある、ES6のJavaScriptファイル(拡張子が .es6.js のもの)をにトランスパイルします。`build`ビルドタスクを一括して行います。`lint:scss`カスタムモジュール・テーマ内にある、SCSSファイルを stylelint でチェックします。`lint:js`カスタムモジュール・テーマ内にある、ES6のJavaScriptファイルを ESLint でチェックします。`lint`リンタータスクを一括して行います。`watch:scss`カスタムモジュール・テーマ内にある、SCSSファイルを監視して更新があった際にビルドタスクを実行します。`watch:js`カスタムモジュール・テーマ内にある、ES6のJavaScriptファイルを監視して更新があった際にビルドタスクを実行します。`watch:twig`カスタムモジュール・テーマ内にある、Twig テンプレートを監視して更新があった際にブラウザをリロードします。`watch`監視タスクを一括して行います。#### 設定

[](#設定)

各タスクのデフォルトのオプションを変更したい場合は、 gulpfile.js/config/example.local.yml のファイルを gulpfile.js/config/local.yml にコピーして設定をオーバーライドます

Browsersync のポートを変更したい場合は次の様に定義します。

```
browsersync:
  port: 8080
```

デフォルトの設定やその他のオプションについて詳しく知りたい場合は、 gulpfile.js/config/default.yml に書かれたコメントを参照してください。

その他
---

[](#その他)

本プロジェクトは [drupal-composer/drupal-project](https://github.com/drupal-composer/drupal-project) のフォークプロジェクトです。 詳細な内容はそちらを参照ください。

主な変更点
-----

[](#主な変更点)

- `drupal/core` -&gt; `drupal/core-recomended` への置き換え
- [drupal-composer/drupal-paranoia](https://packagist.org/packages/drupal-composer/drupal-paranoia) の利用
- [DDEV](https://ddev.readthedocs.io/en/stable/) の実行環境

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance46

Moderate activity, may be stable

Popularity16

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

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

Total

4

Last Release

327d ago

Major Versions

8.x-dev → 9.x-dev2022-10-14

9.x-dev → 10.x-dev2025-06-11

10.x-dev → 11.x-dev2025-06-25

PHP version history (4 changes)8.x-devPHP &gt;=7.0.8

9.x-devPHP &gt;=7.4

10.x-devPHP &gt;=8.1

11.x-devPHP &gt;=8.3

### Community

Maintainers

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

---

Top Contributors

[![webflo](https://avatars.githubusercontent.com/u/123946?v=4)](https://github.com/webflo "webflo (150 commits)")[![0tofu](https://avatars.githubusercontent.com/u/3492063?v=4)](https://github.com/0tofu "0tofu (46 commits)")[![u7aro](https://avatars.githubusercontent.com/u/4638090?v=4)](https://github.com/u7aro "u7aro (30 commits)")[![AlexSkrypnyk](https://avatars.githubusercontent.com/u/378794?v=4)](https://github.com/AlexSkrypnyk "AlexSkrypnyk (22 commits)")[![weitzman](https://avatars.githubusercontent.com/u/7740?v=4)](https://github.com/weitzman "weitzman (11 commits)")[![pfrenssen](https://avatars.githubusercontent.com/u/442924?v=4)](https://github.com/pfrenssen "pfrenssen (6 commits)")[![greg-1-anderson](https://avatars.githubusercontent.com/u/612191?v=4)](https://github.com/greg-1-anderson "greg-1-anderson (6 commits)")[![derhasi](https://avatars.githubusercontent.com/u/118502?v=4)](https://github.com/derhasi "derhasi (4 commits)")[![jmolivas](https://avatars.githubusercontent.com/u/366275?v=4)](https://github.com/jmolivas "jmolivas (3 commits)")[![jnoordsij](https://avatars.githubusercontent.com/u/45041769?v=4)](https://github.com/jnoordsij "jnoordsij (3 commits)")[![zaporylie](https://avatars.githubusercontent.com/u/1690685?v=4)](https://github.com/zaporylie "zaporylie (2 commits)")[![bradjones1](https://avatars.githubusercontent.com/u/981966?v=4)](https://github.com/bradjones1 "bradjones1 (2 commits)")[![jcnventura](https://avatars.githubusercontent.com/u/329663?v=4)](https://github.com/jcnventura "jcnventura (2 commits)")[![jonhattan](https://avatars.githubusercontent.com/u/482058?v=4)](https://github.com/jonhattan "jonhattan (2 commits)")[![jorissteyn](https://avatars.githubusercontent.com/u/448056?v=4)](https://github.com/jorissteyn "jorissteyn (2 commits)")[![MPParsley](https://avatars.githubusercontent.com/u/1823998?v=4)](https://github.com/MPParsley "MPParsley (2 commits)")[![normanlolx](https://avatars.githubusercontent.com/u/3585653?v=4)](https://github.com/normanlolx "normanlolx (2 commits)")[![petk](https://avatars.githubusercontent.com/u/1614009?v=4)](https://github.com/petk "petk (2 commits)")[![grasmash](https://avatars.githubusercontent.com/u/539205?v=4)](https://github.com/grasmash "grasmash (1 commits)")[![opdavies](https://avatars.githubusercontent.com/u/339813?v=4)](https://github.com/opdavies "opdavies (1 commits)")

### Embed Badge

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

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

###  Alternatives

[drupal/recommended-project

Project template for Drupal projects with a relocated document root

1502.6M1](/packages/drupal-recommended-project)[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)[drupalcommerce/project-base

Commerce 2.x project template

5451.6k](/packages/drupalcommerce-project-base)[acquia/drupal-recommended-project

Acquia-compatible Drupal application based on the Drupal Recommended Project

27537.5k](/packages/acquia-drupal-recommended-project)

PHPackages © 2026

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