execut/yii2-crud Yii2 object for fasted configuration CRUD navigation and actions for models without copy-paste or CRUD generators

crud

Yii2 CRUD

It's package for simple creating CRUD from configuring navigation to required controller actions in 3 steps without copy-paste or CRUD generators.

For license information check the LICENSE-file.

English documentation is at docs/guide/README.md.

Русская документация здесь docs/guide-ru/README.md.

Latest Stable Version Total Downloads Build Status

Installation

The preferred way to install this extension is through composer.

Install

Either run

$ php composer.phar require execut/yii2-crud "dev-master"

or add

"execut/yii2-crud": "dev-master"

to the require section of your composer.json file.

Add bootstrap to your application config:

return [
    'bootstrap' => [
        'yii2-crud' => [
            'class' => \execut\crud\Bootstrap::class,
        ]
    ]
];

Usage

Let's say you need to make a CRUD for the model execut\books\models\Book To do this, just add the following lines to controller:

namespace execut\books\controllers;

use execut\books\models\Book;
use execut\crud\params\Crud;
use yii\web\Controller;
class BooksController extends Controller
{
    public function actions()
    {
        $crud = new Crud([
            'modelClass' => Book::class,
            'modelName' => Book::MODEL_NAME,
        ]);
        return $crud->actions();
    }
}

As a result, a full-fledged CRUD will appear for this model: Books CRUD list Books CRUD form

For more details please refer to the documentation docs/guide/README.md.

Для более подробной информации обращайтесь к документации docs/guide-ru/README.md.

Changelog

eXeCUT Yii 2 CRUD extension changelog

0.7.3 2020-08-24

  • New bootstrap principe

0.7.2 2020-08-19

  • Fixed readme links

0.7.1 2020-08-19

  • New folders structure
  • New documentation
  • API docs
  • Added changelog file
  • English documentation
  • Travis config

0.1.0 May 14, 2017 - 0.7.0 Jun 16, 2020


  • Changelog does not exist

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



0.7.4 is the latest of 29 releases



Apache-2.0 license
Stats
0 github stars & 1 github forks
0 downloads in the last day
0 downloads in the last 30 days
631 total downloads