tomzx / composer-proxy
Composer proxy to cache external packages sources
Requires
- php: >=5.4.0
- composer/composer: 1.0.*@dev
- composer/satis: dev-master
- klein/klein: ~2.1
Requires (Dev)
- phpunit/phpunit: ~4
This package is auto-updated.
Last update: 2024-11-10 07:31:05 UTC
README
Composer Proxy
is a lightweight service that uses satis to provide you with the means to cache remote packages.
Composer Proxy
is expected to be used with Composer Proxy Client, which is a small composer plugin which will inform the proxy of the packages to cache.
Requirements
- You will need a server which can be reached by any machine on which you wish to use
Composer Proxy Client
. - PHP 5.4 <=
Getting started
- Configure your server to point to the
public
folder. - Rename config.php.dist to config.php and edit it to your liking.
- The important values you will want to change are
homepage
(the proxy address that will serve the packages),repositories
(see satis' definition ofrepositories
) andrequire-depenedencies
(again, see satis' definition).
- The important values you will want to change are
- In the projects you want to use the proxy, follow the steps listed in the README of Composer Proxy Client.
On your first request to the server you should see the configuration file get created, as well as public/package.json
, public/include
and public/dist
.
TODO
Support satis cron job to fetch current packages specifications
Note
This is a work in progress. Composer Proxy
and Composer Proxy Client
are not ready to be used in production.
License
The code is licensed under the MIT license. See license.txt.