Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

global libraries installation #1445

KOLANICH opened this Issue Dec 29, 2012 · 3 comments


None yet
4 participants

Now composer stores packages for every project, but it will be better make it centralized.
(i have been used this system for a long time. I have a special folder (i call it "modules"), it contains (in most cases) git repos, which contain files. Sometimes I pull the new versions and test the app.)
you say it can break projects.
i say it will not.
solution :

1) composer saves an the new version alongside the old one. for every package which uses the updated library it runs unittests.

1a) if everything is ok the package starts using the new version..
1b) if it isn't, the "unlucky" package continues use the old version
3) composer deletes unused old libraries
4) admin gets report

there is some security problems (such as updating packages without code audit by admin or other thrusted php coder), but they can be easily solved (for example packages are updated only after admin's approval).

rPawel commented Jan 4, 2013

This is exactly what I need.

In my case: I have around 40 projects on each server and each project has current release plus last 4 releases. This means 200 copies of each library!

Disks, inodes and APC would really benefit from this!


fprochazka commented Jan 4, 2013

I see no reason to run unit tests. This #601 & #1017 is much better way, in my opinion.


Seldaek commented Jan 5, 2013

Indeed I will close this as a duplicate of #601 because the proposed solution here is way too complex for the scope of composer. It could be scripted though, if you want (update, run tests, rollback the composer.lock changes if the tests failed and then run install to restore old dependencies).

@Seldaek Seldaek closed this Jan 5, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment