ramlev/drupal-base

基于composer的项目的Drupal 10基础项目模板。

安装: 4

依赖者: 0

建议者: 0

安全: 0

星标: 0

关注者: 1

分支: 0

开放问题: 0

类型:项目

dev-develop 2024-09-05 07:43 UTC

This package is auto-updated.

Last update: 2024-09-05 07:43:14 UTC


README

此项目模板为新的Drupal站点快速启动提供便利。

安装

我假设您已了解基本的Composer和PHP技能。

composer create-project ramlev/drupal-base:dev-develop --no-interaction YOUR_DIR

之后,您可以设置基于LAMP或其他服务的web服务器。我通常使用DDEV。

有了这些,您可以进行如下操作。

cd YOUR_DIR
ddev config

## press enter to everything
ddev start

## Wait until it's up and running

## Install the default site
ddev drush si -y

## Change admin user password
ddev drush upwd admin test

Now you can login with `admin` / `test`

可用的贡献模块

  • admin_toolbar
  • adminimal_theme
  • module_filter
  • pathauto
  • redirect
  • simple_sitemap
  • token
  • twig_tweak
  • ultimate_cron
  • drush

还有一些模块,只在"dev"中添加

  • devel
  • ray_debugger
  • phpstan

添加更多功能

您可以通过正常方式添加更多贡献模块等

## Go into your dir
cd YOUR_DIR

## Add the search_api contrib module, or whatever needed.
composer req drupal/search_api

进入Drupal管理界面并启用您需要的任何模块和/或主题。

祝您编码愉快

Hasse Ramlev Wilson

Ramlev.dk