Package Data | |
---|---|
Maintainer Username: | Konafets |
Maintainer Contact: | kyle@dontkry.com (Kyle Robinson Young) |
Package Create Date: | 2012-11-15 |
Package Last Update: | 2013-07-20 |
Home Page: | http://composer.github.com/installers |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-22 03:04:42 |
Package Statistics | |
---|---|
Total Downloads: | 1,843 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 3 |
Total Forks: | 0 |
Total Open Issues: | 0 |
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-
codeigniter-
drupal-
fuelphp-
joomla-
kohana-
laravel-
lithium-
magento-
mako-
mediawiki-
phpbb-
ppi-
silverstripe-
symfony1-
wordpress-
zend-
Natively Supported Frameworks:
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:
composer.json
FileThis 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!
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.
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
:
{
"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}
.
php composer.phar install --dev
to install the dev
dependencies. See Composer.phpunit
to run the tests. See PHPUnit.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.