captainhook/plugin-composer
Composer 安装命令:
composer require captainhook/plugin-composer
包简介
Composer-Plugin handling your git-hooks
README 文档
README
⚠️ This package is deprecated ⚠️
Please use the hook-installer package instead.
The only difference to this package is that it does NOT require CaptainHook by itself.
That gives you the opportunity to choose your installation method. You can either install the
PHAR or the source code version with all its dependencies.
{
"require-dev": {
"captainhook/captainhook-phar": "^5.0",
"captainhook/hook-installer": "^1.0"
}
}
or
{
"require-dev": {
"captainhook/captainhook": "^5.0",
"captainhook/hook-installer": "^1.0"
}
}
or even use PHIVE to install the captain and just install the hook-installer plugin with composer.
{
"require-dev": {
"captainhook/hook-installer": "^1.0"
},
"extra": {
"captainhook": {
"exec": "tools/captainhook.phar"
}
}
}
This is a composer-plugin that makes sure your teammates install the git hooks. For more information visit its Website.
Installation:
As this is a composer-plugin the preferred method is to use composer for installation.
$ composer require --dev captainhook/plugin-composer
Everything else will happen automagically.
Customize
You can set a custom name for your hook configuration.
If you want to use the PHAR release of CaptainHook you can configure the path to the PHAR file.
All extra config settings are optional and if you are using the default settings you do not have to
configure anything to make it work.
{
"extra": {
"captainhook": {
"config": "hooks.json",
"exec": "tools/captainhook.phar",
"disable-plugin": false
}
}
}
A word of warning
It is still possible to commit without invoking the hooks. So make sure you run appropriate backend-sanity checks on your code!
captainhook/plugin-composer 适用场景与选型建议
captainhook/plugin-composer 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.12M 次下载、GitHub Stars 达 20, 最近一次更新时间为 2018 年 11 月 26 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 captainhook/plugin-composer 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 captainhook/plugin-composer 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 2.12M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 21
- 点击次数: 27
- 依赖项目数: 186
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2018-11-26