Fast and reliable Composer package downloads using Velocita: a caching reverse proxy that does not require you to modify your projects.
- PHP 7.4 or newer
- A running Velocita Proxy instance
- Composer 2
Installation and configuration of the Velocita plugin is global, so you can use it for all projects that use Composer
without having to add it to your project's composer.json
.
composer global config allow-plugins.gmta/composer-velocita true
composer global require gmta/composer-velocita
composer velocita:enable https://url.to.your.velocita.tld/
After enabling and configuring Velocita, it is automatically used for all Composer projects when running require
,
update
, install
, etcetera.
Disable the plugin by executing:
composer velocita:disable
If you want to remove the plugin completely, execute:
composer global remove gmta/composer-velocita
- Jelle Raaijmakers - jelle@gmta.nl / GMTA
Raise an issue or submit a pull request on GitHub.
This project is licensed under the MIT License - see the LICENSE file for details.