Download the PHP package jbouzekri/composer-deploy-plugin without Composer
On this page you can find all versions of the php package jbouzekri/composer-deploy-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jbouzekri/composer-deploy-plugin
More information about jbouzekri/composer-deploy-plugin
Files in jbouzekri/composer-deploy-plugin
Package composer-deploy-plugin
Short Description Auto deploy static files with composer in a public document root folder
License MIT
Homepage https://github.com/jbouzekri/ComposerDeployPlugin
Informations about the package composer-deploy-plugin
ComposerDeployPlugin
This composer plugin add extra configuration to copy folders from the vendor to another one.
It can be useful to publish assets to a public document root. The framework symfony uses the similar method to publish assets from users' extensions to the apache public document root.
Installation
Add jbouzekri/composer-deploy-plugin
as a dependency in composer.json
.
Then run the composer install
or composer update
command.
Configuration
All the plugin configuration must be placed in the extra
key of your project composer.json
.
- target-dir : relative path to the folder where you want to deploy (mandatory)
- folders : array of folders name to deploy
- exclude : array of full package name to exclude
- symlink : use symlink to deploy
- relative : use symlink relative path to deploy (symlink must be set at true)
The target dir must exists before running the command
Example
In this example, all js and css folders from the project packages will be deployed in a web/composed folder
using a hard copy (no symlink) except the ones in doctrine/orm
package.
Imagine that a first composer install has created the following vendor tree :
- composer.phar
- composer.json
- vendor/jbouzekri/composer-deploy-plugin
- vendor/jbouzekri/composer-deploy-plugin/css
- vendor/doctrine/orm
- vendor/doctrine/orm/src
- vendor/doctrine/orm/css
- vendor/doctrine/doctrine-bundle
- vendor/doctrine/doctrine-bundle/src
- vendor/doctrine/doctrine-bundle/css
- vendor/doctrine/doctrine-bundle/js
After configuring the deploy plugin with the previous configuration, each composer install or update will copy the css and js folders of all packages to the folder web/composed creating the following tree :
- web/composed/doctrine-orm/css
- web/composed/doctrine-bundle/css
- web/composed/doctrine-bundle/js
License
All versions of composer-deploy-plugin with dependencies
symfony/filesystem Version ~2.0
symfony/options-resolver Version ~2.0
symfony/finder Version ~2.0