A Multi-Framework Composer Library Installer
PHP
Pull request Compare This branch is 2 commits ahead, 356 commits behind composer:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src
tests
.gitignore
.travis.yml
LICENSE
README.md
composer.json
phpunit.xml.dist

README.md

A Multi-Framework Composer Library Installer

Build Status

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.

Current Supported Package Types:

  • CakePHP 2+ cakephp-
  • CodeIgniter codeigniter-
  • Drupal drupal-
  • FuelPHP fuelphp-
  • Joomla joomla-
  • Laravel laravel-
  • Lithium lithium-
  • Magento magento-
  • phpBB phpbb-
  • PPI ppi-
  • Symfony1 symfony1-
  • WordPress wordpress-
  • Zend zend-

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.

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

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!

Current Supported Types

  • CakePHP
    • cakephp-plugin
  • CodeIgniter
    • codeigniter-library
    • codeigniter-third-party
  • Drupal
    • drupal-module
    • drupal-theme
  • FuelPHP
    • fuelphp-module
  • Joomla
    • joomla-component
    • joomla-module
    • joomla-template
    • joomla-plugin
    • joomla-library
  • Laravel
    • laravel-library
  • Lithium
    • lithium-library
    • lithium-source
  • Magento
    • magento-library
    • magento-skin
    • magento-theme
  • phpBB
    • phpbb-extension
  • PPI
    • ppi-module
  • symfony1
    • symfony1-plugin
  • 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.

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.

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