drupal/ez_decoupled
Composer 安装命令:
composer require drupal/ez_decoupled
包简介
Enable api support and preview feature for decoupled apps
关键字:
README 文档
README
EzContent Decoupled: Effortlessly manage content, enhance SEO and create dynamic UIs with modern front-end frameworks for a superior decoupled experience.
Installation
A. Create a new project using composer
1. Firstly, To create a new project and navigate to the project directory, you need to execute the following commands:
composer create-project drupal/recommended-project:^10.0 ezdecoupled
cd ezdecoupled;
2. For Composer to understand your new Recipe install-type, you need to require the Composer Installer Extender package.
composer require oomphinc/composer-installers-extender:2.0.1
3. Next, you need to add two entries in composer.json for an install-type and its path:
"installer-types": ["drupal-recipe"],
"installer-paths": {
// existing entries omitted...
"docroot/recipes/contrib/{$name}": [
"type:drupal-recipe"
]
}
4. Execute the specified commands to include these two repositories in the composer.json file
composer config repositories.drupal8 composer https://packages.drupal.org/8
composer config repositories.asset-packagist composer https://asset-packagist.org
5. To configure the minimum stability and enable patching, execute the following commands
composer config minimum-stability dev
composer config extra.enable-patching true
6. To enable specific composer plugins for patching and installation purposes, execute the following commands
composer config --no-plugins allow-plugins.cweagans/composer-patches true
composer config --no-plugins allow-plugins.oomphinc/composer-installers-extender true
7. To install Composer Patches Plugin and Drush, execute the following commands
composer require cweagans/composer-patches
composer require drush/drush
8. To merge the composer.libraries.json file into your main composer.json, install the Composer Merge Plugin. From the project directory, open a terminal and run
composer require wikimedia/composer-merge-plugin
9. Then Edit the composer.json file of your Drupal website, and under the "extra" section add this entry
"merge-plugin": { "include": [ "web/modules/contrib/*/composer.libraries.json" ] }
10. To require the dev-main branch of ez decoupled, execute this command
composer require drupal/ez_decoupled:^1.0.1
11. Now run below commands to configure your site
composer install
drush si
drush recipe recipes/contrib/ez_decoupled;
B. Create a new project using ddev
1. Firstly, To create a new project and navigate to the project directory, you need to execute the following commands:
composer create-project drupal/recommended-project:^10.0 ezdecoupled
cd ezdecoupled;
2. To set up config and start your ddev project, execute the following commands
ddev config --project-type=drupal9 --docroot=web --create-docroot
ddev start
3. For Composer to understand your new Recipe install-type, you need to require the Composer Installer Extender package.
ddev composer require oomphinc/composer-installers-extender:2.0.1
4. Next, you need to add two entries in composer.json for an install-type and its path:
"installer-types": ["drupal-recipe"],
"installer-paths": {
// existing entries omitted...
"docroot/recipes/contrib/{$name}": [
"type:drupal-recipe"
]
}
5. Execute the specified commands to include these two repositories in the composer.json file
ddev composer config repositories.drupal8 composer https://packages.drupal.org/8
ddev composer config repositories.asset-packagist composer https://asset-packagist.org
6. To configure the minimum stability and enable patching, execute the following commands
ddev composer config minimum-stability dev
ddev composer config extra.enable-patching true
7. To enable specific composer plugins for patching and installation purposes, execute the following commands
ddev composer config --no-plugins allow-plugins.cweagans/composer-patches true
ddev composer config --no-plugins allow-plugins.oomphinc/composer-installers-extender true
8. To install Composer Patches Plugin and Drush, execute the following commands
ddev composer require cweagans/composer-patches
ddev composer require drush/drush
9. To merge the composer.libraries.json file into your main composer.json, install the Composer Merge Plugin. From the project directory, open a terminal and run
ddev composer require wikimedia/composer-merge-plugin
10. Then Edit the composer.json file of your Drupal website, and under the "extra" section add this entry
"merge-plugin": { "include": [ "web/modules/contrib/*/composer.libraries.json" ] }
11. To require the dev-main branch of ez decoupled, execute this command
ddev composer require drupal/ez_decoupled:^1.0.1
12. Now run below commands to configure your site
ddev composer install
ddev drush si
ddev drush recipe recipes/contrib/ez_decoupled;
C. Install the recipe in existing project
1. For Composer to understand your new Recipe install-type, you need to require the Composer Installer Extender package.
composer require oomphinc/composer-installers-extender:2.0.1
2. Next, you need to add two entries in composer.json for an install-type and its path:
"installer-types": ["drupal-recipe"],
"installer-paths": {
// existing entries omitted...
"docroot/recipes/contrib/{$name}": [
"type:drupal-recipe"
]
}
3. Execute the specified commands to include these two repositories in the composer.json file
composer config repositories.drupal8 composer https://packages.drupal.org/8
composer config repositories.asset-packagist composer https://asset-packagist.org
4. To configure the minimum stability and enable patching, execute the following commands
composer config minimum-stability dev
composer config extra.enable-patching true
5. To enable specific composer plugins for patching and installation purposes, execute the following commands
composer config --no-plugins allow-plugins.cweagans/composer-patches true
composer config --no-plugins allow-plugins.oomphinc/composer-installers-extender true
6. To install Composer Patches Plugin and Drush, execute the following commands
composer require cweagans/composer-patches
composer require drush/drush
7. To merge the composer.libraries.json file into your main composer.json, install the Composer Merge Plugin. From the project directory, open a terminal and run
composer require wikimedia/composer-merge-plugin
8. Then Edit the composer.json file of your Drupal website, and under the "extra" section add this entry
"merge-plugin": { "include": [ "web/modules/contrib/*/composer.libraries.json" ] }
9. To require the dev-main branch of ez decoupled, execute this command
composer require drupal/ez_decoupled:^1.0.1
10. Now run below commands to configure your site
composer install
drush recipe recipes/contrib/ez_decoupled;
Tech Stack
CMS: Drupal
Note: This recipe depends on contributed libraries. Ensure you have Composer set up to manage these dependencies effectively by following the instructions in the guide.
Recommended Method for Installing, Updating, and Managing Contributed Module Libraries Using Composer
For detailed instructions on how to efficiently manage and install libraries for contributed Drupal modules using Composer, please refer to the official guide:
This guide covers how to merge the composer.libraries.json with your site's composer.json file for seamless updates.
drupal/ez_decoupled 适用场景与选型建议
drupal/ez_decoupled 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 10 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「drupal」 「preview」 「ezcontent」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 drupal/ez_decoupled 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 drupal/ez_decoupled 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 drupal/ez_decoupled 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
An AMP subtheme
Enable api support and preview module
Provides an add-on purchasable entity.
Drupal integration module for the Kalastatic prototyping and styleguide tool
Provides a base set of configuration and module dependencies for starting new Drupal projects.
Preview of settings in footer of tt_content element in page module.
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2024-10-24