Download the PHP package bitexpert/composer-authstore-plugin without Composer
On this page you can find all versions of the php package bitexpert/composer-authstore-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bitexpert/composer-authstore-plugin
More information about bitexpert/composer-authstore-plugin
Files in bitexpert/composer-authstore-plugin
Package composer-authstore-plugin
Short Description Composer Plugin providing an external auth store for storing your access credentials.
License Apache-2.0
Homepage https://github.com/bitExpert/composer-authstore-plugin
Informations about the package composer-authstore-plugin
README
Note: The plugin is deprecated! Use the built-in functionality in Composer instead!
What is the AuthStore Plugin?
The AuthStore plugin gives you the ability to store the credentials in a separate file. That way you do not need to enter your credentials every time you run composer.
Last year I was working on a PR for Composer which up to now is not merged in master. Kudos to Manuel Lemos from phpclasses.org for pointing out that the new Plugin API of Composer might help to apply the PR without patching Composer. As a result this plugin came alive.
How to use it?
Just add an auth.json
file in your project root (aside to your main composer.json
), which should look like this:
Alternatively, you can store your auth.json
in COMPOSER_HOME
, so that authentication settings is available
for all your projects.
Note: Local
auth.json
always has precedence if a host is defined both locally and globally.
The composer.json of your root project all you need is to require the AuthStore plugin as a dependency:
You can also install the plugin globally which might be the better alternative as globally installed plugins are loaded before local project plugins are loaded.