2017 © Pedro Peláez
 

composer-installer flow-composer-installers

A multi-framework Composer library installer

image

typo3/flow-composer-installers

A multi-framework Composer library installer

  • Thursday, January 31, 2013
  • by neos
  • Repository
  • 2 Watchers
  • 0 Stars
  • 4,949 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 230 Forks
  • 0 Open issues
  • 4 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 magically install their package to the correct location based on the specified package type., (*2)

Current Supported Package Types:, (*3)

  • AGL agl-
  • CakePHP 2+ cakephp-
  • CodeIgniter codeigniter-
  • Drupal drupal-
  • FuelPHP fuelphp-
  • Joomla joomla-
  • Kohana kohana-
  • Laravel laravel-
  • Lithium lithium-
  • Magento magento-
  • Mako mako-
  • MediaWiki mediawiki-
  • phpBB phpbb-
  • PPI ppi-
  • SilverStripe silverstripe-
  • Symfony1 symfony1-
  • TYPO3 Flow typo3-flow-
  • WordPress wordpress-
  • Zend zend-

Natively Supported Frameworks:, (*4)

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:, (*5)

  • Aura
  • Symfony2

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": "*" } which tells composer to load the custom installers., (*6)

``` json { "name": "you/ftp", "type": "cakephp-plugin", "require": { "composer/installers": "*" } }, (*7)


This would install your package to the `app/Plugin/Ftp/` folder of a CakePHP app when a user runs `php composer.phar install`. So submit your packages to [packagist.org](http://packagist.org)! ## Current Supported Types * AGL * agl-module * CakePHP * **cakephp-plugin** * CodeIgniter * codeigniter-library * codeigniter-third-party * codeigniter-module * Drupal * **drupal-module** * **drupal-theme** * drupal-profile * drupal-drush * FuelPHP * fuelphp-module * Joomla * joomla-component * joomla-module * joomla-template * joomla-plugin * joomla-library * Kohana * **kohana-module** * Laravel * laravel-library * Lithium * **lithium-library** * **lithium-source** * Magento * magento-library * magento-skin * magento-theme * Mako * mako-package * MediaWiki * mediawiki-extension * phpBB * phpbb-extension * phpbb-style * phpbb-language * PPI * **ppi-module** * SilverStripe * silverstripe-module * silverstripe-theme * symfony1 * **symfony1-plugin** * TYPO3 Flow * typo3-flow-package * typo3-flow-framework * typo3-flow-plugin * typo3-flow-site * typo3-flow-build * typo3-flow-**yourlib** (will install to Packages/Yourlib/) * WordPress * **wordpress-plugin** * **wordpress-theme** * Zend * zend-library * zend-extra Types in **bold** have been marked stable and you can rely on those install paths to not change. A new type must be created if any adjustments are requested for an install path. ## 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`: ``` json { "extra": { "installer-paths": { "your/custom/path/{$name}/": ["shama/ftp", "vendor/package"] } } }

This would use your custom path for each of the listed packages. The available variables to use in your paths are: ${name}, {$vendor}, {$type}., (*8)

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

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:, (*10)

json { "name": "shama/cakephp-ftp", "type": "cakephp-plugin", "extra": { "installer-name": "Ftp" } }, (*11)

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

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

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

The Versions

31/01 2013

dev-test

dev-test 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

31/01 2013

dev-real-composer-name

dev-real-composer-name 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

19/12 2012

dev-master

9999999-dev 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

17/12 2012

dev-rebased

dev-rebased 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