lastcall/composer-extra-files
Composer 安装命令:
composer require lastcall/composer-extra-files
包简介
Composer plugin for requiring additional files from composer packages.
README 文档
README
Composer Extra Files Plugin is brought to you by your friends at Last Call Media, this composer plugin allows you to request additional files to be downloaded with your composer package.
When should I use this?
The most common use case is if you have compiled front-end code, where the compiled version is never committed to a git repository, and therefore isn't registered on packagist.org. For example, if you want your distributed package to depend on an NPM/Bower package.
Note: You probably shouldn't use this if you have the ability to add repositories to your project's root composer.json. There are better alternatives for this. See Composer Asset Plugin and Asset Packagist. This plugin is most useful for packages that are required by other packages, since Composer doesn't allow nested repositories.
Usage
In your package's composer.json, require this plugin, and specify the extra files in the "extra" section:
{
...
"require": {
"lastcall/composer-extra-files": "~1.0"
}
"extra": {
"extra-files": {
"ui": {
"url": "https://registry.npmjs.org/lastcall-mannequin-ui/-/lastcall-mannequin-ui-1.0.0-rc2.tgz",
"path": "ui"
}
}
}
...
}
The ui identifier here is an arbitrary ID for each dependency.
The url key specifies the URL to fetch the content from. If it points to a tarball or zip file, it will be unpacked on downloading.
The path key specifies the folder (relative to where your package is installed in /vendor) that the content is installed into.
lastcall/composer-extra-files 适用场景与选型建议
lastcall/composer-extra-files 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 9.9k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2017 年 10 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 lastcall/composer-extra-files 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 lastcall/composer-extra-files 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 9.9k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-10-01