Yii 2.0: yii2-stubs-generator

Yii2 component autocomplete generator for Yii::$app. No more pain with autocomplete in PhpStorm.
1 follower

This extension provides no-more-butthurt components autocomplete generator command for Yii 2.

PhpStorm demo


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

'controllerMap' => [
    'stubs' => [
        'class' => 'bazilio\stubsgenerator\StubsController',
# generate stubs for console application
php yii stubs console

# to generate stubs for several apps
php yii stubs console common frontend

File with stubs by default located in vendor directory.

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


Be the first person to leave a comment

Please to leave your comment.

Create extension
No downloadable files yet