Weave 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.
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator