PHPackages                             sinclairt/crud-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. sinclairt/crud-controller

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

sinclairt/crud-controller
=========================

Stop repeating yourself in controllers

1.1.14(9y ago)0521MITPHP

Since Jan 12Pushed 9y agoCompare

[ Source](https://github.com/sinclairt/crud-controller)[ Packagist](https://packagist.org/packages/sinclairt/crud-controller)[ RSS](/packages/sinclairt-crud-controller/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (10)Versions (15)Used By (1)

Crud Controller
===============

[](#crud-controller)

The Crud Controller is built to minimise the amount of code you need to write to get a resource off the ground. It is coupled with the Magic Views package which gets the views for these methods created in a cinch.

### Installation

[](#installation)

` composer require sinclairt/crud-controller`

`composer install`

Add the service provider to your `app/config`

```
Sinclair\CrudController\Providers\CrudControllerServiceProvider::class
```

`composer dump-autoload`

### Usage

[](#usage)

All you need to do is create a controller and use the `Sinclair\CrudController\Traits\CrudController` trait, and ensure the `setUp` method is called inside your construct and you're good to go!

#### Repositories

[](#repositories)

The repository should extend `Sinclair\Repository\Repositories\Repository`, but will at least need to implement `Sinclair\Repository\Contracts\Repository`.

All the methods inside the repository use methods from the `Illuminate\Database\Eloquent\Model` class, so, if you are going to use something other than this in your repository, make sure you implement `Sinclair\Repository\Contracts\Repository` and implement the methods as necessary.

### Magic Views

[](#magic-views)

Please refer to the documentation for Magic Views for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 71.4% 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 ~34 days

Recently: every ~66 days

Total

14

Last Release

3334d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a0dc010eef4e76d1eb705b4f2257422302ada2164add753976f7998d9203b19a?d=identicon)[sinclairt](/maintainers/sinclairt)

---

Top Contributors

[![sinclairt](https://avatars.githubusercontent.com/u/16877448?v=4)](https://github.com/sinclairt "sinclairt (5 commits)")[![tom-sinclair](https://avatars.githubusercontent.com/u/23167798?v=4)](https://github.com/tom-sinclair "tom-sinclair (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sinclairt-crud-controller/health.svg)

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

###  Alternatives

[akaunting/laravel-money

Currency formatting and conversion package for Laravel

7825.3M18](/packages/akaunting-laravel-money)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[illuminate/broadcasting

The Illuminate Broadcasting package.

7126.5M178](/packages/illuminate-broadcasting)[illuminate/redis

The Illuminate Redis package.

8314.0M314](/packages/illuminate-redis)

PHPackages © 2026

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