ramlev / drupal-base
基于composer的项目的Drupal 10基础项目模板。
dev-develop
2024-09-05 07:43 UTC
Requires
- php: ^8.3
- composer/installers: ~1.0 || ~2.0
- cweagans/composer-patches: ^1.6.0
- drupal/admin_toolbar: ^3.5
- drupal/adminimal_theme: ^1.7
- drupal/core-composer-scaffold: ^10.1
- drupal/core-project-message: ^10.1
- drupal/core-recommended: ^10.1
- drupal/module_filter: ^5.0
- drupal/pathauto: ^1.13
- drupal/redirect: ^1.10
- drupal/simple_sitemap: ^4.2
- drupal/token: ^1.15
- drupal/twig_tweak: ^3.4
- drupal/ultimate_cron: ^2.0@alpha
- drush/drush: ^12.0
- szeidler/composer-patches-cli: ^1.0
Requires (Dev)
- drupal/devel: ^5.3
- drupal/ray_debugger: ^1.0
- drupal/webprofiler: ^10.1
- mglaman/phpstan-drupal: ^1.2
- phpstan/extension-installer: ^1.4
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