drupal/recipe_installer_kit 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

drupal/recipe_installer_kit

最新稳定版本:1.0.1

Composer 安装命令:

composer require drupal/recipe_installer_kit

包简介

README 文档

README

If you thought the Drupal CMS installer was really slick, you might have wondered how to adapt it for your own nefarious purposes.

This package is a toolkit to create standalone install profiles that work the same way the Drupal CMS installer does -- installing Drupal by applying a bunch of recipes. But you can easily customize the stuff that really matters:

  • Which recipes are shown to users at the beginning
  • Which recipes are always applied
  • Where users should be redirected afterwards
  • How the installer looks and feels
  • Which annoying post-install messages to hide

This is for developers who want a better, recipe-based installer experience, but don't want to write a pile of complicated PHP code to bend the Drupal installer to their will.

The Drupal CMS installer is built on top of this toolkit, but install profiles generated by this package don't depend on Drupal CMS; they'll work with any flavor of Drupal.

How to use

  1. Require this package into your project: composer require drupal/recipe_installer_kit
  2. Use Drush to generate a stub install profile: drush generate recipe-kit:installer --destination=profiles/SOME_MACHINE_NAME
  3. Go to the profile's directory and customize the SOME_MACHINE_NAME.info.yml file to your liking.

To change the look and feel, create a new theme -- just a regular old theme -- in a subdirectory of the profile, and add this to the profile's info file:

distribution:
  install:
    theme: MACHINE_NAME_OF_THEME

For an example, see Drupal CMS's project template.

Note that you could use any theme which is available in the code base; it doesn't have to live inside the install profile. But if you're going to create a custom theme for the installer, it sorta makes sense to bundle that with the profile, don't you think?

统计信息

  • 总下载量: 73.12k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 9
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2025-02-04