matthimatiker/marshaller
Composer 安装命令:
composer require matthimatiker/marshaller
包简介
Marshaller is a composer installer that copies packages to a configurable location.
README 文档
README
Marshaller is a composer installer that copies packages to a configurable location.
Activate the installer
To activate the installer, a package must declare its type as marshaller-asset. Additionally, the installer package matthimatiker/marshaller must be required:
{
"name": "my/package",
"description": "Package that can be copied to a configured location.",
"type": "marshaller-asset",
"require": {
"matthimatiker/marshaller": "*"
}
}
Define default installation path
A package that uses the Marshaller installer may define its default installation path. The path is added to the extra configuration.
The following package uses public/custom as installation path:
{
"name": "my/package",
"description": "Package that will be copied to public/custom.",
"type": "marshaller-asset",
"require": {
"matthimatiker/marshaller": "*"
},
"extra": {
"installation-path": "public/custom"
}
}
Overwrite installation path in root package
The root package can overwrite the installation path of all dependencies that are installed via Marshaller.
To change the path, the new target is added to the installation-paths map, which resides in the extra configuration section:
{
"name": "root/package",
"description": "Root package that overwrites an installation path.",
"type": "marshaller-asset",
"require": {
"matthimatiker/marshaller": "*"
},
"extra": {
"installation-paths": {
"my/package": "another/path"
}
}
}
The example above enforces the installation of the package my/package into the directory another/path.
If an required package as well as the root package define an installation path, then the configuration in the root package will be used.
Fallback behavior
If a package uses the Marshaller installer, but neither itself nor the root package defines an installation path, then the default behavior of Composer will take place and the package will be copied to the vendor directory.
matthimatiker/marshaller 适用场景与选型建议
matthimatiker/marshaller 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 627 次下载、GitHub Stars 达 1, 最近一次更新时间为 2012 年 11 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「installer」 「composer」 「configurable」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 matthimatiker/marshaller 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 matthimatiker/marshaller 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 matthimatiker/marshaller 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Installs Aura packages to the Aura system "package" directory.
A Filament plugin to add a customizable copyright footer to all panels
Install WordPress must-use plugins with Composer
This composer plugin enables installation of GravityForms WordPress plugin and its addons.
Allows Symfony Forms to be altered based on YAML configuration files
Arikam CMS installers
统计信息
- 总下载量: 627
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2012-11-20