Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP Composer Central/Shared Caching

Tags:

In my company, we build most of our projects using composer, which means a lot of repeated packages (same library with same version) getting downloaded from the internet across my different teams.

I have tried Satis Composer Server,but the problem is the cache is not generated on demand.

I want to implement a central caching service which can help implement runtime caching or on demand cache.

Is it possible to implement?

like image 396
Atish Goswami Avatar asked Dec 25 '16 01:12

Atish Goswami


1 Answers

I've developed a solution for this exact problem, called Velocita:

https://github.com/isaaceindhoven/velocita-proxy

Works together with a Composer plugin. It improves reliability and performance of Composer installs and you can configure which locations you want to mirror.

Satis is still great for local repositories or proactively generated caches based on composer.json contents, but Velocita allows for a more dynamic pull-through cache.

like image 178
Jelle Raaijmakers Avatar answered Sep 26 '22 16:09

Jelle Raaijmakers