Composer is very slow in downloading your dependencies and repositories? I've got a mirror you can use

Posted by Darwin Biler on August 30, 2014

I feel you guys, when you hit up "composer install" or "composer update", things are very slow and really annoying if you are in hurry and need to get things installed immediately. Just to remind you though that packagist.org, the one which by default hosts all the repositories is not a supercomputer that can attend to all our needs.

So to contribute back to the community, I've decided to put up a mirror of most commonly used repositories (specially the ones used by Laravel) to provide a faster experience when running composer operations. Note that this is just a Satis so this is static one. I'm trying my best though to get it updated as often as possible, so bear with me if its not always updated with the latest releases.

The list of packages that I'm hosting can be found in here
http://packages.buonzz.com/

You can use my repository by the following methods:

Specifying this in your composer.json file (per project)

Via command line (per project)

You can also create projects by specifying it via command line:

Disable packagist and use my repo (per project)

Another example of using the repo is, for example, you want to completely don't want to use packagist.org, but wanted to download symfony console component. You can do this in your composer.json file

Set it as the default globally and disable packagist (global)

you need to edit the global config of the composer, to do this, open the

~/.composer/config.json

then open put this setting

That should now disable packagist and use packages.buonzz.com whenever you hit composer install or composer update commands.

If you need any additional packages installed in my mirror, feel free to drop a comment below so that I can add it and update the build.


Did you find this useful?

I'm always happy to help! You can show your support and appreciation by Buying me a coffee (I love coffee!).