yii2-stubs-generator Yii2 component autocomplete generator for Yii::$app. No more pain with autocomplete in PhpStorm.

  1. Usage
  2. Resources

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

PhpStorm demo

Usage

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

Resources

0 0
1 follower
0 downloads
Yii Version: 2.0
License: MIT
Category: Others
Developed by: bazilio91
Created on: Jun 2, 2015
Last updated: 9 years ago

Related Extensions