PHPackages                             clean-bandits/single-action-resource-controllers-for-laravel - 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. [Framework](/categories/framework)
4. /
5. clean-bandits/single-action-resource-controllers-for-laravel

ActiveLibrary[Framework](/categories/framework)

clean-bandits/single-action-resource-controllers-for-laravel
============================================================

v1.2.0(1y ago)32.5k↓60.3%MITPHPPHP &gt;=8.2

Since May 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/CleanBandits/single-action-resource-controllers-for-laravel)[ Packagist](https://packagist.org/packages/clean-bandits/single-action-resource-controllers-for-laravel)[ Docs](https://github.com/CleanBandits/single-action-resource-controllers-for-laravel)[ RSS](/packages/clean-bandits-single-action-resource-controllers-for-laravel/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (3)Dependencies (4)Versions (6)Used By (0)

About Single Actions Resource Controllers
=========================================

[](#about-single-actions-resource-controllers)

This package extends Laravel Router with new feature - Route::singleActionResource()
It's combination of [Route::resource](https://laravel.com/docs/11.x/controllers#resource-controllers) together with [Single Action Controllers](https://laravel.com/docs/11.x/controllers#single-action-controllers). If you are interested in small highly cohesive controller classes that follow standard naming convention this package is definitely for you.

How does it work?
-----------------

[](#how-does-it-work)

It's really simple:

- Just add new single action resource route in your routes file, e.g `Route::singleActionResource('photos');`
- Create new [Single Action Controllers](https://laravel.com/docs/11.x/controllers#single-action-controllers) for each action you need, like this:
    [![controllers.png](controllers.png)](controllers.png)
- This will automatically create these routes:
    [![routes.png](routes.png)](routes.png)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require clean-bandits/single-action-resource-controllers-for-laravel
```

Optionally you can publish the config file with:

```
php artisan vendor:publish --provider="CleanBandits\SingleActionResourceControllers\SingleActionResourceControllersProvider" --tag="config"
```

This is the contents of the published configuration file:

```
return [
    /*
     * Specify root namespace where your single action resource controller folder will reside
     */
    'controllers_namespace' => 'App\\Http\\Controllers\\',

    /*
     * This class is responsible for building Resource controllers naming and location.
     * By default they reside inside namespace -> controllers_namespace+resource_name+action,
     * e.g. App\Http\Controllers\Photos\IndexController
     * To take full control of controller namespace creation,
     * you can provide your own class that implements ResourceController
     */
    'resource_controller' => DefaultResourceController::class,
];
```

Testing
-------

[](#testing)

```
composer test
```

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance41

Moderate activity, may be stable

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 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 ~132 days

Total

3

Last Release

498d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/048a1df3558a866fbb1f031a8f8a9d21b783c157440b00aaf1b04980a3aff726?d=identicon)[enduro44](/maintainers/enduro44)

---

Top Contributors

[![enduro44](https://avatars.githubusercontent.com/u/16772656?v=4)](https://github.com/enduro44 "enduro44 (3 commits)")

---

Tags

laravelroutingclean-banditssingle-action-resource-controllers-for-laravel

###  Code Quality

TestsPest

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/clean-bandits-single-action-resource-controllers-for-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/clean-bandits-single-action-resource-controllers-for-laravel/health.svg)](https://phpackages.com/packages/clean-bandits-single-action-resource-controllers-for-laravel)
```

###  Alternatives

[laravel/boost

Laravel Boost accelerates AI-assisted development by providing the essential context and structure that AI needs to generate high-quality, Laravel-specific code.

3.5k21.5M588](/packages/laravel-boost)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.6k29.9M146](/packages/laravel-cashier)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M151](/packages/laravel-mcp)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M131](/packages/laravel-pulse)[laravel/folio

Page based routing for Laravel.

603583.7k33](/packages/laravel-folio)[laravel/wayfinder

Generate TypeScript representations of your Laravel actions and routes.

1.8k8.6M132](/packages/laravel-wayfinder)

PHPackages © 2026

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