phar-io/mediator
Composer 安装命令:
composer require phar-io/mediator
包简介
Deploy phars via composer
README 文档
README
This is a template project to create a Composer plugin that installs a PHAR file instead of a sh*tload of sourcecode
Usage
Create your own copy of this project by running and following the instructions.
$ composer create-project phar-io/mediator /path/to/your/source/path
Adding your public signing keys
If you are signing your releases you can add the public key to your plugin. Export your public key like this.
$ gpg --export -a mykey > keys/mykey.key
This will export the key with the ID mykey into a file mykey.key inside
the keys directory.
You can add more than one key to that keys-folder and each of the keys will be used to check for a verification for the signature. So for projects that have more than one person signing builds you can add all their public keys to this folder.
Replacements
You can use different variables within the URLs that will be replaced with the values from the current tag of the plugin. Note that this only works when your versions follow SemanticVersioning
To make it more visible: Let's assume we have a tag 1.2.3-RC04+build567
- %version% will be replaed with the full version constraint, 1.2.3-RC4+build567 from the example
- %major% will be replaced with the major version, 1 from the example
- %minor% will be replaced with the minor version, 2 from the example
- %patch% will be replaced with the patch version, 3 from the example
- %release% will be replaced with the release version, RC04 from the example
- %build% will be replaced with the build version, build567 from the example
phar-io/mediator 适用场景与选型建议
phar-io/mediator 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 43 次下载、GitHub Stars 达 3, 最近一次更新时间为 2020 年 11 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 phar-io/mediator 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 phar-io/mediator 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 43
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-11-10