mitirrli/yii2-ide-helper 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mitirrli/yii2-ide-helper

Composer 安装命令:

composer require mitirrli/yii2-ide-helper

包简介

Yii2 IDE Helper, generates correct PHPDocs for all components, to improve auto-completion.

README 文档

README

Install

Require this package with composer using the following command:

composer require mitirrli/yii2-ide-helper --dev

or add

"mitirrli/yii2-ide-helper": "*"

to the require-dev section of your composer.json file.

Usage

After updating composer, add the component to the components array and bootstrap array in config file of console application:

'bootstrap' => ['log', 'ideHelper'],
...
'components' => [
    'ideHelper' => [
      	'class' => 'Mitirrli\IdeHelper\IdeHelper',
    ],
  ...
],

Now you can generate ide helper file by command:

./yii ide-helper/generate

Options

'ideHelper' => [
    'class' => 'Mitirrli\IdeHelper\IdeHelper',
    'filename' => '_ide_helper',
    'rootDir' => dirname(__DIR__),
    'configFiles' => [
        'console/config/main.php',
        'console/config/main-local.php',
    ],
],

Default config files:

protected $defaultConfigFiles = [
    'config/web.php',
    'config/main.php',
    'config/main-local.php',
    'common/config/main.php',
    'common/config/main-local.php',
    'frontend/config/main.php',
    'frontend/config/main-local.php',
    'backend/config/main.php',
    'backend/config/main-local.php',
];

统计信息

  • 总下载量: 17
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-06-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固