2017 © Pedro Pelรกez
 

composer-plugin composer-global-installer

image

itscaro/composer-global-installer

  • Tuesday, May 6, 2014
  • by itscaro
  • Repository
  • 1 Watchers
  • 0 Stars
  • 251 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Composer global installer

This plugin allows to choose which packages should be installed in a shared directory with their version number as in this example:, (*1)

Case 1: inside the package, (*2)

vendor
โ”œโ”€โ”€ autoload.php
โ”œโ”€โ”€ composer
โ””โ”€โ”€ itscaro
    โ””โ”€โ”€ composer-global-installer

vendor-global/
โ””โ”€โ”€ zendframework
    โ”œโ”€โ”€ zendframework1-1.12.3
    โ””โ”€โ”€ zendframework1-1.12.6

Case 2: outside the package (globally shared for instance), (*3)

/package/
vendor
โ”œโ”€โ”€ autoload.php
โ”œโ”€โ”€ composer
โ””โ”€โ”€ itscaro
    โ””โ”€โ”€ composer-global-installer

/usr/share/php/
vendor-global/
โ””โ”€โ”€ zendframework
    โ”œโ”€โ”€ zendframework1-1.12.3
    โ””โ”€โ”€ zendframework1-1.12.6

Configuration, (*4)

itscaro-global-installer is required to be present to activate this plugin, all nested properties are optional. By default, this plugin is active for "library" packages., (*5)

Default values, (*6)

{
  "config": {
    "vendor-dir": "vendor",
    "itscaro-global-installer": {
      "vendor-global-dir": "vendor-global",
      "vendor-global-packages": [],
      "vendor-global-types": [
        "library"
      ]
    }
  },
}

Only zendframework/zendframework1 package is installed in /usr/share/php, (*7)

{
  "config": {
    "vendor-dir": "vendor",
    "composer-global-installer": {
      "vendor-global-dir": "/usr/share/php",
      "vendor-global-packages": [
        "zendframework/zendframework1"
      ]
    }
  },
}

Usage:, (*8)

The plugin should be the first required packaged., (*9)

{
  "require": {
    "itscaro/composer-global-installer": "1.0.0",
    "zendframework/zendframework1": "1.12.6"
  }
}

=======================, (*10)

Credits to Martin Hasoลˆ martin.hason@gmail.com, (*11)

The Versions

06/05 2014

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

  • composer-plugin-api 1.0.0

 

The Development Requires

05/05 2014

1.0.5

1.0.5.0

  Sources   Download

MIT

The Requires

  • composer-plugin-api 1.0.0

 

The Development Requires

25/04 2014

1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

  • composer-plugin-api 1.0.0

 

The Development Requires