2017 © Pedro Peláez
 

library yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

image

execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  • Wednesday, July 25, 2018
  • by eXeCUT
  • Repository
  • 2 Watchers
  • 1 Stars
  • 126 Installations
  • PHP
  • 5 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 71 Versions
  • 11 % Grown

The README.md

eXeCUT Yii2 CRUD fields. CRUD without generators and code duplication

This component allows you to automate many processes that occur in working with models, thereby reducing code duplication, and hence the total time spent: * Writing validation rules for fields of the same type * Writing Getters to Declare Various Relationships with Other Models * Validating and Editing Linked Records * Setting up the edit form for the model and its associated records * Customizing the Model Record List * Translating field names * Adds the ability to extend models by a third-party module without adding new dependencies * Simplifies the process of unit testing models, (*1)

For license information check the LICENSE-file., (*2)

English documentation is at docs/guide/README.md., (*3)

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

Latest Stable Version Total Downloads Build Status, (*5)

Installation

The preferred way to install this extension is through composer., (*6)

Either run, (*7)

php composer.phar require execut/yii2-crud-fields

or add, (*8)

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

to the require section of your composer.json file., (*9)

Usage

For example, the following few lines of code in a model:, (*10)

namespace execut\books\models;
class Book extends \yii\db\ActiveRecord {
    use \execut\crudFields\BehaviorStub;
    public function behaviors() {
        return [
            \execut\crudFields\Behavior::KEY => [
                'class' => \execut\crudFields\Behavior::class,
                'fields' => [
                    'id' => [
                        'class' => \execut\crudFields\fields\Id::class,
                    ],
                    'name' => [
                        'class' => \execut\crudFields\fields\StringField::class,
                        'attribute' => 'name',
                        'required' => true,
                    ]
                ],
            ],
        ];
    }
}

will make all required for CRUD:, (*11)

php $model = new Book(); echo 'Validation rules for the search and edit scenario'; var_dump($model->rules()); echo 'Forming ActiveQuery based on filtering parameters and configuring ActiveDataProvider'; var_dump($model->search()); echo 'Formation of list columns settings'; var_dump($model->getGridColumns()); echo 'Formation of settings for the creation/editing form'; var_dump($model->getFormFields());, (*12)

Books CRUD list Books CRUD form, (*13)

If we compare the implementation of such a model with a model without extension, we can see that the amount of code has changed in a positive direction:, (*14)

Model on native Yii2 (85 lines) vs Model on CRUD fields (36 lines), (*15)

Or more strong example with books authors:, (*16)

Model on native Yii2 (370 lines) vs Model on CRUD fields (116 lines), (*17)

Authors CRUD list Authors CRUD form, (*18)

For more details please refer to the documentation docs/guide/README.md., (*19)

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

The Versions

25/07 2018

dev-master

9999999-dev https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

25/07 2018

0.19.2

0.19.2.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

19/07 2018

0.19.1

0.19.1.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

17/07 2018

0.19.0

0.19.0.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

13/07 2018

0.18.2

0.18.2.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

29/06 2018

0.18.1

0.18.1.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

28/06 2018

0.18.0

0.18.0.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

08/06 2018

0.17.0

0.17.0.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

05/06 2018

0.16.1

0.16.1.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

04/06 2018

0.16.0

0.16.0.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

04/06 2018

0.15.0

0.15.0.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

21/05 2018

0.14.6

0.14.6.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

21/05 2018

0.14.5

0.14.5.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

21/05 2018

0.14.4

0.14.4.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

18/05 2018

0.14.3

0.14.3.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

16/05 2018

0.14.2

0.14.2.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

27/04 2018

0.14.1

0.14.1.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

23/04 2018

0.14.0

0.14.0.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

19/04 2018

0.13.2

0.13.2.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

18/04 2018

0.13.1

0.13.1.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

18/04 2018

0.13.0

0.13.0.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

05/04 2018

0.12.3

0.12.3.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

29/03 2018

0.12.2

0.12.2.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

29/03 2018

0.12.1

0.12.1.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

16/03 2018

0.12.0

0.12.0.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

02/03 2018

0.11.2

0.11.2.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

01/03 2018

0.11.1

0.11.1.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

28/02 2018

0.11.0

0.11.0.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

28/02 2018

0.2.0

0.2.0.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

27/02 2018

0.10.1

0.10.1.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

27/02 2018

0.10.0

0.10.0.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

20/02 2018

0.9.4

0.9.4.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

12/02 2018

0.9.3

0.9.3.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

09/02 2018

0.9.2

0.9.2.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

27/12 2017

0.9.0

0.9.0.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

27/12 2017

0.9.1

0.9.1.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

19/12 2017

0.8.0

0.8.0.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

12/12 2017

0.7.11

0.7.11.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

08/12 2017

0.7.10

0.7.10.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

22/11 2017

0.7.9

0.7.9.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

17/11 2017

0.7.8

0.7.8.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

17/11 2017

0.7.7

0.7.7.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

17/11 2017

0.7.6

0.7.6.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

16/11 2017

0.7.5

0.7.5.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

16/11 2017

0.7.4

0.7.4.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

10/11 2017

0.7.3

0.7.3.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

08/11 2017

0.7.2

0.7.2.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

07/11 2017

0.7.1

0.7.1.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

03/11 2017

0.7.0

0.7.0.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

24/09 2017

0.6.5

0.6.5.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

23/09 2017

0.6.4

0.6.4.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

19/09 2017

0.6.3

0.6.3.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

17/09 2017

0.6.2

0.6.2.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

17/09 2017

0.6.1

0.6.1.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

14/09 2017

0.6.0

0.6.0.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

10/09 2017

0.5.0

0.5.0.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

30/08 2017

0.4.1

0.4.1.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

30/08 2017

0.4.0

0.4.0.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

26/08 2017

0.3.6

0.3.6.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

25/08 2017

0.3.5

0.3.5.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

15/08 2017

0.3.4

0.3.4.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

14/08 2017

0.3.3

0.3.3.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

11/08 2017

0.3.2

0.3.2.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

08/08 2017

0.3.1

0.3.1.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

24/07 2017

0.3.0

0.3.0.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

14/05 2017

0.2.3

0.2.3.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

21/04 2017

0.2.2

0.2.2.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

17/04 2017

0.2.1

0.2.1.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

17/04 2017

0.2

0.2.0.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

02/04 2017

0.1.1

0.1.1.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

02/04 2017

0.1.0

0.1.0.0 https://github.com/execut/yii2-crud-fields

A behavior for standard fields logic in CRUD based on kartik dynagrid and detailView

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields