Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A Multi-Framework Composer Library Installer

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 tests
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 composer.json
Octocat-spinner-32 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-app
    • cakephp-plugin
    • cakephp-lib
    • cakephp-vendor
    • cakephp-model
    • cakephp-behavior
    • cakephp-controller
    • cakephp-component
    • cakephp-helper
    • cakephp-theme
  • CodeIgniter
    • codeigniter-app
    • codeigniter-library
    • codeigniter-controller
    • codeigniter-third-party
    • codeigniter-model
    • codeigniter-helper
  • Drupal
    • drupal-module
    • drupal-theme
  • FuelPHP
    • fuelphp-app
    • fuelphp-module
  • Joomla
    • joomla-component
    • joomla-module
    • joomla-template
    • joomla-plugin
    • joomla-library
  • Laravel
    • laravel-app
    • laravel-library
  • Lithium
    • lithium-app
    • lithium-library
    • lithium-controller
    • lithium-extension
    • lithium-model
  • 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

Contribute!

Please fork and send a pull request against the master branch. Thanks!

This project uses PHPUnit. Use phpunit to run the test suite.

Something went wrong with that request. Please try again.