PHPackages                             dreimus/package-actions - 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. dreimus/package-actions

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

dreimus/package-actions
=======================

Allow file and folder actions uppon package installation or update

1.1.1(6y ago)01AGPL-3.0PHP

Since May 19Pushed 5y agoCompare

[ Source](https://github.com/Dreimus/package-actions)[ Packagist](https://packagist.org/packages/dreimus/package-actions)[ RSS](/packages/dreimus-package-actions/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (3)Versions (8)Used By (0)

Package actions
===============

[](#package-actions)

add copy/create/remove/symlink per package actions

available for both `post-package-install` and `post-package-update`

Installation
------------

[](#installation)

```
composer require metabolism/package-actions

```

Example
-------

[](#example)

```
"extra": {
    "post-package-install": {
        "create": {
            "vendor/package-name": {
                "web/uploads": 777,
                "web/download": 655
        },
        "copy": {
            "vendor/package-name": {
                "folder/file.php": "web/myfile.php",
            }
        },
        "symlink": {
            "vendor/package-name": {
                "folder/file.php": "web/myfile.php",
            }
        }
        "remove": {
            "vendor/package-name": ["web/myfile.php"]
            }
        }
    }
}

```

### Create

[](#create)

```
 destination : permissions

```

destination is relative to the composer.json file

permissions use umask, only 3 last digits

### Copy / Symlink

[](#copy--symlink)

```
 source : destination

```

source is relative to the package folder

destination is relative to the composer.json file

### Remove

[](#remove)

```
 [destination]

```

destination is relative to the composer.json file

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity68

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

Recently: every ~142 days

Total

6

Last Release

2347d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2658244?v=4)[Paul Coudeville](/maintainers/dreimus)[@Dreimus](https://github.com/Dreimus)

---

Top Contributors

[![Dreimus](https://avatars.githubusercontent.com/u/2658244?v=4)](https://github.com/Dreimus "Dreimus (2 commits)")

### Embed Badge

![Health badge](/badges/dreimus-package-actions/health.svg)

```
[![Health](https://phpackages.com/badges/dreimus-package-actions/health.svg)](https://phpackages.com/packages/dreimus-package-actions)
```

###  Alternatives

[rainlab/blog-plugin

Blog plugin for October CMS

17257.7k](/packages/rainlab-blog-plugin)[php-composter/php-composter

Git Hooks Management through Composer.

10525.1k11](/packages/php-composter-php-composter)[uma/composer-psysh

No-frills PsySH-Composer plugin

183.2k](/packages/uma-composer-psysh)

PHPackages © 2026

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