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.
- You will need a server which can be reached by any machine on which you wish to use
Composer Proxy Client
. - PHP 5.4 <=
- 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
.
Support satis cron job to fetch current packages specifications
This is a work in progress. Composer Proxy
and Composer Proxy Client
are not ready to be used in production.
The code is licensed under the MIT license. See license.txt.