dpp/composer-plugin
Composer 安装命令:
composer require dpp/composer-plugin
包简介
Composer plugin for integration with the Drupal Project Platform
README 文档
README
This plugin adds the ability to use the DPP package manager.
Installation
The plugin needs to be installed globally, because it needs to be present before composer resolves the dependencies.
composer global config repositories.dpp-composer-plugin vcs https://gitlab.burdaverlag.dev/thunder/dpp-composer-plugin.git
composer global require dpp/composer-plugin
Configuration
Onboard existing project via command
You can run the custom onboard command to configure your existing project.
composer dpp-onboard
It automatically updates your composer.json so your project is set up for DPP and finally performs composer update to make sure all dependencies are supported.
Options
The command lets you set your own DPP base project git url
composer dpp-onboard --dpp-base-project-git-url git@gitlab.burdaverlag.dev:dpp/DPP-Base-Project.git
and your preferred DPP version constraint
composer dpp-onboard --dpp-version ^2.0
Manually configure your DPP project
Add the git url of your DPP base project to your composer.json extra section.
"extra": {
"dpp-base-project-git-url": "git@gitlab.burdaverlag.dev:dpp/DPP-Base-Project.git"
},
Or set the environment variable
COMPOSER_DPP_BASE_PROJECT_GIT_URL="git@gitlab.burdaverlag.dev:dpp/DPP-Base-Project.git"
Also it's recommended to disable the packagist.org repo.
"repositories": [
{
"packagist.org": false
}
]
Usage
You can now set the dpp version constraint in your composer.json.
"require": {
"dpp/version": "^1.0.0"
},
All your other required packages will be resolved by the DPP package manager.
Dev Mode
To create a composer.dev.json with access to all packagist.org packages run:
composer dpp-create-dev-json
To use the composer.dev.json file run composer commands like
COMPOSER=./composer.json.dev composer <command>
Development
Create a new directory and add a composer.json file with the following content:
{
"name": "dpp/dpp-project",
"type": "project",
"repositories": {
"dpp/composer-plugin": {
"type": "path",
"url": "../plugin"
}
},
"require": {
"dpp/composer-plugin": "^1",
"cweagans/composer-patches": "*"
},
"extra": {
"enable-patching": true,
"dpp-base-project-git-url": "git@gitlab.burdaverlag.dev:dpp/DPP-Base-Project.git"
},
"config": {
"allow-plugins": {
"dpp/composer-plugin": true
}
}
}
Change the url in the repositories section to the path to the plugin directory.
Then run composer install to install the plugin.
After that, you can run composer require dpp/version to test the plugin.
dpp/composer-plugin 适用场景与选型建议
dpp/composer-plugin 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 284.69k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 08 月 28 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「composer」 「drupal」 「drupal-project-platform」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 dpp/composer-plugin 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 dpp/composer-plugin 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 dpp/composer-plugin 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
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.
This module extends Drupal Migrate framework.
This composer plugin enables installation of GravityForms WordPress plugin and its addons.
统计信息
- 总下载量: 284.69k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 19
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-08-28