tomzx/composer-proxy-client 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tomzx/composer-proxy-client

Composer 安装命令:

composer require tomzx/composer-proxy-client

包简介

Composer proxy client to cache external packages sources

README 文档

README

License Latest Stable Version Latest Unstable Version Build Status Code Quality Code Coverage Total Downloads

Composer Proxy Client is a plugin for composer that will send to Composer Proxy the list of require and require-dev of your composer.json. Composer Proxy will then add these dependencies to its cache, thus making it possible to use it in the same way you'd use satis to cache repository, but in a dynamic manner (instead of specifying by hand your dependencies).

Getting started

First, start by requiring the Composer Proxy Client in your project.

php composer.phar require tomzx/composer-proxy-client 0.1.*@dev

In your project composer.json, add the following

{
	"repositories": [
		{
			"type": "composer",
			"url": "url-to-composer-proxy"
		}
	],
	...
	"scripts": {
		"pre-install-cmd": [
			"ComposerProxy\\Client\\Client::prepare"
		],
		"pre-update-cmd": [
			"ComposerProxy\\Client\\Client::prepare"
		]
	},
	"extra": {
		"composer-proxy": {
			"url": [
				"url-to-composer-proxy"
			]
		}
	}
}

Note Specifying the pre-install-cmd script is at your discretion.

This takes care of informing composer that you want to use Composer Proxy Client AND where your Composer Proxy server resides.

Note

This is a work in progress. Composer Proxy Client and Composer Proxy are not ready to be used in production.

License

The code is licensed under the MIT license. See LICENSE.

统计信息

  • 总下载量: 23
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-12-19