From e7d26822045a0c245c603f8294deb1b11d89ddfe Mon Sep 17 00:00:00 2001 From: Michael King Date: Tue, 13 Jun 2017 08:06:13 -0400 Subject: [PATCH] Example of disabling packagist.org globally Obviously this is not a common use case, but it is good for isolated networks. As far as I could tell, this was not documented, but I figured it out by looking through the code. --- doc/05-repositories.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/05-repositories.md b/doc/05-repositories.md index c0f27791a..b8822d698 100644 --- a/doc/05-repositories.md +++ b/doc/05-repositories.md @@ -655,4 +655,10 @@ You can disable the default Packagist.org repository by adding this to your } ``` +You can disable Packagist.org globally by using the global config flag: + +``` +composer confg -g repo.packagist false +``` + ← [Schema](04-schema.md) | [Config](06-config.md) →