PHPackages                             kejojedi/crudify - 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. kejojedi/crudify

ActiveLibrary[Framework](/categories/framework)

kejojedi/crudify
================

Laravel 7 CRUD app scaffolding &amp; generator.

1.3.11(6y ago)491.6k↓100%10[2 issues](https://github.com/kejojedi/crudify/issues)MITPHPCI failing

Since Apr 3Pushed 6y ago5 watchersCompare

[ Source](https://github.com/kejojedi/crudify)[ Packagist](https://packagist.org/packages/kejojedi/crudify)[ Docs](https://github.com/kejojedi/crudify)[ RSS](/packages/kejojedi-crudify/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (24)Used By (0)

[![Imgur](https://camo.githubusercontent.com/16226046b480c9f2a0688adaf0e4d06640cdecda1ab80be2d3d51113ac94e722/68747470733a2f2f692e696d6775722e636f6d2f304c614b5a514b2e706e67)](https://camo.githubusercontent.com/16226046b480c9f2a0688adaf0e4d06640cdecda1ab80be2d3d51113ac94e722/68747470733a2f2f692e696d6775722e636f6d2f304c614b5a514b2e706e67)

Crudify
=======

[](#crudify)

Crudify is a Laravel 7 package which includes sensible CRUD app scaffolding and a generator to make your life easier. It automates initial CRUD app setup with the `crudify:install` command, and generates CRUD resource files for you with the `crudify:generate` command. It also includes form components to make creating forms a breeze.

It is configured to work well with PHPStorm, Valet, and Laragon, among others. **This package requires Node.js to be installed in order to run `npm` commands.**

Useful links:

- Support: [GitHub Issues](https://github.com/kejojedi/crudify/issues)
- Contribute: [GitHub Pulls](https://github.com/kejojedi/crudify/pulls)
- Donate: [PayPal](https://www.paypal.com/paypalme2/kjjdion)

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

[](#installation)

Install Laravel:

```
laravel new app

```

Configure `.env` file:

```
APP_NAME=App
APP_URL=http://app.test
DB_DATABASE=app
MAIL_USERNAME=mailtrap_username
MAIL_PASSWORD=mailtrap_password
MAIL_FROM_ADDRESS=info@app.test

```

Require Crudify:

```
composer require kejojedi/crudify

```

Install Crudify:

```
php artisan crudify:install

```

Visit your app URL and login using:

```
Email: admin@example.com
Password: password

```

The `AdminUserSeeder` call can be removed from your `DatabaseSeeder` any time.

Generating CRUD
---------------

[](#generating-crud)

Run `crudify:generate` for a new model:

```
php artisan crudify:generate Model

```

This will generate:

- Controller
- Datatable
- Form Request
- Model
- Factory
- Migration
- Seeder
- View Files
- Navbar Link
- Routes

Don't forget to migrate after updating the new migration file.

**Tip: use the `--force` in order to replace existing generated files e.g. `php artisan crudify:generate Model --force`**

Datatables
----------

[](#datatables)

Crudify includes a wrapper for [yajra/laravel-datatables-html](https://github.com/yajra/laravel-datatables-html) to make building datatables nice and declarative. Generated model datatable classes are located in `app\Http\Datatables`.

Declaring [columns](https://yajrabox.com/docs/laravel-datatables/master/html-builder-column-builder):

```
protected function columns()
{
    return [
        Column::make('id'),
        Column::make('name'),
        Column::make('created_at'),
        Column::make('updated_at'),
    ];
}

```

Different ways of defining default sort order:

```
protected $order_by = 'id'; // sorts by id, ascending
protected $order_by = ['created_at', 'desc']; // sorts by created_at, descending

protected function orderBy()
{
    return 'id'; // sorts by id, ascending
}

protected function orderBy()
{
    return ['created_at', 'desc']; // sorts by created_at, descending
}

```

**Note: a users per-page entries &amp; sorting preferences are saved per-table in their browser indefinitely, so this will only set the initial default order.**

Example of adding methods to the datatables html builder:

```
protected function htmlMethods(Builder &$html)
{
    $html->ajax([
        'url' => route('users.index'),
        'type' => 'GET',
        'data' => 'function(d) { d.key = "value"; }',
    ]);
}

```

Example of adding methods to the datatables json builder:

```
protected function jsonMethods(DataTableAbstract &$datatables)
{
    $datatables->editColumn('name', function(User $user) {
        return 'Hi ' . $user->name . '!';
    });
}

```

**Tip: If you don't want a datatable to have an actions column, simply remove the `actions()` method entirely.**

Form Components
---------------

[](#form-components)

Crudify offers simple form components to make building forms fast &amp; easy. See below for minimal and complete examples of each component.

Input:

```

```

Textarea:

```

```

Select:

```

```

**Note: if the options are an associative array, the keys are used as the labels and the values as the values. For sequential arrays, the values are used for both the labels and values.**

File:

```

```

Checkbox:

```

```

**Note: checkbox attributes should have `boolean` migration columns.**

Checkboxes:

```

```

**Note: checkboxes attributes should be cast to `array` with `text` migration columns.**

Radios:

```

```

**Tip: you can determine if the fields are showing on the `create` or `edit` page by checking `isset($model)` (e.g. `isset($car)`). If a `$model` is set, it means the user is on the edit page.**

Packages Used
-------------

[](#packages-used)

Composer packages:

- [barryvdh/laravel-ide-helper](https://github.com/barryvdh/laravel-ide-helper)
- [laravel/ui](https://github.com/laravel/ui)
- [yajra/laravel-datatables-html](https://github.com/yajra/laravel-datatables-html)
- [yajra/laravel-datatables-oracle](https://github.com/yajra/laravel-datatables)

NPM packages:

- [@fortawesome/fontawesome-free](https://www.npmjs.com/package/@fortawesome/fontawesome-free)
- [browser-sync](https://www.npmjs.com/package/browser-sync)
- [datatables.net-bs4](https://www.npmjs.com/package/datatables.net-bs4)
- [datatables.net-responsive-bs4](https://www.npmjs.com/package/datatables.net-responsive-bs4)

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community13

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

23

Last Release

2224d ago

### Community

Maintainers

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

---

Top Contributors

[![kejojedi](https://avatars.githubusercontent.com/u/62818006?v=4)](https://github.com/kejojedi "kejojedi (23 commits)")

### Embed Badge

![Health badge](/badges/kejojedi-crudify/health.svg)

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

###  Alternatives

[bagisto/bagisto

Bagisto Laravel E-Commerce

26.2k161.6k7](/packages/bagisto-bagisto)[krayin/laravel-crm

Krayin CRM

22.0k32.8k1](/packages/krayin-laravel-crm)[unopim/unopim

UnoPim Laravel PIM

9.4k1.8k](/packages/unopim-unopim)[nasirkhan/module-manager

Module Manager &amp; Generator for Laravel Starter Kit (https://github.com/nasirkhan/laravel-starter)

1039.7k2](/packages/nasirkhan-module-manager)[eveseat/web

SeAT Web Interface

2723.2k135](/packages/eveseat-web)

PHPackages © 2026

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