PHPackages                             sasedev/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. sasedev/composer-plugin-filecopier

ActiveComposer-plugin

sasedev/composer-plugin-filecopier
==================================

Composer Plugin Mass Files Copier

1.1.0(10y ago)21.4k6[1 PRs](https://github.com/sasedev/composer-plugin-filecopier/pulls)MITPHPPHP &gt;=5.5

Since Jan 18Pushed 9y ago1 watchersCompare

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

READMEChangelog (4)Dependencies (2)Versions (5)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

    ```
    {
        "require": {
            "sasedev/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/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)`.

    > **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

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

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 ~1 days

Total

4

Last Release

3760d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6805fc8b10c4f278d79ee357b979c93373c65dbabed205527fab26b6e13c99f7?d=identicon)[sasedev](/maintainers/sasedev)

---

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/sasedev-composer-plugin-filecopier/health.svg)

```
[![Health](https://phpackages.com/badges/sasedev-composer-plugin-filecopier/health.svg)](https://phpackages.com/packages/sasedev-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)[wecodemore/wpstarter

Composer plugin to easily build WordPress websites entirely managed via Composer.

253195.2k5](/packages/wecodemore-wpstarter)[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)

PHPackages © 2026

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