PHPackages                             sreichel/composer-plugin-file-copy - 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. sreichel/composer-plugin-file-copy

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

sreichel/composer-plugin-file-copy
==================================

Composer Plugin Mass Files Copy

v1.2.0(1y ago)21.9k↓19%MITPHPPHP &gt;=7.4

Since Nov 16Pushed 1y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (3)Versions (4)Used By (0)

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

    ```
    composer require sreichel/composer-plugin-file-copy
    ```

    ```
    {
        "require": {
            "sreichel/composer-plugin-file-copy": "^1.0.0"
        }
    }
    ```
2. In your composer.json project's file add the config in the extra element

    ```
    composer config --json --merge extra.file-copy '[{"source": "vendor/dir", "target": "lib/vendor", "debug": true}]'
    ```

    ```
    {
        "extra": {
            "file-copy" : [
                {
                    "source": "vendor/dir",
                    "target": "lib/vendor",
                    "debug": true
                }
            ]
        }
    }
    ```

    or

    ```
    {
        "extra": {
            "file-copy" : [
                {
                    "source": "vendor/dir",
                    "target": "lib/vendor",
                    "debug": true
                }, {
                    "source": "src/Some/Bundle/less/bootstrap/*.less",
                    "target": "var/less/bootstrap"
                }, {
                    "source": "/home/username/Documents/*.{js,css}",
                    "target": "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

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

[](#requirements)

PHP 7.4 or above

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

Maintenance38

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 53.1% 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 ~185 days

Total

3

Last Release

538d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5022236?v=4)[Sven Reichel](/maintainers/sreichel)[@sreichel](https://github.com/sreichel)

---

Top Contributors

[![sreichel](https://avatars.githubusercontent.com/u/5022236?v=4)](https://github.com/sreichel "sreichel (26 commits)")[![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/sreichel-composer-plugin-file-copy/health.svg)

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

###  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.3M16](/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)
