Composer Library Installer
A Multi-FrameworkThis 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-
composer.json
File
Example 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.