Yii2 Support for PhpStorm / IntelliJ IDEA
Provides Yii 2 Framework support for PhpStorm and IntelliJ IDEA.
Please make donations to support plugin development.
Bitcoin: 36TYn22Ch48FsBriJkGmD52Ge8Dqf7Gjkb
Code completion for Yii configuration arrays. Works both in configuration files and on object instantiation. Following cases are supported:
$config
parameter in yii\base\Object
or its descendants constructorclass
key with valid class representation: fully qualified name as string, ClassName::class
or Class::className()
db
, request
, mailer
, and so on), and
a file with this array is located within config
directoryWidgetClass::widget()
and WidgetClass::begin
calls in case WidgetClass
is a descendant of yii\base\Widget
$field->widget()
method call on yii\widgets\ActiveField
and its descendantsGridView
, columns
keyYii::createObject
methodGo To Declaration, Rename, Find usages and Help popups work whenever code completion works.
Database connection is required
Use plugin settings window to set up table prefix
ActiveQuery
(ActiveRecord::find()->where
for example)ActiveQuery
linked to ActiveRecordActiveQuery
not linked to ActiveRecord
ActiveRecord
findAll()
, findOne()
and so on methodsActiveRecord
table inspection$form->field($model, ...)
& Html::active*($model, ...)
methodsInspections can be disabled inline /** @noinspection MissedViewInspection */
.
MissedViewInspection
RequireParameterInspection
UnusedParameterInspection
ViewMissedPhpDocInspection
ObjectFactoryMissedFieldInspection
MissedParamInspection
PropertiesInspection
UndetectableTableInspection
MissingActiveRecordInActiveQueryInspection
File
→ Settings
.Plugins
.Browse repositories...
button.yii2 support
.Install
green button on the very top of description.The plugin is Open Source. You may contribute either by testing and reporting issues or by sending pull requests.
Acknowledging and or citing the plugin is as important as direct contributions.
If you are giving a presentation or talk we suggest using our logo.