PHPackages                             markei/filesystemoperations - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. markei/filesystemoperations

ActiveLibrary[File &amp; Storage](/categories/file-storage)

markei/filesystemoperations
===========================

Add filesystem operations on Composer events

v1.2.0(4y ago)015.0k↓50%11MITPHP

Since Oct 18Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Markei/FileSystemOperations)[ Packagist](https://packagist.org/packages/markei/filesystemoperations)[ RSS](/packages/markei-filesystemoperations/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (1)

Markei FileSystemOperations
===========================

[](#markei-filesystemoperations)

Add "Markei\\FileSystemOperations\\Composer::run" to a script section.

In the extra section add an array with the operations. Each operation is an array, the first item is the method of a [Symfony Filesystem class](http://symfony.com/doc/current/components/filesystem.html), the next items are used as parameters.

Example: Setup WordPress core, themes and plugins via composer.

```
{
    "name": "my-company/my-wordpress-site",
    "autoload": {
        "psr-4": { "": "src/" }
    },
    "repositories": [
        {
            "type":"composer",
            "url":"https://wpackagist.org"
        }
    ],
    "require": {
        "johnpbloch/wordpress": "4.6.1",
        "wpackagist-plugin/debug-bar" : "~0.8",
        "markei/filesystemoperations" : "dev-default",
    },
    "scripts": {
        "post-install-cmd": ["@wordpress-install"],
        "post-update-cmd": ["@wordpress-install"],
        "wordpress-install": ["Markei\\FileSystemOperations\\Composer::run"]
    },
    "extra": {
        "wordpress-install-dir": "vendor/johnpbloch/wordpress",
        "installer-paths": {
            "wwwroot/wordpress/wp-content/plugins/{$name}": ["type:wordpress-plugin"],
            "wwwroot/wordpress/wp-content/themes/{$name}": ["type:wordpress-theme"]
        },
        "markei-filesystemoperations": [
            ["mkdir", "wwwroot/wordpress"],
            ["mirror", "vendor/johnpbloch/wordpress/wp-admin", "wwwroot/wordpress/wp-admin", null, {"delete": true}],
            ["mirror", "vendor/johnpbloch/wordpress/wp-includes", "wwwroot/wordpress/wp-includes", null, {"delete": true}],
            ["copy", "vendor/johnpbloch/wordpress/index.php", "wwwroot/wordpress/index.php", true],
            ["copy", "vendor/johnpbloch/wordpress/wp-activate.php", "wwwroot/wordpress/wp-activate.php", true],
            ["copy", "vendor/johnpbloch/wordpress/wp-blog-header.php", "wwwroot/wordpress/wp-blog-header.php", true],
            ["copy", "vendor/johnpbloch/wordpress/wp-comments-post.php", "wwwroot/wordpress/wp-comments-post.php", true],
            ["copy", "vendor/johnpbloch/wordpress/wp-cron.php", "wwwroot/wordpress/wp-cron.php", true],
            ["copy", "vendor/johnpbloch/wordpress/wp-links-opml.php", "wwwroot/wordpress/wp-links-opml.php", true],
            ["copy", "vendor/johnpbloch/wordpress/wp-load.php", "wwwroot/wordpress/wp-load.php", true],
            ["copy", "vendor/johnpbloch/wordpress/wp-login.php", "wwwroot/wordpress/wp-login.php", true],
            ["copy", "vendor/johnpbloch/wordpress/wp-mail.php", "wwwroot/wordpress/wp-mail.php", true],
            ["copy", "vendor/johnpbloch/wordpress/wp-settings.php", "wwwroot/wordpress/wp-settings.php", true],
            ["copy", "vendor/johnpbloch/wordpress/wp-signup.php", "wwwroot/wordpress/wp-signup.php", true],
            ["copy", "vendor/johnpbloch/wordpress/wp-trackback.php", "wwwroot/wordpress/wp-trackback.php", true],
            ["copy", "vendor/johnpbloch/wordpress/xmlrpc.php", "wwwroot/wordpress/xmlrpc.php", true],
            ["copy", "vendor/johnpbloch/wordpress/license.txt", "wwwroot/wordpress/license.txt", true]
        ]
    }
}

```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 80% 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 ~1018 days

Total

3

Last Release

1462d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b5dd1f24f7aa6171a6aba04306eeab4cf4f18fd7d4ca43e9439845415c7c9ba8?d=identicon)[markei](/maintainers/markei)

---

Top Contributors

[![maartendekeizer](https://avatars.githubusercontent.com/u/1061334?v=4)](https://github.com/maartendekeizer "maartendekeizer (4 commits)")[![rjzondervan](https://avatars.githubusercontent.com/u/10433082?v=4)](https://github.com/rjzondervan "rjzondervan (1 commits)")

### Embed Badge

![Health badge](/badges/markei-filesystemoperations/health.svg)

```
[![Health](https://phpackages.com/badges/markei-filesystemoperations/health.svg)](https://phpackages.com/packages/markei-filesystemoperations)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k511.3M2.2k](/packages/aws-aws-sdk-php)[terminal42/contao-fineuploader

FineUploader bundle for Contao Open Source CMS

2052.9k4](/packages/terminal42-contao-fineuploader)

PHPackages © 2026

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