Multi development proxy to use inside intranet network, support for Composer, NPM, and Github dist.
Installation using npm
npm install -g multidev-proxy
Run on terminal and the proxy will saves cache to $USER_HOME/.multidev-proxy/cache directory.
multidev-proxy
The proxy will run at port 8765 ( http://0.0.0.0:8765 ).
Add to composer.json file of project
{
"repositories": [
{
"type": "composer",
"url": "http://localhost:8765/local"
},
{
"type": "composer",
"url": "http://localhost:8765"
},
{
"packagist": false
}
]
}
Or add the config to the $USER_HOME/.composer/config.json to use it globally across projects.
The proxy will be used to download Github dist files. Keep relax and take an ice tea.
To use proxy from specific project
npm --registry http://localhost:8765/registry.npmjs.org install [something]
Or, to use proxy globally, you can alter default configuration
npm config set registry http://localhost:8765/registry.npmjs.org/
Enjoy!