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

ActiveLibrary[Framework](/categories/framework)

csgt/crud
=========

CRUD implementation

v8.0.16(3mo ago)17.4k61PHPPHP &gt;=7.2

Since Nov 9Pushed 1mo ago3 watchersCompare

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

READMEChangelogDependenciesVersions (149)Used By (1)

Crud
====

[](#crud)

This package is used to generate cruds.

VersionBSDatatablesMethodsViews engineCryptConstructorUTCValidation5.531.xesbladeyesyesnoformvaldiation5.641.xesbladeyesyesnoformvaldiation5.941.xesbladeyesnonolaravel6.041.xenbladeyesyesnoformvaldiation7.0 Beta41.xenvueyesyesnoformvaldiation8.04/52.xenbladenonoyeslaravelUsage
-----

[](#usage)

To create a new CRUD, you may use the `php artisan make:crud ExampleController` command. This will set up a boilerplate

```
public function setup(Request $request)
    {
        //Required. Set the model to render
        $this->setModel(new Model);
        $this->setTitle('Title');
        //This will render an extra button next to the Add button
        $this->setExtraAction(['url' => '/module/import', 'title' => 'Importar']);
        //Render the breadcrumb according to BS version
        $this->setBreadcrumb([
            ['url' => '', 'title' => 'Catálogos', 'icon' => 'fa fa-book'],
            ['url' => '', 'title' => 'Titulo', 'icon' => 'fa fa-university'],
        ]);
        //Set columns to show
        $this->setField(['name' => 'Nombre', 'field' => 'name']);
        $this->setField(['name' => 'Descripción', 'field' => 'descripcion']);

        //Set combobox field
        $this->setField([
            'name'       => 'Protocol',
            'field'      => 'protocol_id',
            'type'       => 'combobox',
            'collection' => Protocol::select('id', 'name')->get(),
        ]);

        //Campo Multi:
        $this->setField(['name' => 'Requirements', 'type' => 'multi', 'field' => 'relationName']);
        requiere en el modelo, crear la relation belongsToMany relationName
        requiere en el modelo, crear el método fetchRelationName
        opcional, si la columna para mostrar en el show, no se llama 'name'
        crear el método fetchRelationNameColumn y retorne el campo deseado.

        //Set hidden variables to append to inserts and updates
        $this->setHidden(['field' => 'client_id', 'value' => 1]);

        //Set extra button for each row in the Crud
        $this->setExtraButton([
            'url'    => '/configuration/sensors?gateway_id={id}',
            'icon'   => 'fa fa-thermometer',
            'title'  => 'Sensors',
            'class'  => 'btn-warning',
        ]);

        //Set permissions using the ['edit' => true, 'create' => true, 'delete' => true] syntax
        $this->setPermissions(Cancerbero::crudPermissions('module'));
    }

```

Upgrade from version 6 to version 8 or from 5.6 to 5.9
------------------------------------------------------

[](#upgrade-from-version-6-to-version-8-or-from-56-to-59)

Add the following includes:

```
use Illuminate\Http\Request;
use Csgt\Cancerbero\Facades\Cancerbero;

```

Rename the `__construct` method to:

```
public function setup(Request $request)

```

Call the `setPermissions` directly

```
$this->setPermissions(Cancerbero::crudPermissions('module'));

```

Remove all references to `Crypt::encrypt` and `Crypt::decrypt` if any methos were overriden. Remove all references to `validationRulesMessages` or `reglasmensaje`

Remove the enclosing middleware. It is now unnecessary.

```
$this->middleware(function ($request, $next) {

    return $next($request);
});

```

###  Health Score

55

—

FairBetter than 97% of packages

Maintenance85

Actively maintained with recent releases

Popularity27

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 72.7% 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 ~23 days

Recently: every ~10 days

Total

147

Last Release

57d ago

Major Versions

v5.5.37 → v8.0.72025-04-21

v5.0.16 → v8.0.82025-07-23

5.0.x-dev → 6.0.x-dev2025-09-10

v6.0.32 → v8.0.92025-10-03

v5.6.23 → v8.0.102026-03-02

PHP version history (3 changes)5.0.1PHP &gt;=5.3.0

v6.0.0PHP &gt;=7.2

v4.0.0PHP &gt;=5.4.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7926376?v=4)[csgt](/maintainers/csgt)[@csgt](https://github.com/csgt)

---

Top Contributors

[![jgalindosl](https://avatars.githubusercontent.com/u/66330140?v=4)](https://github.com/jgalindosl "jgalindosl (64 commits)")[![hlca](https://avatars.githubusercontent.com/u/1301913?v=4)](https://github.com/hlca "hlca (19 commits)")[![csgt](https://avatars.githubusercontent.com/u/7926376?v=4)](https://github.com/csgt "csgt (4 commits)")[![jperez2511](https://avatars.githubusercontent.com/u/4227587?v=4)](https://github.com/jperez2511 "jperez2511 (1 commits)")

### Embed Badge

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

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

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M299](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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