2017 © Pedro Peláez
 

composer-installer installers

A multi-framework Composer library installer

image

eric-chau/installers

A multi-framework Composer library installer

  • Friday, August 29, 2014
  • by eric-chau
  • Repository
  • 1 Watchers
  • 1 Stars
  • 499 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 353 Forks
  • 0 Open issues
  • 20 Versions
  • 0 % Grown

The README.md

A Multi-Framework Composer Library Installer

Build Status, (*1)

This is for PHP package authors to require in their composer.json. It will install their package to the correct location based on the specified package type., (*2)

The goal of installers is to be a simple package type to install path map. Users can also customize the install path per package and package authors can modify the package name upon installing., (*3)

installers isn't intended on replacing all custom installers. If your package requires special installation handling then by all means, create a custom installer to handle it., (*4)

Natively Supported Frameworks:, (*5)

The following frameworks natively work with Composer and will be installed to the default vendor directory. composer/installers is not needed to install packages with these frameworks:, (*6)

  • Aura
  • Symfony2
  • Yii
  • Yii2

Current Supported Package Types:, (*7)

Stable types are marked as bold, this means that installation paths for those type will not be changed. Any adjustment for those types would require creation of brand new type that will cover required changes., (*8)

Framework Types
AGL agl-module
AnnotateCms annotatecms-module
annotatecms-component
annotatecms-service
Bitrix bitrix-module
bitrix-component
bitrix-theme
CakePHP 2+ cakephp-plugin
Chef chef-recipe
chef-role
CodeIgniter codeigniter-library
codeigniter-third-party
codeigniter-module
concrete5 concrete5-block
concrete5-package
concrete5-theme
concrete5-update
Craft craft-plugin
Croogo croogo-plugin
croogo-theme
Dolibarr dolibarr-module
Drupal drupal-module
drupal-theme

drupal-library
drupal-profile
drupal-drush
Elgg elgg-plugin
FuelPHP v1.x fuel-module
fuel-packagebr/fuel-theme
Hurad hurad-plugin
hurad-theme
Joomla joomla-component
joomla-module
joomla-template
joomla-plugin
joomla-library
Kirby kirby-plugin
Kohana kohana-module
Laravel laravel-library
Lithium lithium-library
lithium-source
Magento magento-library
magento-skin
magento-theme
Mako mako-package
MODX Evo modxevo-snippet
modxevo-plugin
modxevo-module
modxevo-template
modxevo-lib
MediaWiki mediawiki-extension
October october-module
october-plugin
OXID oxid-module
oxid-theme
oxid-out
MODULEWork modulework-module
Moodle moodle-* (Please check source for all supported types)
Piwik piwik-plugin
phpBB phpbb-extension
phpbb-style
phpbb-language
Pimcore pimcore-plugin
PPI ppi-module
Puppet puppet-module
REDAXO redaxo-addon
Roundcube roundcube-plugin
shopware shopware-backend-pluginbr/shopware-core-pluginbr/shopware-frontend-pluginbr/shopware-theme
SilverStripe silverstripe-module
silverstripe-theme
symfony1 symfony1-plugin
Tusk tusk-task
tusk-command
tusk-asset
TYPO3 Flow typo3-flow-package
typo3-flow-framework
typo3-flow-plugin
typo3-flow-site
typo3-flow-boilerplate
typo3-flow-build
TYPO3 CMS typo3-cms-extension
Wolf CMS wolfcms-plugin
WordPress wordpress-plugin
wordpress-theme

wordpress-muplugin
Zend zend-library
zend-extra
zend-module
Zikula zikula-module
zikula-theme

Example composer.json File

This is an example for a CakePHP plugin. The only important parts to set in your composer.json file are "type": "cakephp-plugin" which describes what your package is and "require": { "composer/installers": "~1.0" } which tells composer to load the custom installers., (*9)

{
    "name": "you/ftp",
    "type": "cakephp-plugin",
    "require": {
        "composer/installers": "~1.0"
    }
}

This would install your package to the Plugin/Ftp/ folder of a CakePHP app when a user runs php composer.phar install., (*10)

So submit your packages to packagist.org!, (*11)

Custom Install Paths

If you are consuming a package that uses the composer/installers you can override the install path with the following extra in your composer.json:, (*12)

{
    "extra": {
        "installer-paths": {
            "your/custom/path/{$name}/": ["shama/ftp", "vendor/package"]
        }
    }
}

A package type can have a custom installation path with a type: prefix., (*13)

``` json { "extra": { "installer-paths": { "your/custom/path/{$name}/": ["type:wordpress-plugin"] } } }, (*14)


This would use your custom path for each of the listed packages. The available variables to use in your paths are: `{$name}`, `{$vendor}`, `{$type}`. ## Custom Install Names If you're a package author and need your package to be named differently when installed consider using the `installer-name` extra. For example you have a package named `shama/cakephp-ftp` with the type `cakephp-plugin`. Installing with `composer/installers` would install to the path `Plugin/CakephpFtp`. Due to the strict naming conventions, you as a package author actually need the package to be named and installed to `Plugin/Ftp`. Using the following config within your **package** `composer.json` will allow this: ```json { "name": "shama/cakephp-ftp", "type": "cakephp-plugin", "extra": { "installer-name": "Ftp" } }

Please note the name entered into installer-name will be the final and will not be inflected., (*15)

Contribute!

  • Fork and clone.
  • Run the command php composer.phar install --dev to install the dev dependencies. See Composer.
  • Use the command phpunit to run the tests. See PHPUnit.
  • Create a branch, commit, push and send us a pull request.

To ensure a consistent code base, you should make sure the code follows the Coding Standards which we borrowed from Symfony., (*16)

If you would like to help, please take a look at the list of issues., (*17)

Should we allow dynamic package types or paths? No.

What are they? The ability for a package author to determine where a package will be installed either through setting the path directly in their composer.json or through a dynamic package type: "type": "framework-install-here"., (*18)

It has been proposed many times. Even implemented once early on and then removed. installers won't do this because it would allow a single package author to wipe out entire folders without the user's consent. That user would then come here to yell at us., (*19)

The Versions

29/08 2014

dev-master

9999999-dev http://composer.github.com/installers/

A multi-framework Composer library installer

  Sources   Download

MIT

The Development Requires

wordpress laravel cakephp bitrix typo3 zend installer symfony codeigniter drupal silverstripe fuelphp concrete5 mediawiki piwik agl joomla magento mako kohana phpbb annotatecms elgg lithium shopware hurad puppet craft ppi moodle roundcube chef croogo modulework zikula modx evo oxid wolfcms dolibarr

18/08 2014

v1.0.18

1.0.18.0 http://composer.github.com/installers/

A multi-framework Composer library installer

  Sources   Download

MIT

The Development Requires

wordpress laravel cakephp bitrix typo3 zend installer symfony codeigniter drupal silverstripe fuelphp concrete5 mediawiki piwik agl joomla magento mako kohana phpbb annotatecms elgg lithium shopware hurad puppet craft ppi moodle roundcube chef croogo modulework zikula modx evo oxid wolfcms dolibarr

17/08 2014

v1.0.17

1.0.17.0 http://composer.github.com/installers/

A multi-framework Composer library installer

  Sources   Download

MIT

The Development Requires

wordpress laravel cakephp bitrix typo3 zend installer symfony codeigniter drupal silverstripe fuelphp concrete5 mediawiki piwik agl joomla magento mako kohana phpbb annotatecms elgg lithium shopware hurad puppet craft ppi moodle roundcube chef croogo modulework zikula modx evo oxid wolfcms dolibarr

21/07 2014

v1.0.16

1.0.16.0 http://composer.github.com/installers/

A multi-framework Composer library installer

  Sources   Download

MIT

The Development Requires

wordpress laravel cakephp bitrix typo3 zend installer symfony codeigniter drupal silverstripe fuelphp concrete5 mediawiki piwik agl joomla magento mako kohana phpbb annotatecms elgg lithium shopware hurad puppet craft ppi moodle roundcube croogo modulework zikula modx evo oxid wolfcms dolibarr

23/06 2014

v1.0.15

1.0.15.0 http://composer.github.com/installers/

A multi-framework Composer library installer

  Sources   Download

MIT

The Development Requires

wordpress laravel cakephp bitrix typo3 zend installer symfony codeigniter drupal silverstripe fuelphp concrete5 mediawiki piwik agl joomla magento mako kohana phpbb annotatecms elgg lithium shopware hurad craft ppi moodle roundcube croogo modulework zikula modx evo oxid wolfcms dolibarr

18/06 2014

v1.0.14

1.0.14.0 http://composer.github.com/installers/

A multi-framework Composer library installer

  Sources   Download

MIT

The Development Requires

wordpress laravel cakephp bitrix typo3 zend installer symfony codeigniter drupal silverstripe fuelphp concrete5 mediawiki piwik agl joomla magento mako kohana phpbb annotatecms elgg lithium shopware hurad craft ppi moodle roundcube croogo modulework zikula modx evo oxid wolfcms dolibarr

09/04 2014

v1.0.13

1.0.13.0 http://composer.github.com/installers/

A multi-framework Composer library installer

  Sources   Download

MIT

The Development Requires

wordpress laravel cakephp typo3 zend installer symfony codeigniter drupal silverstripe fuelphp concrete5 mediawiki piwik agl joomla magento mako kohana phpbb annotatecms elgg lithium shopware hurad craft ppi croogo modulework zikula modx evo oxid wolfcms

24/02 2014

v1.0.12

1.0.12.0 http://composer.github.com/installers/

A multi-framework Composer library installer

  Sources   Download

MIT

The Development Requires

wordpress laravel cakephp typo3 zend installer symfony codeigniter drupal silverstripe fuelphp concrete5 mediawiki piwik agl joomla magento mako kohana phpbb annotatecms elgg lithium shopware hurad craft ppi croogo modulework zikula modx evo oxid wolfcms

12/02 2014

v1.0.11

1.0.11.0 http://composer.github.com/installers/

A multi-framework Composer library installer

  Sources   Download

MIT

The Development Requires

wordpress laravel cakephp typo3 zend installer symfony codeigniter drupal silverstripe fuelphp concrete5 mediawiki piwik agl joomla magento mako kohana phpbb annotatecms elgg lithium shopware hurad craft ppi croogo modulework zikula modx evo oxid

31/01 2014

v1.0.10

1.0.10.0 http://composer.github.com/installers/

A multi-framework Composer library installer

  Sources   Download

MIT

The Development Requires

wordpress laravel cakephp typo3 zend installer symfony codeigniter drupal silverstripe fuelphp concrete5 mediawiki piwik agl joomla magento mako kohana phpbb annotatecms elgg lithium shopware hurad craft ppi croogo modulework zikula modx evo oxid

27/01 2014

v1.0.9

1.0.9.0 http://composer.github.com/installers/

A multi-framework Composer library installer

  Sources   Download

MIT

The Development Requires

wordpress laravel cakephp typo3 zend installer symfony codeigniter drupal silverstripe fuelphp concrete5 mediawiki piwik agl joomla magento mako kohana phpbb annotatecms elgg lithium shopware hurad ppi croogo modulework zikula modx evo oxid

24/12 2013

v1.0.8

1.0.8.0 http://composer.github.com/installers/

A multi-framework Composer library installer

  Sources   Download

MIT

The Development Requires

wordpress laravel cakephp zend installer symfony codeigniter drupal silverstripe fuelphp concrete5 agl joomla mako kohana phpbb typo3 cms elgg lithium li3 ppi modulework typo3 flow typo3 neos

24/10 2013

v1.0.7

1.0.7.0 http://composer.github.com/installers/

A multi-framework Composer library installer

  Sources   Download

MIT

The Development Requires

wordpress laravel cakephp zend installer symfony codeigniter drupal silverstripe fuelphp concrete5 agl joomla mako kohana phpbb typo3 cms lithium li3 ppi modulework typo3 flow typo3 neos

20/08 2013

v1.0.6

1.0.6.0 http://composer.github.com/installers/

A multi-framework Composer library installer

  Sources   Download

MIT

The Development Requires

wordpress laravel cakephp zend installer symfony codeigniter drupal silverstripe fuelphp agl joomla mako kohana phpbb typo3 cms lithium li3 ppi modulework typo3 flow typo3 neos

07/08 2013

v1.0.5

1.0.5.0 http://composer.github.com/installers/

A multi-framework Composer library installer

  Sources   Download

MIT

The Development Requires

wordpress laravel cakephp zend installer symfony codeigniter drupal silverstripe fuelphp agl joomla mako kohana phpbb lithium li3 ppi modulework typo3 flow typo3 neos

20/06 2013

v1.0.4

1.0.4.0 http://composer.github.com/installers/

A multi-framework Composer library installer

  Sources   Download

MIT

The Development Requires

wordpress laravel cakephp zend installer symfony codeigniter drupal silverstripe fuelphp agl joomla mako kohana phpbb lithium li3 ppi modulework typo3 flow typo3 neos

02/03 2013

v1.0.3

1.0.3.0 http://composer.github.com/installers/

A multi-framework Composer library installer

  Sources   Download

MIT

The Development Requires

wordpress laravel cakephp zend installer symfony yii codeigniter drupal silverstripe fuelphp agl joomla mako kohana phpbb lithium li3 ppi typo3 flow typo3 neos

18/02 2013

v1.0.2

1.0.2.0 http://composer.github.com/installers/

A multi-framework Composer library installer

  Sources   Download

MIT

The Development Requires

wordpress laravel cakephp zend installer symfony codeigniter drupal silverstripe fuelphp agl joomla mako kohana phpbb lithium li3 ppi typo3 flow typo3 neos

14/01 2013

v1.0.1

1.0.1.0 http://composer.github.com/installers/

A multi-framework Composer library installer

  Sources   Download

MIT

The Development Requires

wordpress laravel cakephp zend installer symfony codeigniter drupal silverstripe fuelphp agl joomla mako kohana phpbb lithium li3 ppi typo3 flow typo3 neos

08/09 2012

v1.0.0

1.0.0.0 http://composer.github.com/installers/

A multi-framework Composer library installer

  Sources   Download

MIT

The Development Requires

wordpress laravel cakephp zend installer symfony codeigniter drupal silverstripe fuelphp joomla mako kohana phpbb lithium li3 ppi