Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Package Actions Laravel Package

dreimus/package-actions

Laravel package for structuring reusable “actions” as self-contained classes. Helps keep controllers thin by moving business logic into invokable action objects, with clear inputs/outputs and simple execution patterns for consistent app workflows.

View on GitHub
Deep Wiki
Context7

Package actions

add copy/create/remove/symlink per package actions

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

Installation

composer require metabolism/package-actions

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

 destination : permissions

destination is relative to the composer.json file

permissions use umask, only 3 last digits

Copy / Symlink

 source : destination

source is relative to the package folder

destination is relative to the composer.json file

Remove

 [destination]

destination is relative to the composer.json file

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor