2017 © Pedro Peláez
 

yii2-extension yii2-base

The base behaviors, helpers, etc. for the Yii2 framework

image

yiicod/yii2-base

The base behaviors, helpers, etc. for the Yii2 framework

  • Sunday, February 18, 2018
  • by lexxorlov
  • Repository
  • 1 Watchers
  • 4 Stars
  • 989 Installations
  • PHP
  • 5 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 27 % Grown

The README.md

The base library for extensions and apps

Latest Stable Version Total Downloads Scrutinizer Code QualityCode Climate, (*1)

Installation

Either run, (*2)

php composer.phar require --prefer-dist yiicod/yii2-base "*"

or add, (*3)

"yiicod/yii2-base": "*"

Usage action

  • yiicod\base\actions\base\Action. Methods: performAjaxValidation, loadModel

Usage model

    /**
     * Attributes mapper(Dynamic attr by mapping).
     * yiicod\base\models\behaviors\AttributesMapBehavior
     * $model->title // But in db it can be title_ext
     * $model->alias // But in db it can be slug
     */
    [
        'class' => 'yiicod\base\models\behaviors\AttributesMapBehavior',
        'attributesMap' => [
            'fieldTitle' => 'title_ext',
            'fieldAlias' => 'slug',
        ]
    ],
    /**
     * HTMLPurify
     */
    [
        'class' => 'yiicod\base\models\behaviors\XssBehavior',
    ]

Usage Enum

  • Abstract class Enumerable for enum

The Versions

18/02 2018

dev-master

9999999-dev

The base behaviors, helpers, etc. for the Yii2 framework

  Sources   Download

MIT New BSD License

The Requires

 

18/02 2018

1.0.6

1.0.6.0

The base behaviors, helpers, etc. for the Yii2 framework

  Sources   Download

MIT

The Requires

 

22/07 2017

1.0.5

1.0.5.0

The base behaviors, helpers, etc. for the Yii2 framework

  Sources   Download

New BSD License

The Requires

 

23/10 2016

1.0.4

1.0.4.0

The base behaviors, helpers, etc. for the Yii2 framework

  Sources   Download

New BSD License

01/11 2015

1.0.3

1.0.3.0

The base behaviors, helpers, etc. for the Yii2 framework

  Sources   Download

New BSD License

26/07 2015

1.0.2

1.0.2.0

  Sources   Download

New BSD License

21/06 2015

1.0.1

1.0.1.0

  Sources   Download

New BSD License

15/03 2015

1.0.0.0

1.0.0.0

  Sources   Download

New BSD License