yii2support

Yii2 Support for PhpStorm / IntelliJ IDEA

Github星跟踪图

IntelliJ IDEA / PhpStorm Yii2 Support

Latest Stable Version
Total Downloads
Downloads Last Month

Provides Yii 2 Framework support for PhpStorm
and IntelliJ IDEA.

Please make donations to support plugin development.
paypal yandex.money
Bitcoin: 36TYn22Ch48FsBriJkGmD52Ge8Dqf7Gjkb

Features

Views

  • View template names and parameters completion
  • Add view parameters after completion
  • Inspection for missing view templates
  • QuickFix for missing view templates
  • Jump to View file (go to declaration)
  • Inspection for required and unused template parameters
  • QuickFix for required and unused template parameters
  • Updates path to view template when file is moved

i18n

  • Code completion
  • Generate params array

Configuration arrays

Code completion for Yii configuration arrays. Works both in configuration files and on object instantiation.
Following cases are supported:

  • Array in $config parameter in yii\base\Object or its descendants constructor
  • Array has a class key with valid class representation: fully qualified name as string, ClassName::class or Class::className()
  • Array is a value of a key that corresponds to standard Yii classes (like db, request, mailer, and so on), and
    a file with this array is located within config directory
  • WidgetClass::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 descendants
  • Inside array in GridView, columns key
  • Yii::createObject method

Go To Declaration, Rename, Find usages and Help popups work whenever code completion works.

Database support

Database connection is required

Table Prefix support

Use plugin settings window to set up table prefix

ActiveQuery

  • Code completion for ActiveQuery (ActiveRecord::find()->where for example)
  • Code completion inside ActiveQuery linked to ActiveRecord
  • Inspection in case if ActiveQuery not linked to ActiveRecord

ActiveRecord

  • Code completion for ActiveRecord findAll(), findOne() and so on methods
  • Undetectable ActiveRecord table inspection
  • Code completion in relations methods

Migrations

  • Code completion for migrations

Condition parameters

  • Condition parameters code completion
  • Condition parameters inspection

Properties

  • Synchronize properties with database
  • Unused properties inspection

Form support

  • Complete model attribute for $form->field($model, ...) & Html::active*($model, ...) methods

Validators support

  • Autocomplete for arrays in model's rules() method

Type resolution

  • Yii::createMethod()
  • one() and all() methods of ActiveQuery

Migration tool

  • Migrations UI Navigator
  • Apply/Undo/Redo migrations from UI
  • Support Remote CLI for Docker, Vagrant, VM, Remote servers
  • Sync IDE DataBase schema after Apply/Undo/Redo migration(s)
  • View command execution output

Installation

  • Open your PhpStorm or IntelliJ IDEA IDE.
  • Go to FileSettings.
  • Choose Plugins.
  • Press Browse repositories... button.
  • Type yii2 support.
  • Press Install green button on the very top of description.

Contributing

The plugin is Open Source. You may contribute either by testing and reporting issues
or by sending pull requests.

Spreading the Word

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.

Project Changelog

主要指标

概览
名称与所有者nvlad/yii2support
主编程语言Java
编程语言HTML (语言数: 4)
平台
许可证Other
所有者活动
创建于2017-01-08 18:57:31
推送于2021-12-04 22:39:46
最后一次提交2021-12-05 01:39:46
发布数26
最新版本名称v0.10.57.23 (发布于 )
第一版名称0.2 (发布于 2017-01-17 14:40:07)
用户参与
星数293
关注者数21
派生数55
提交数1k
已启用问题?
问题数227
打开的问题数72
拉请求数55
打开的拉请求数0
关闭的拉请求数7
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?