2017 © Pedro Peláez
 

library yii2-phpstorm

Yii2 generator tips.

image

php-dk/yii2-phpstorm

Yii2 generator tips.

  • Thursday, March 29, 2018
  • by dimajolkin
  • Repository
  • 1 Watchers
  • 0 Stars
  • 36 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 80 % Grown

The README.md

Install

composer require php-dk/yii2-phpstorm:@dev --dev, (*1)

Configuration

console-local.php, (*2)

return [
    'modules' => [
        'tips' => [
            'class' => \phpdk\yii2PhpStorm\Module::class,
            'config' => \yii\helpers\ArrayHelper::merge(
                require 'main.php',
                require 'main-local.php',
                ... 
            )
        ]
    ],
];


Run

./yii tips/gen/application - generate Application class ./yii tips/gen/meta - generate .phpstorm.meta.php file in basePath ./yii tips/gen - all, (*3)

Use

После обновления будут доступны подсказки для имён модулей, и компоненты, .phpstorm.meta.php - начинает работать только после перезапуска IDE., (*4)

  Yii::$app->component->...
  Yii::$app->getModule('...')->...

PhpStorm "multiple definitions exist for class" To hide this message:, (*5)

Find a duplicate class file (not created by this generator), for example: vendor/yiisoft/yii/YiiBase.php Mark it as a plain text in file context menu., (*6)

The Versions

29/03 2018

dev-master

9999999-dev

Yii2 generator tips.

  Sources   Download

MIT

The Requires

 

by Avatar dimajolkin

yii2 generator tips.

13/03 2018

0.2

0.2.0.0

Yii2 generator tips.

  Sources   Download

MIT

The Requires

 

by Avatar dimajolkin

yii2 generator tips.

07/01 2018

0.1

0.1.0.0

interoit base DbOrm.

  Sources   Download

MIT

The Requires

  • php >=7.0

 

by Intero

yii2 tips moydom.ru