PHPackages                             reggiebeatz71/resource-controller - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. reggiebeatz71/resource-controller

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

reggiebeatz71/resource-controller
=================================

010PHP

Since Jun 6Pushed 8y ago1 watchersCompare

[ Source](https://github.com/reggiebeatz71/resource-controller)[ Packagist](https://packagist.org/packages/reggiebeatz71/resource-controller)[ RSS](/packages/reggiebeatz71-resource-controller/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Resource Controller
===================

[](#resource-controller)

Description
-----------

[](#description)

This package helps to simplify the creation of api resource controllers in Laravel.

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

[](#installation)

Require resource controller via

```
composer require reggiebeatz71/resource-controller

```

Usage
-----

[](#usage)

### Step 1

[](#step-1)

Create a new controller

```
php artisan make:controller TestController

```

### Step 2

[](#step-2)

Change the controller's default class inheritance form Resource Controller

```
namespace App\Http\Controllers;

use Reggiebeatz71\ResourceController\ResourceController;

use Illuminate\Http\Request;

class TestController extends ResourceController
```

### Step 3 (Almost done)

[](#step-3-almost-done)

Implement the model, storeRules and updateRules methods in the controller

```
    protected function model () {
        return // Model class goes here;
    }

    protected function storeRules () {
        return [
            // laravel validatioin rules goes here
        ];
    }

    protected function updateRules () {
        return [
            // laravel validatioin rules goes here
        ];
    }
```

### Step 4 (Finishing touch)

[](#step-4-finishing-touch)

Add a resource route in your api route

```
Route::apiResource('test', 'TestController');
```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2e30c581dd89a22f5645b0d7042f4c96249513c9e155c4fd83a0a714efb4e6b6?d=identicon)[reggiebeatz71](/maintainers/reggiebeatz71)

### Embed Badge

![Health badge](/badges/reggiebeatz71-resource-controller/health.svg)

```
[![Health](https://phpackages.com/badges/reggiebeatz71-resource-controller/health.svg)](https://phpackages.com/packages/reggiebeatz71-resource-controller)
```

###  Alternatives

[geshi/geshi

Generic Syntax Highlighter

1731.1M13](/packages/geshi-geshi)[verbb/formie

The most user-friendly forms plugin for Craft.

100387.6k58](/packages/verbb-formie)[bcremer/line-reader

Read large files line by line in a memory efficient (constant) way.

311.7M4](/packages/bcremer-line-reader)[synolia/sylius-scheduler-command-plugin

Scheduler Command Plugin.

35380.8k](/packages/synolia-sylius-scheduler-command-plugin)

PHPackages © 2026

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