2017 © Pedro Peláez
 

yii2-extension yii2-helpers

This is the package of classes that I use from project to project.

image

gud3/yii2-helpers

This is the package of classes that I use from project to project.

  • Tuesday, November 28, 2017
  • by gud3
  • Repository
  • 1 Watchers
  • 0 Stars
  • 143 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 4 % Grown

The README.md

My personal helper.

This is the package of classes that I use from project to project., (*1)

Installation

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

Either run, (*3)

php composer.phar require --prefer-dist gud3/yii2-helpers "*"

or add, (*4)

"gud3/yii2-helpers": "*"

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

Migration, (*6)

Usage for create template migration file, it saves you time, creates an empty template, to create a table., (*7)

return [
    'components' => [
        ...
    ],
    'controllerMap' => [
        'migrate' => [
            'class' => 'yii\console\controllers\MigrateController',
            'templateFile' => '@vendor/gud3/yii2-helpers/migrations/templates/base.php'
        ],
    ],
    ...
];

If you need create index in table use class gud3\helpers\migrations\Indexes need extends of his and set and override the $indexes property. Where key in array it is a table name and value it's column example:, (*8)

public $indexes = [
    'user' => ['email', 'status']
    ...
];

And delete function of the up, down. They are in Indexes class., (*9)

To create a table with countries in short codes for them, also inherit in the migration class from the Country class gud3\helpers\migrations\Countries, remove the functions up, down., (*10)

The Versions

28/11 2017

dev-master

9999999-dev

This is the package of classes that I use from project to project.

  Sources   Download

Apache-2.0

The Requires

 

by Evgenii Kirichenko

yii2 yii2-helper yii2-db yii2-migrate yii2-array

24/08 2017

0.0.2

0.0.2.0

This is the package of classes that I use from project to project.

  Sources   Download

Apache-2.0

The Requires

 

by Evgenii Kirichenko

yii2 yii2-helper yii2-db yii2-migrate yii2-array

30/07 2017

0.0.1

0.0.1.0

This is the package of classes that I use from project to project.

  Sources   Download

Apache-2.0

The Requires

 

by Evgenii Kirichenko

yii2 yii2-helper yii2-db yii2-migrate yii2-array