hgtan / composer-directory-installer
A composer plugin, to help install packages of different types in custom paths.
Installs: 34
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 24
Type:composer-plugin
pkg:composer/hgtan/composer-directory-installer
Requires
- php: >=5.3
- composer-plugin-api: *
This package is not auto-updated.
Last update: 2025-10-25 21:51:35 UTC
README
A composer plugin, to install differenty types of composer packages in custom directories outside the default composer default installation path which is in the vendor folder.
Installation
- Include the composer plugin into your
composer.jsonrequiresection::
"require":{
"php": ">=5.3",
"mnsami/composer-custom-directory-installer": "1.0.*",
"monolog/monolog": "*"
}
- In the
extrasection define the custom directory you want to the package to be installed in::
"extra":{
"installer-paths":{
"./monolog/": ["monolog/monolog"]
}
by adding the installer-paths part, you are telling composer to install the monolog package inside the monolog folder in your root directory.