Download the PHP package butopea/composer-plugin-filecopier without Composer
On this page you can find all versions of the php package butopea/composer-plugin-filecopier. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download butopea/composer-plugin-filecopier
More information about butopea/composer-plugin-filecopier
Files in butopea/composer-plugin-filecopier
Package composer-plugin-filecopier
Short Description Composer Plugin Mass Files Copier
License MIT
Informations about the package composer-plugin-filecopier
Composer Plugin Files Copier
This is a very simple Composer plugin working on the post-install-cmd
and post-update-cmd
events for copying from a source path to a distination folder.
I created this to avoid copying manualy the bootstrap less files into a temporary folder and overriding the variables.less for generating a custom bootstrap.css file using the less filter from the symfony/assetic-bundle.
Installation / Usage
-
In your composer.json project's file add the requirements
-
In your composer.json project's file add the config in the extra element
or
Note: The destination element must be a folder. if the destination folder does not exists, it is recursively created using
mkdir($destination, 0755, true)
.Note: If the destination folder is not an absolute path, the relative path is calculated using the vendorDir path (
$project_path = \realpath($this->composer->getConfig()->get('vendor-dir').'/../').'/'
;)Note: The source element is evaluated using the php function
\glob($source, GLOB_MARK)
and a recursive copy is made for every result of this function into the destination folder - Run Composer:
php composer.phar update
.
Requirements
PHP 5.5 or above (at least 5.5.9 recommended to avoid potential bugs)
Authors
Abdelkadeur Seifeddine Salah - http://sasedev.net
License
Composer is licensed under the MIT License - see the LICENSE file for details
All versions of composer-plugin-filecopier with dependencies
composer-plugin-api Version ^1.0 || ^2.0