2017 © Pedro Peláez
 

composer-plugin composer-plugin-filecopier

Composer Plugin Mass Files Copier

image

sasedev/composer-plugin-filecopier

Composer Plugin Mass Files Copier

  • Friday, January 22, 2016
  • by sasedev
  • Repository
  • 1 Watchers
  • 2 Stars
  • 508 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 5 Versions
  • 6 % Grown

The README.md

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., (*1)

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., (*2)

Installation / Usage

  1. In your composer.json project's file add the requirements, (*3)

    json { "require": { "sasedev/composer-plugin-filecopier": ">=1.1.0" } }, (*4)

  2. In your composer.json project's file add the config in the extra element, (*5)

    ``` json { "extra": { "filescopier" : { "source" : "vendor/twbs/bootstrap/less", "destination" : "var/less/bootstrap", "debug": "true" } } }, (*6)


    or ``` json { "extra": { "filescopier" : [ { "source" : "vendor/twbs/bootstrap/less", "destination" : "var/less/bootstrap", "debug": "true" }, { "source" : "src/Sasedev/ResBundle/Resources/less/bootstrap/*.less", "destination" : "var/less/bootstrap" }, { "source" : "/home/sasedev/Documents/*.pdf", "destination" : "var/test" } ] } }

    Note: The destination element must be a folder. if the destination folder does not exists, it is recursively created using mkdir($destination, 0755, true)., (*7)

    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').'/../').'/';), (*8)

    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, (*9)

  3. Run Composer: php composer.phar update., (*10)

Requirements

PHP 5.5 or above (at least 5.5.9 recommended to avoid potential bugs), (*11)

Authors

Abdelkadeur Seifeddine Salah - seif.salah@gmail.com - http://sasedev.net
, (*12)

License

Composer is licensed under the MIT License - see the LICENSE file for details, (*13)

The Versions

22/01 2016

dev-master

9999999-dev

Composer Plugin Mass Files Copier

  Sources   Download

MIT

The Requires

  • php >=5.5
  • composer-plugin-api ^1.0

 

The Development Requires

by Salah Abdelkader Seif Eddine

composer plugin recursive copy files copy

22/01 2016

1.1.0

1.1.0.0

Composer Plugin Mass Files Copier

  Sources   Download

MIT

The Requires

  • php >=5.5
  • composer-plugin-api ^1.0

 

The Development Requires

by Salah Abdelkader Seif Eddine

composer plugin recursive copy files copy

18/01 2016

1.0.3

1.0.3.0

Composer Plugin Mass Files Copier

  Sources   Download

MIT

The Requires

  • php >=5.5
  • composer-plugin-api ^1.0

 

by Salah Abdelkader Seif Eddine

composer plugin recursive copy files copy

18/01 2016

1.0.1

1.0.1.0

Composer Plugin Mass Files Copier

  Sources   Download

MIT

The Requires

 

by Salah Abdelkader Seif Eddine

composer plugin recursive copy files copy

18/01 2016

1.0.0

1.0.0.0

Composer Plugin Mass Files Copier

  Sources   Download

MIT

The Requires

 

by Salah Abdelkader Seif Eddine

composer plugin recursive copy files copy