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 3w 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 47% 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

2397d 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

[phpro/grumphp

A composer plugin that enables source code quality checks.

4.3k16.7M1.0k](/packages/phpro-grumphp)[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[altis/core

Core module for Altis

19228.0k3](/packages/altis-core)[symfony/asset-mapper

Maps directories of assets &amp; makes them available in a public directory with versioned filenames.

1678.8M237](/packages/symfony-asset-mapper)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.1k17.8k](/packages/prestashop-prestashop)[pocketmine/pocketmine-mp

A server software for Minecraft: Bedrock Edition written in PHP

3.5k78.3k91](/packages/pocketmine-pocketmine-mp)

PHPackages © 2026

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