PHPackages                             efrontsa/easy\_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. [Utility &amp; Helpers](/categories/utility)
4. /
5. efrontsa/easy\_crud

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

efrontsa/easy\_crud
===================

Allow you to create a simple CRUD controller

1.2(9y ago)221MITPHP

Since Nov 15Pushed 9y ago1 watchersCompare

[ Source](https://github.com/efrontsa/easy_crud)[ Packagist](https://packagist.org/packages/efrontsa/easy_crud)[ RSS](/packages/efrontsa-easy-crud/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (4)Used By (0)

Easy CRUD
=========

[](#easy-crud)

Allow you to create a simple CRUD controller

\##Installation

```
composer require efrontsa/easy_crud

```

After install this package you have to set the service provider on your config/app.php file

```
EFrontSA\EasyCRUD\ServiceProvider::class,

```

Then you just need to publish files ! Copy and paste it

```
php artisan vendor:publish --provider="EFrontSA\EasyCRUD\ServiceProvider"

```

That's it!

\#How to use

\##Create Controller

- you have to use BasicCRUDTrait trait in your controller and define some variables in your constructor
- Inject you model into your constructor like `City`
- change `$this->view` to where your views are located. the trait look for (index, create, edit) views.

Ex. :

```
class CityController extends Controller
{
    use \EFrontSA\EasyCRUD\Models\BasicCRUDTrait;

    public function __construct(City $model) // You can change the model type hint to update the model in this controller
    {
        $this->model = $model;
        $this->view = 'cities'; // where the views located. the trait look for (index, create, edit) views.

        app()->bind(CRUDRequest::class, CityRequest::class); // bind your request with CRUDRequest interface
    }
}

```

\##Create Form Request

Your form request should implement this interface `\EFrontSA\EasyCRUD\Requests\CRUDRequest`

```
class CityRequest extends Request implements CRUDRequest{

}

```

\##Create Views

create your views (index, create, edit).

- `edit` view will receive `$object` variable as the result of model query.
- `index` view will receive `$objects` variable as the result of model query.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Total

3

Last Release

3515d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/545ac5f8546ec191c3b59dba187745f010f346788c48518282844b8036fda9df?d=identicon)[efrontsa](/maintainers/efrontsa)

---

Top Contributors

[![algethamy](https://avatars.githubusercontent.com/u/9952761?v=4)](https://github.com/algethamy "algethamy (2 commits)")

### Embed Badge

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

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

###  Alternatives

[lizards-and-pumpkins/catalog

Lizards &amp; Pumpkins catalog module

554.0k5](/packages/lizards-and-pumpkins-catalog)

PHPackages © 2026

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