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.
.env files or database schemas).Adopt if:
Look Elsewhere if:
post-install-cmd or post-update-cmd).spatie/package-tools).For Executives: "This package lets us automate complex setup tasks during Laravel/PHP package installation—think of it as ‘plug-and-play’ for our ecosystem. For example, when a developer installs our [Product X] package, it could automatically generate config files, set up database migrations, or copy critical assets—saving them hours of manual work. This reduces support tickets, speeds up onboarding, and unlocks new revenue streams (e.g., premium features with one-click activation). The trade-off is minimal: a small Composer plugin with negligible overhead, but massive DX wins."
For Engineering:
*"We’re proposing a lightweight Composer plugin to handle post-install file/folder actions (e.g., copying config/[package].php, creating directories, or setting permissions). This replaces ad-hoc scripts or manual steps in our packages. Benefits:
post-install-cmd hacks.spatie/package-tools if needed."*How can I help you explore Laravel packages today?