2017 © Pedro Peláez
 

library composer-proxy-client

Composer proxy client to cache external packages sources

image

tomzx/composer-proxy-client

Composer proxy client to cache external packages sources

  • Wednesday, October 7, 2015
  • by tomzx
  • Repository
  • 1 Watchers
  • 4 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Composer Proxy Client

License Latest Stable Version Latest Unstable Version Build Status Code Quality Code Coverage Total Downloads, (*1)

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)., (*2)

Getting started

First, start by requiring the Composer Proxy Client in your project., (*3)

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

In your project composer.json, add the following, (*4)

{
    "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., (*5)

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

Note

This is a work in progress. Composer Proxy Client and Composer Proxy are not ready to be used in production., (*7)

License

The code is licensed under the MIT license. See LICENSE., (*8)

The Versions

07/10 2015

dev-master

9999999-dev https://github.com/tomzx/composer-proxy-client

Composer proxy client to cache external packages sources

  Sources   Download

MIT

The Requires

 

The Development Requires

composer client proxy