2017 © Pedro Peláez
 

yii2-extension yii2-stubs-generator

Yii2 component stubs generator for Yii::$app

image

bazilio/yii2-stubs-generator

Yii2 component stubs generator for Yii::$app

  • Wednesday, March 28, 2018
  • by bazilio91
  • Repository
  • 15 Watchers
  • 119 Stars
  • 35,478 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 21 Forks
  • 2 Open issues
  • 8 Versions
  • 11 % Grown

The README.md

This extension provides no-more-butthurt components & user identity autocomplete generator command for Yii 2., (*1)

in action, (*2)

Installation

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

Either run, (*4)

php composer.phar require --dev --prefer-dist bazilio/yii2-stubs-generator

or add, (*5)

"bazilio/yii2-stubs-generator": "~1"

to the require-dev section of your composer.json., (*6)

Usage

To use this extension, simply add the following code in your application configuration (console.php):, (*7)

'controllerMap' => [
    'stubs' => [
        'class' => 'bazilio\stubsgenerator\StubsController',
    ],
],
# generate stubs for console application
php yii stubs console/config/main.php

# to generate stubs for several apps
php yii stubs console/config/main.php common/config/main.php frontend/config/main.php

File with stubs by default located in vendor directory., (*8)

Usage with PhpStorm

  1. Install File Watchers JetBrains plugin
  2. Open File Watchers plugin config and import watcher.xml
  3. Edit imported watcher for your needs
  4. Add scope to limit trigger to config files:

PhpStorm "multiple definitions exist for class"

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

The Versions

28/03 2018

dev-master

9999999-dev

Yii2 component stubs generator for Yii::$app

  Sources   Download

MIT

The Requires

 

by Vasily Ostanin

yii2 autocomplete phpstorm stubs

28/03 2018

1.2.0

1.2.0.0

Yii2 component stubs generator for Yii::$app

  Sources   Download

MIT

The Requires

 

by Vasily Ostanin

yii2 autocomplete phpstorm stubs

09/05 2017

1.1.1

1.1.1.0

Yii2 component stubs generator for Yii::$app

  Sources   Download

MIT

The Requires

 

by Vasily Ostanin

yii2 autocomplete phpstorm stubs

02/04 2017

1.1.0

1.1.0.0

Yii2 component stubs generator for Yii::$app

  Sources   Download

MIT

The Requires

 

by Vasily Ostanin

yii2 autocomplete phpstorm stubs

12/12 2015

1.0.0

1.0.0.0

Yii2 component stubs generator for Yii::$app

  Sources   Download

MIT

The Requires

 

by Vasily Ostanin

yii2 autocomplete phpstorm stubs

24/07 2015

0.0.3

0.0.3.0

Yii2 component stubs generator for Yii::$app

  Sources   Download

MIT

The Requires

 

by Vasily Ostanin

yii2 autocomplete phpstorm stubs

08/05 2015

0.0.2

0.0.2.0

Yii2 component stubs generator for Yii::$app

  Sources   Download

MIT

The Requires

 

by Vasily Ostanin

yii2 autocomplete phpstorm stubs

07/05 2015

0.0.1

0.0.1.0

Yii2 component stubs generator for Yii::$app

  Sources   Download

MIT

The Requires

 

by Vasily Ostanin

yii2 autocomplete phpstorm stubs