imscp/composer-installers
Composer 安装命令:
composer require imscp/composer-installers
包简介
i-MSCP composer installers
README 文档
README
This is for i-MSCP composer package authors to require in their composer.json.
It will install their package to the correct location based on the specified
package type.
Current supported installers and package types
| Installer | Types |
|---|---|
| i-MSCP | imscp-pluginimscp-themeimscp-tool |
| Roundcube | roundcube-plugin |
Example composer.json
This is an example for the i-MSCP PhpMyAdmin composer package. The only
important parts to set in the composer.json file are "type": "imscp-tool"
which describes what package is and "require": { "imscp/composer-installers": "^1.0" }
which tells composer to load the custom installers.
{
"name": "imscp/phpmyadmin",
"type": "imscp-tool",
"require": {
"imscp/composer-installers": "^1.0"
}
}
This would install the package to the gui/public/tools/phpmyadmin/ path.
Custom install paths
i-MSCP developers and/or administrators can override the install paths in
different ways, using the installer-paths extra in the composer.json of the
i-MSCP instance :
Per package basis
{
"extra": {
"installer-paths": {
"custom/path/{$name}/": [
"konzeptplus/imscp-api",
"imscp/dns-provisioning"
]
}
}
}
would install both the konzeptplus/imscp-api and imscp/dns-provisioning
packages into the custom/path/{$name}/ path.
Per package type basis
{
"extra": {
"installer-paths": {
"custom/path/{$name}/": [
"type:imscp-plugin"
]
}
}
}
would install any package of type imscp-plugin into the
custom/path/{$name}/ path.
Per vendor basis
{
"extra": {
"installer-paths": {
"custom/path/{$name}/": [
"vendor:konzeptplus"
]
}
}
}
would install any package provided by the konzeptplus vendor into the
custom/path/{$name}/ path.
In all the above cases, the following variables are available for use in paths:
{$name}: Package name{$vendor}Vendor name{$type}Package type
Custom install name
As a package author, you can name it differently when installed by using the
installer-name extra in the package composer.json.
If you have a package named imscp/roundcube of type imscp-tool, it would
be installed in the gui/public/tools/roundcube path. To provide this
package as default Webmail, you need override its name as follows:
{
"name": "imscp/roundcube",
"type": "imscp-tool",
"extra": {
"installer-name": "webmail"
}
}
By doing so, the package would be installed in the gui/public/tools/webmail
path.
Disabling installers
There may be time when you want to disable one or more installers from
imscp/composer-installers. For instance, if you are managing a package that
uses a specific installer that conflicts with imscp/composer-installers but
also have a dependency on a package that depends on imscp/composer-installers.
Installers can be disabled by specifying the extra installer-disable
property. If set to true, "all", or "*" all installers will be disabled.
{
"extra": {
"installer-disable": true
}
}
Otherwise a single installer or an array of installers may be specified.
{
"extra": {
"installer-disable": [
"imscp",
"roundcube"
]
}
}
Note: Using a global disable value (true, "all", or "*") will take
precedence over individual installer names if used in an array. The example
below will disable all installers.
{
"extra": {
"installer-disable": [
"imscp",
"all"
]
}
}
imscp/composer-installers 适用场景与选型建议
imscp/composer-installers 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.05k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2019 年 03 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「plugins」 「library」 「tools」 「imscp」 「roundcube」 「installers」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 imscp/composer-installers 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 imscp/composer-installers 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 imscp/composer-installers 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A set of useful PHP classes.
A Laravel package to retrieve data from Google Search Console
Inbox pattern process implementation for your Laravel Applications
GHT D-Tools Bundle
Allow KoolReport to use twig template engine to render view
Asynchronous MQTT client built on React
统计信息
- 总下载量: 1.05k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 23
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: LGPL-2.1-only
- 更新时间: 2019-03-13