2017 © Pedro Peláez
 

composer-plugin courier

Install composer packages to custom folders

image

akimsko/courier

Install composer packages to custom folders

  • Friday, November 27, 2015
  • by akimsko
  • Repository
  • 1 Watchers
  • 1 Stars
  • 210 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Courier Composer Plugin.

This composer installer will install any package-type, to any path you wish., (*1)

It can be any of composers built-in package-types, or you can invent your own package-types, as you see fit., (*2)

In order for this plugin to work, it must be required in the package that specifies the custom install paths., (*3)

Like so..., (*4)

{
  ...
  "require": {
    "akimsko/courier": "~1.0"
  }
}

From here, you can override install paths for all package-types required by this package, by defining them in the extra section., (*5)

The extra-option is courier-paths, and must contain one or more entries of <package-type>: <directory>., (*6)

To insert the package name in the path use {name} (The package name after the '/')., (*7)

To insert the vendor name in the path use {vendor} (The package name before the '/')., (*8)

Like so..., (*9)

{
  ...
  "extra": {
    "courier-paths": {
      "my-custom-module-type": "modules/{vendor}-{name}",
      "my-custom-theme-type": "theme/{name}"
      "library": "lib/{vendor}/{name}"
    }
  }
}

This will install all packages of type my-custom-module-type to <projectroot>/modules/<vendor-name>-<package-name>., (*10)

All packages of type my-custom-theme-type to <projectroot>/themes/<package-name>., (*11)

And finally all packages of type library to <projectroot>/lib/<vendor-name>/<package-name>., (*12)

If a package-type does not match anything in courier-paths extra section, it will be installed to the default vendor path as normal., (*13)

The Versions

27/11 2015

dev-master

9999999-dev

Install composer packages to custom folders

  Sources   Download

MIT

The Requires

  • composer-plugin-api ~1.0

 

27/11 2015

1.0.2

1.0.2.0

Install composer packages to custom folders

  Sources   Download

MIT

The Requires

  • composer-plugin-api ~1.0

 

11/06 2015

1.0.1

1.0.1.0

Install composer packages to custom folders

  Sources   Download

MIT

The Requires

  • composer-plugin-api ~1.0

 

21/05 2015

1.0.0

1.0.0.0

Install composer packages to custom folders

  Sources   Download

MIT

The Requires

  • composer-plugin-api 1.0.0