PHPackages                             oldy/crud-module - 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. [Admin Panels](/categories/admin)
4. /
5. oldy/crud-module

ActiveLaravel-module[Admin Panels](/categories/admin)

oldy/crud-module
================

Crud module to fast

v0.1(8y ago)034PHPPHP &gt;=7.0.0

Since Feb 23Pushed 8y ago1 watchersCompare

[ Source](https://github.com/oldy777/CRUD-module)[ Packagist](https://packagist.org/packages/oldy/crud-module)[ RSS](/packages/oldy-crud-module/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Crud
====

[](#crud)

Laravel Crud Module

Install
-------

[](#install)

Execute the following command in your terminal

```
composer require oldy/crud-module
```

Or add this line in your composer.json file

```
require": {
...
"oldy/crud-module" : "dev-master"
}
```

And execute the following command in your terminal

```
composer update
```

Usage
-----

[](#usage)

Данный пакет предоставляет общие функции для быстрого создания CRUD на основе модели и формы.

В первую очередь необходимо создать модель. По умолчанию модель будет искаться в каталоге **Entity**, но это расположение можно изменить в конфиге

```
'models_folder' => 'Entities',

```

Далее необходимо создать класс формы для вывода. По умолчанию форма будет искаться в каталоге **Http\\Forms**, это расположение тоже можно поменять в конфиге

```
'forms_folder' => 'Http\\Forms'

```

Небольшой пример клсса формы

```
namespace Modules\Users\Http\Forms;

use Kris\LaravelFormBuilder\Form;
use Modules\Users\Entities\User;

class GroupForm extends Form
{
    public function buildForm()
    {
        $this
            ->add('title', 'text', [
                'rules' => 'required|min:3',
                'label' => 'Название'
            ])
            ->add('text', 'textarea', [
                'label' => 'Описание'
            ])

            ->add('users',  'entity', [
                'label' => 'Пользователи',
                'class' => User::class,
                'multiple' => true,
                'selected' => function ($data) {
                    return $data ? array_pluck($data, 'id') : [];
                },
                'attr' => [
                    'class' => 'multi-select'
                ]
            ])
        ;

    }

}
```

**Важно заметить:** что бы модели и формы подгружались автоматически они должны именоваться следующим образом.

- Название модели - это название контроллера в единственном числе
- Название формы - это Название контроллера в единственном числе + постфикс Form. Например `GroupForm`

Теперь создаем контроллер. Класс контроллера наследуются от родительского класса `CrudController`

```
namespace Modules\Users\Http\Controllers;

use Modules\Crud\Http\Controllers\CrudController;

class GroupsController extends CrudController
{
    protected $titles = ['Группы доступа', 'группы'];

    protected $relations = ['users'];

}
```

`$titles` - содержит массив названий, 1 - для списка, 2- для добавления/редактирования

`$relations` - содержит массив со связями, которые необходимо подгружать/обновлять

После этого прописываем роут

```
Route::resource('/group', Modules\Users\Http\Controllers\GroupsController);
```

И CRUD готов.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

3003d ago

### Community

Maintainers

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

---

Top Contributors

[![oldy777](https://avatars.githubusercontent.com/u/913048?v=4)](https://github.com/oldy777 "oldy777 (3 commits)")

---

Tags

crudlaravel

### Embed Badge

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

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

###  Alternatives

[filament/spatie-laravel-media-library-plugin

Filament support for `spatie/laravel-medialibrary`.

1764.8M125](/packages/filament-spatie-laravel-media-library-plugin)[filament/infolists

Easily add beautiful read-only infolists to any Livewire component.

1220.8M36](/packages/filament-infolists)[resma/filament-awin-theme

A modern, responsive, and customizable theme for FilamentPHP, designed to elevate your admin panel with a sleek interface and seamless user experience.

1714.6k](/packages/resma-filament-awin-theme)[provision/administration

Laravel administration

113.7k2](/packages/provision-administration)

PHPackages © 2026

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