PHPackages                             davyin/dyniva-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. davyin/dyniva-project

ActiveProject[Framework](/categories/framework)

davyin/dyniva-project
=====================

Project template for Drupal 8 sites built with the Dyniva distribution.

0861

Since Aug 28Pushed 3y ago12 watchersCompare

[ Source](https://github.com/davyin-co/dyniva-project)[ Packagist](https://packagist.org/packages/davyin/dyniva-project)[ RSS](/packages/davyin-dyniva-project/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

介绍
==

[](#介绍)

[Composer](https://getcomposer.org/) 模版，初始化dyniva发行版.

更多细节查看[dyniva](https://github.com/davyin-co/dyniva)

使用
--

[](#使用)

先安装 [composer](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx).

安装成功后创建项目，初始化安装:

```
composer create-project davyin/dyniva-project dyniva-project --stability dev  --no-interaction
cd dyniva-project
composer install
drush si dyniva --site-name="Dyniva Project" --db-url=mysql://mysql-user:mysql-password@mysql-host:3306/dyniva_project --account-pass=admin -y

```

如果需要引入其他drupal 模块/主题，使用 `composer require ...` 下载安装:

```
cd dyniva-project
composer require "drupal/devel:1.x-dev"

```

The `composer create-project` command passes ownership of all files to the project that is created. You should create a new git repository, and commit all files not excluded by the .gitignore file.

该项目做了什么？
--------

[](#该项目做了什么)

- Drupal 安装在 `docroot` 目录.
- drupal官方模块 (packages of type `drupal-module`) are placed in `docroot/modules/contrib/`
- dyniva自定义模块 (packages of type `drupal-custom-module`) are placed in `docroot/modules/custom/`
- drupal官方主题(packages of type `drupal-theme`) are placed in `docroot/themes/contrib/`
- dyniva自定义主题(packages of type `drupal-custom-theme`) are placed in `docroot/themes/custom/`
- Profiles (packages of type `drupal-profile`) are placed in `docroot/profiles/contrib/`
- dyniva自定义Profiles (packages of type `drupal-custom-profile`) are placed in `docroot/profiles/custom/`
- -- Creates default writable versions of `settings.php` and `services.yml` --
- 创建 `docroot/sites/default/files` directory.
- 最新版本的drupal console安装在 `bin/drupal`.
- 删除项目非根目录下的.git(因为有些模块通过branch引入的，如果不删除会生成.git文件，导致git提交的时候为git submodule，这样在部署的时候会带来很多麻烦）
- 安装ergebnis/composer-normalize插件，在执行composer update/install之后自动会composer.json进行格式化（使用4个空格的缩进）

FAQ
---

[](#faq)

### 补丁管理

[](#补丁管理)

补丁使用[cweagans/composer-patches](https://github.com/cweagans/composer-patches)来管理。使用本项目的补丁通过composer.json引入，强烈不建议通过单独的补丁文件管理。 例如，给drupal core打补丁，可以参考如下格式： section of composer.json:

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

### Drupal 内核版本说明

[](#drupal-内核版本说明)

该项目不限定Drupal内核版本，版本受dyniva约束。具体可以查看[Dyniva](https://github.com/davyin-co/dyniva)说明。

### How can I add js/css libraries using composer.json?

[](#how-can-i-add-jscss-libraries-using-composerjson)

It is possible to use frontend libraries with composer thanks to the asset-packagist repository ().

For example, to use colorbox:

```
composer require npm-asset/colorbox:"^0.4"

```

Composer will detect new versions of the library that meet your constraints. In the above example it will download anything from 0.4.\* series of colorbox.

When managing libraries with composer this way, you may not want to add it to version control. In that case, add specific directories to the .gitignore file.

```
# Specific libraries (which we manage with composer)
web/libraries/colorbox

```

For more details, see

### 如何指定PHP版本？

[](#如何指定php版本)

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": "7.2.22"
    }
},
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 Bus Factor1

Top contributor holds 75% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/76b3b977547ca30f69b40678f749fc9eaf124b9913ac9849e63742d80d5251e8?d=identicon)[davyin\_sa](/maintainers/davyin_sa)

---

Top Contributors

[![terryzwt](https://avatars.githubusercontent.com/u/1829399?v=4)](https://github.com/terryzwt "terryzwt (30 commits)")[![davyin-sa](https://avatars.githubusercontent.com/u/70510041?v=4)](https://github.com/davyin-sa "davyin-sa (10 commits)")

### Embed Badge

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

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M190](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M256](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M591](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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