# lorisleiva/laravel-actions

⚡️ Laravel components that take care of one specific task

Repository: https://github.com/lorisleiva/laravel-actions
Canonical: https://ross.abutalabs.com/products/laravel-actions
Homepage: https://laravelactions.com
Language: PHP
License: MIT
License Family: permissive
Last push: 2026-08-25T14:19:58+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 87, longevity 100
- inputs: {"age_days": 2716, "days_push": 8, "days_rel": 8, "gap_med": 46, "n_releases_24m": 10}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2867, forks 142 (observed 2026-08-28T04:07:26.733188+00:00)

## What it is
A Laravel package that lets developers encapsulate a single task in one PHP class and run it as a controller, job, event listener, command, or plain object. It reorganizes application logic around actions rather than framework-specific components like controllers and FormRequests.

## Use cases
- run the same business logic as a controller, job, and command
- organize laravel app logic into single-task classes
- dispatch laravel actions as asynchronous jobs
- register a class as an invokable controller route
- listen to laravel events with an action class
- mock and test laravel actions
- add validation to action controllers

## When to choose
- you build Laravel apps and want action-oriented architecture
- you need one class reusable across HTTP, queues, events, and CLI
- you want to reduce boilerplate controllers, FormRequests, and jobs

## When to avoid
- you don't use Laravel or PHP
- you prefer conventional MVC separation of controllers and services
- your team relies on framework-specific patterns already

## Facets
- artifact type: library
- maturity: stable
- function: web-framework, middleware, routing, cli, testing
- domain: web-development, backend, developer-tools
- platform: php, cli
- tags: laravel, actions, single-task-classes, controllers, jobs, event-listeners, artisan-commands, php, automation, web-server

## Member repositories
- lorisleiva/laravel-actions (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:26.733188+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:36:05.905969+00:00, confidence not recorded.
  - readme: https://github.com/lorisleiva/laravel-actions (fetched 2026-08-28T04:07:26.733188+00:00, sha c6deaa493677)
  - homepage: https://laravelactions.com (fetched 2026-08-29T09:51:48.071396+00:00, sha 537ec9bfdfef)
  - site_page: https://www.laravelactions.com/2.x/installation.html (fetched 2026-08-29T09:51:48.080496+00:00, sha 31f8c09f5a8b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
