greenpeace/github-archive-installer
Composer 安装命令:
composer require greenpeace/github-archive-installer
包简介
Forked from https://github.com/wpscholar/github-archive-installer. A custom Composer installer that will install a dependency from a GitHub release archive .zip file when installing from distribution.
README 文档
README
Forked from https://github.com/wpscholar/github-archive-installer.
A custom Composer installer that will install a dependency from a GitHub release archive .zip file when installing from distribution.
Why You Need It
It is very common that you might have a number of development only files in your code library source files. Unless explicitly installing from source, you generally don't need to have development only files in your final distribution. You may also want to perform some specific build steps such as building some production-ready JavaScript files. This installer allows you to keep generated code out of your repository while still being able to reliably deliver it in your final distribution.
Using a tool like Travis CI, you can automate the build of your final distribution and automatically attach the generated .zip file to the release on GitHub. Then, using this installer, you can easily configure your library to install the generated .zip file when installing as dist in Composer.
How it Works
Any package with a direct dependency on wpscholar/github-archive-installer and a valid stable version number being installed from distribution will be installed from the GitHub archive <repo-name>.zip file associated with a specific release.
For example, if my Composer package is named wpscholar/hello-world then my generated .zip file should be named hello-world.zip in order to be properly installed using this installer.
This installer only changes the distUrl for the package in Composer. It doesn't override any existing installers that work based off of the type property in your composer.json file. For example, if you have a package of type wordpress-plugin your package would still install in the correct location in WordPress. However, when installing from dist it would simply pull from the .zip file attached to your GitHub release.
greenpeace/github-archive-installer 适用场景与选型建议
greenpeace/github-archive-installer 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 16.11k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 09 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 greenpeace/github-archive-installer 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 greenpeace/github-archive-installer 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 16.11k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2020-09-23