youwe / coding-standard-phpstorm
Youwe PHP编码标准PHPStorm集成
2.4.0-RC2
2022-04-22 10:10 UTC
Requires
- php: ^7.1
- composer-plugin-api: ^1.0 || ^2.0
Requires (Dev)
- ext-simplexml: *
- composer/composer: @stable
- kint-php/kint: @stable
- mikey179/vfsstream: ^1.6
- phpunit/phpunit: @stable
- dev-master
- 2.4.0-RC2
- 2.4.0-RC1
- 2.4.0-RC
- 2.3.1
- 2.3.0
- 2.2.0
- 2.1.0
- 2.0.6
- 2.0.3
- 2.0.0
- 1.7.0
- 1.6.1
- 1.6.0
- 1.5.1
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.0
- 1.0.0
- dev-feature/OTPBBBBBZP-117-new
- dev-feature/OTPBBBBBZP-117
- dev-feature/version-3.0
- dev-feature/composer-2-compatibility
- dev-feature/support-composer-v2
- dev-feature/MG-973
- dev-feature/strict-types
This package is auto-updated.
Last update: 2024-08-30 01:12:31 UTC
README
coding-standard-phpstorm
为项目设置PhpStorm编码标准。
安装
此包使用Composer安装
composer require mediact/coding-standard-phpstorm
配置
使用PHPStorm的文件 > 设置 > 语言 > PHP
菜单指向已安装的PHPMD和PHPCS的可执行文件。
实时模板
现在您可以在文件 > 设置 > 编辑 -> 实时模板
中找到实时模板。这些模板可以启用/禁用。目前,已创建了以下实时模板:
- ACL
- 数据库模式
- 依赖注入
- 事件
- 菜单
- 模块
- Phtml (WIP)
- 注册
- 系统
查看此链接以获取更多信息
模板
现在您可以在文件 > 设置 > 编辑 -> 文件和代码模板
中找到实时模板。如果您想使用它们,可以启用/禁用它们。如果没有显示任何PhpStorm模板,请重新启动PhpStorm。目前,已创建了以下模板:
- ACL
- 类
- 类 - 后端控制器
- 类 - 块
- 类 - 辅助程序
- 类 - 观察者
- 类 - 视图模型
- 配置
- 数据库模式
- 依赖注入
- 事件
- 扩展属性
- 布局
- 菜单
- 模块
- 注册
- 路由
- 销售
- 系统
- 系统包含
查看此链接以查看所有可用的命令。