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 yesterday

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 62% 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

3380d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16877448?v=4)[Tom Sinclair](/maintainers/sinclairt)[@sinclairt](https://github.com/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

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[moonshine/moonshine

Laravel administration panel

1.3k239.9k76](/packages/moonshine-moonshine)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

721160.4k12](/packages/tallstackui-tallstackui)[illuminate/console

The Illuminate Console package.

13045.3M6.2k](/packages/illuminate-console)[illuminate/pipeline

The Illuminate Pipeline package.

9348.3M268](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10533.5M996](/packages/illuminate-pagination)

PHPackages © 2026

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