kanopi/saplings
Composer 安装命令:
composer require kanopi/saplings
包简介
Modern Drupal starter recipe.
README 文档
README
Saplings - Drupal Build Starter Recipe
This recipe is designed to help start a highly configured Drupal project.
Rather than one large Recipe that tries to do everything, we've broken it up into multiple sub-recipes. This recipe installs them all, but you can also install the sub-recipes on their own.
- kanopi/gin-admin-experience
- kanopi/saplings-base
- kanopi/saplings-editorial
- kanopi/saplings-launch
- kanopi/saplings-tests [Cypress]
- kanopi/saplings-content-types
Requiring and Applying this recipe
Apply a recipe to Drupal installed with a minimal profile. See below is you want to set up a quick testing environment.
- Follow the instructions in kanopi/drupal-starter to start a new project as it is configured for recipes and tooling needed.
- Run
fin composer require kanopi/saplings:^1to require this repository. - Run
fin recipe-apply ../recipes/saplingsto apply this recipe. - Run the following command to unpack the dependencies from all kanopi/saplings recipes to the site project's composer.json file.
fin recipe-unpack kanopi/saplings && fin recipe-unpack kanopi/gin-admin-experience && fin recipe-unpack kanopi/saplings-base && fin recipe-unpack kanopi/saplings-editorial && fin recipe-unpack kanopi/saplings-launch && fin recipe-unpack kanopi/saplings-content-types && fin recipe-unpack kanopi/saplings-component-types && fin recipe-unpack kanopi/saplings-component-base && fin recipe-unpack kanopi/saplings-content-base && fin recipe-unpack kanopi/saplings-media && fin recipe-unpack kanopi/imagemagick-configuration && fin recipe-unpack kanopi/saplings-theme && fin recipe-unpack kanopi/saplings-editorial && fin recipe-unpack kanopi/saplings-content-base-header && fin recipe-unpack kanopi/saplings-content-base-seo && fin recipe-unpack kanopi/saplings-events && fin recipe-unpack drupal/events && fin recipe-unpack drupal/events_calendar && fin recipe-unpack drupal/events_locations && fin recipe-unpack kanopi/imagemagick-configuration && fin recipe-unpack drupal/locations && fin recipe-unpack kanopi/saplings-full-html-editor && fin recipe-unpack drupal/tour_core
- Export configuration.
You can then remove the recipe once it has been applied and unpacked as the configuration is now in your Drupal, and the dependencies are in your composer.
fin composer remove kanopi/saplings- Export configuration.
Roadmap
Phase 1
Feature complete.
Phase 2
- Break Page and Post Content types into their own recipes.
- Additional components as needed.
- kanopi/saplings-ai - [WIP] Helpful AI functionality for content creators.
- kanopi/saplings-person - [WIP] Creates a Person content type and related configuration.
- kanopi/saplings-events - [WIP] Configuration for Saplings Events
- kanopi/saplings-demo-events
- [WIP] Demo content for Saplings Events
- kanopi/solr-search-pantheon-recipe
- The goal is to configure Solr for Pantheon on a site that isn't going to use saplings.
Phase 3
Investigate extending Drupal CMS' recipes.
Other Kanopi Recipes:
- kanopi/saplings-domain - Installs and configures Domain modules.
- kanopi/saplings-demo-content
- Demo content for Saplings.
- kanopi/saplings-solr - Configures a back-end and front-end Solr search customized for Saplings on Pantheon.
- kanopi/password-policy-90-days
- Installs and configures Password Policy and sets a 90 day expiration default.
- kanopi/remote-video-youtube-lite
- Configures Remote Video Media entity to use Lite YouTube Embed.
Other Saplings related modules
- kanopi/saplings_navbar - Creates a navbar pattern for Saplings that allows the parent to be a link and then have a dropdown indicator to access child menu items.
Contributing/Testing
We'd love your help with testing, ideation, and development.
Setting up a quick testing environment
Decide on a name for your testing environment. In this example, I will use
kanland.
- Checkout kanopi/drupal-starter into it's own repo.
git clone git@github.com:kanopi/drupal-starter.git kanland && cd kanland- Open /.docksal/docksal.env in your editor.
- Update row 28
hostingsite="kanland"and save. - Run
fin init - The build will fail with the following message as we haven't installed Drupal
yet.
Error: Class "Drupal\user\Entity\User" not found - Run
fin drush si minimal -y && fin drush ulito install Drupal and log in. - Click on the one-time-login to verify the minimal install happened.
- Require this repository:
fin composer require kanopi/saplings:^1 - Apply the recipe:
fin recipe-apply saplings
To reset after you have done some testing:
- Run
fin init - The build will fail with the following message as we haven't installed Drupal
yet.
Error: Class "Drupal\user\Entity\User" not found - Run
fin drush si minimal -y && fin drush ulito install Drupal and log in.
Requiring recipes
Use composer the require the recipes needed. We currently host on our packagist.
Applying and Unpacking recipes in Drupal
To apply contrib/composer installed recipes, run the following commands:
fin recipe-apply recipe-name
Each recipe can have composer dependencies. "Unpacking" takes these dependencies from the recipe and applies them to the project's composer.json file.
To unpack contrib/composer installed recipes, run the following commands:
fin recipe-unpack recipe-name
Dependencies
See chart and list in /docs/dependencies.md
kanopi/saplings 适用场景与选型建议
kanopi/saplings 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 524 次下载、GitHub Stars 达 19, 最近一次更新时间为 2023 年 12 月 28 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 kanopi/saplings 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 kanopi/saplings 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 524
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 20
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2023-12-28