Download the PHP package ffraenz/private-composer-installer without Composer

On this page you can find all versions of the php package ffraenz/private-composer-installer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

Please rate this library. Is it a good library?

All versions of private-composer-installer with dependencies

Informations about the package private-composer-installer


Packagist version Build Status Coverage Status Packagist downloads

This is a Composer plugin offering a way to reference private package URLs within composer.json and composer.lock. It outsources sensitive dist URL parts (license keys, tokens) into environment variables or a .env file typically ignored by version control. This is especially useful when you can't use Private Packagist or Basic HTTP Auth because the source of a package is not in your control. This repository is inspired by acf-pro-installer.

Quick overview


Arbitrary private package

Add the desired private package to the repositories field inside composer.json. Find more about Composer repositories in the Composer documentation. Replace the version as well as other sensitive tokens by {%VARIABLE} placeholders.

Provide the private package dist URL inside the .env file:

Let Composer require the private package:

WordPress plugins

WordPress plugins can be installed using the package type wordpress-plugin in conjunction with the composer/installers installer. In this example we are installing the ACF Pro plugin. Add following entry to the repositories field inside composer.json and set the desired ACF Pro version.

Provide the ACF Pro key inside the .env file. To get this key, login to your ACF account and scroll down to 'Licenses & Downloads'.

Let Composer require ACF Pro:


The configuration options listed below may be added to the root configuration in composer.json like so:


Dotenv file directory relative to the root package (where composer.json is located). By default dotenv files are expected to be in the root package folder or in any of the parent folders.


Dotenv file name. Defaults to .env.


This package heavily depends on vlucas/phpdotenv to load environment variables "automagically". This may cause version conflicts if your project already depends on it. Refer to this table to set the version of private-composer-installer accordingly or consider upgrading.

vlucas/phpdotenv private-composer-installer
^4.1, ^5.2 ^5.0
^4.0 ^4.0
^3.0 ^3.0, ^2.0
^2.2 ^1.0


Install Composer dependencies:

Before pushing changes to the repository run tests and check coding standards using following command:

This is a project by Fränz Friederes and contributors

Requires php Version ^7.1 || ^8.0
composer-plugin-api Version ^1.0 || ^2.0
vlucas/phpdotenv Version ^4.1 || ^5.2

The package ffraenz/private-composer-installer contains the following files

Loading the files please wait ....