PHPackages                             butopea/composer-plugin-filecopier - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. butopea/composer-plugin-filecopier

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

butopea/composer-plugin-filecopier
==================================

Composer Plugin Mass Files Copier

1.1.3(4y ago)01.1k2[1 PRs](https://github.com/butopea/composer-plugin-filecopier/pulls)1MITPHPPHP &gt;=5.5

Since Jan 18Pushed 2y agoCompare

[ Source](https://github.com/butopea/composer-plugin-filecopier)[ Packagist](https://packagist.org/packages/butopea/composer-plugin-filecopier)[ RSS](/packages/butopea-composer-plugin-filecopier/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (8)Used By (1)

Composer Plugin Files Copier
============================

[](#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](https://github.com/symfony/assetic-bundle).

Installation / Usage
--------------------

[](#installation--usage)

1. In your composer.json project's file add the requirements

    ```
    {
        "require": {
            "butopea/composer-plugin-filecopier": ">=1.1.0"
        }
    }
    ```
2. In your composer.json project's file add the config in the extra element

    ```
    {
        "extra": {
            "filescopier" : {
                "source" : "vendor/twbs/bootstrap/less",
                "destination" : "var/less/bootstrap",
                "debug": "true"
            }
        }
    }
    ```

    or

    ```
    {
        "extra": {
            "filescopier" : [
                {
                    "source" : "vendor/twbs/bootstrap/less",
                    "destination" : "var/less/bootstrap",
                    "debug": "true"
                }, {
                    "source" : "src/Butopea/ResBundle/Resources/less/bootstrap/*.less",
                    "destination" : "var/less/bootstrap"
                }, {
                    "source" : "/home/butopea/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)`.

    > **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
3. Run Composer: `php composer.phar update`.

Requirements
------------

[](#requirements)

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

Authors
-------

[](#authors)

Abdelkadeur Seifeddine Salah -  -

License
-------

[](#license)

Composer is licensed under the MIT License - see the [LICENSE](./LICENSE) file for details

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~357 days

Recently: every ~536 days

Total

7

Last Release

1620d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e581e6809757fe47c1bd09ca447a17404e57bc71ce51dd552b46927c525833b?d=identicon)[themreza](/maintainers/themreza)

---

Top Contributors

[![sasedev](https://avatars.githubusercontent.com/u/6986611?v=4)](https://github.com/sasedev "sasedev (23 commits)")

---

Tags

composer-pluginRecursive Copyfiles copy

### Embed Badge

![Health badge](/badges/butopea-composer-plugin-filecopier/health.svg)

```
[![Health](https://phpackages.com/badges/butopea-composer-plugin-filecopier/health.svg)](https://phpackages.com/packages/butopea-composer-plugin-filecopier)
```

###  Alternatives

[vaimo/composer-patches

Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level. Optional support for patch versioning, sequencing, custom patch applier configuration and patch command for testing/troubleshooting added patches.

2994.3M14](/packages/vaimo-composer-patches)[mnsami/composer-custom-directory-installer

A composer plugin, to help install packages of different types in custom paths.

1395.0M52](/packages/mnsami-composer-custom-directory-installer)[typisttech/imposter-plugin

Composer plugin that wraps all composer vendor packages inside your own namespace. Intended for WordPress plugins.

158251.0k2](/packages/typisttech-imposter-plugin)[drupal-composer/preserve-paths

Composer plugin for preserving custom paths and supporting nested packages

271.1M5](/packages/drupal-composer-preserve-paths)[arokettu/composer-license-manager

License management plugin for Composer

61207.9k](/packages/arokettu-composer-license-manager)[liborm85/composer-vendor-cleaner

Composer Vendor Cleaner removes unnecessary development files and directories from vendor directory.

35342.7k1](/packages/liborm85-composer-vendor-cleaner)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
