2017 © Pedro Peláez
 

composer-plugin composer-custom-directory-installer

A composer plugin, to help install packages of different types in custom paths.

image

mnsami/composer-custom-directory-installer

A composer plugin, to help install packages of different types in custom paths.

  • Monday, August 14, 2017
  • by mnsami
  • Repository
  • 8 Watchers
  • 92 Stars
  • 368,647 Installations
  • PHP
  • 30 Dependents
  • 0 Suggesters
  • 20 Forks
  • 3 Open issues
  • 7 Versions
  • 9 % Grown

The README.md

composer-custom-directory-installer

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., (*1)

This is not another composer-installer library for supporting non-composer package types i.e. application .. etc. This is only to add the flexibility of installing composer packages outside the vendor folder. This package only supports composer package types,, (*2)

https://getcomposer.org/doc/04-schema.md#type, (*3)

The type of the package. It defaults to library., (*4)

Package types are used for custom installation logic. If you have a package that needs some special logic, you can define a custom type. This could be a symfony-bundle, a wordpress-plugin or a typo3-module. These types will all be specific to certain projects, and they will need to provide an installer capable of installing packages of that type., (*5)

How to use

  • Include the composer plugin into your composer.json require section::
  "require":{
    "php": ">=5.3",
    "mnsami/composer-custom-directory-installer": "1.1.*",
    "monolog/monolog": "*"
  }
  • In the extra section 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., (*6)

  • As an added new feature, we have added more flexibility in defining your download directory same like the composer/installers, in other words you can use variables like {$vendor} and {$name} in your installer-path section::
  "extra": {
    "installer-paths": {
      "./customlibs/{$vendor}/db/{$name}": ["doctrine/orm"]
    }
  }

the above will manage to install the doctrine/orm package in the root folder of your project, under customlibs., (*7)

Note

Composer type: project is not supported in this installer, as packages with type project only make sense to be used with application shells like symfony/framework-standard-edition, to be required by another package., (*8)

The Versions

14/08 2017

dev-master

9999999-dev

A composer plugin, to help install packages of different types in custom paths.

  Sources   Download

MIT

The Requires

  • php >=5.3
  • composer-plugin-api ^1.0

 

by Mina Nabil Sami

composer composer-installer composer-plugin

25/05 2016

dev-revert-17-no-metapackages-installer

dev-revert-17-no-metapackages-installer

A composer plugin, to help install packages of different types in custom paths.

  Sources   Download

MIT

The Requires

  • php >=5.3
  • composer-plugin-api ^1.0

 

by Mina Nabil Sami

composer composer-installer composer-plugin

25/05 2016

1.1.1

1.1.1.0

A composer plugin, to help install packages of different types in custom paths.

  Sources   Download

MIT

The Requires

  • php >=5.3
  • composer-plugin-api ^1.0

 

by Mina Nabil Sami

composer composer-installer composer-plugin

04/02 2016

1.1.0

1.1.0.0

A composer plugin, to help install packages of different types in custom paths.

  Sources   Download

MIT

The Requires

  • php >=5.3
  • composer-plugin-api ^1.0

 

by Mina Nabil Sami

composer composer-installer composer-plugin

12/06 2015

1.0.4

1.0.4.0

A composer plugin, to help install packages of different types in custom paths.

  Sources   Download

MIT

The Requires

  • php >=5.3
  • composer-plugin-api ^1.0

 

by Mina Nabil Sami

composer composer-installer composer-plugin

05/10 2014

1.0.3

1.0.3.0

A composer plugin, to help install packages of different types in custom paths.

  Sources   Download

MIT

The Requires

  • php >=5.3
  • composer-plugin-api *

 

by Mina Nabil Sami

composer composer-installer composer-plugin

28/07 2014

1.0.2

1.0.2.0

A composer plugin, to help install packages of different types in custom paths.

  Sources   Download

MIT

The Requires

  • php >=5.3
  • composer-plugin-api *

 

by Mina Nabil Sami

composer composer-installer composer-plugin