esemve/composerve
Composer 安装命令:
composer create-project esemve/composerve
包简介
Serve your git repositories as composer packages
README 文档
README
What is this?
CompoServe is a git repository 2 composer package generator. With its help you can serve the content of the git repository available in the file system as a package.
Settings
Dependency:
With the CLI php exec it should be able to start the git command. Besides that it is important that the user from which you start the generating has reading rights to the folder that contains your git repository.
Installation
- Clone the project or install from composer
composer require esemve/composerve --prefer-dist
- Make available the content of the public folder online
- Transfer all request to index.php (this way it can serve the packages.json request as well)
Settings
Rename config/repositories.example.php to repositories.php, and add the packages and their git folders to it.
Usage
With the help of composerve.php in the root you can access the console. Run the command below after you modified your package (or added a new package):
php composerve.php build
It goes through all of the added repositories, interprets the tags that are in the git, retrieves the data from the composer.json, and generates zipball to the versions.
Where you want to use the packages served by CompoServe, add it to the composer.json:
"repositories": [ { "type": "composer", "url": "http:\/\/composerve.yourdomain.com" } ],
... where the http://composerve.yourdomain.com is the url through which the content of the /public folder is available.
From that point the
composer update
command has access to all of the packages, it can download any of the versions, just like you have been using the original packagist.org.
What should be in the git?
The system can work with the git repository formats that are accepted by packagist.com. You can find the description here: https://packagist.org/about
If you want to help me fork it and send me a pull request! :)
License: MIT
esemve/composerve 适用场景与选型建议
esemve/composerve 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 19 次下载、GitHub Stars 达 0, 最近一次更新时间为 2016 年 09 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 esemve/composerve 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 esemve/composerve 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-09-01