承接 mediebruket/wp-coding-standards 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

mediebruket/wp-coding-standards

Composer 安装命令:

composer require mediebruket/wp-coding-standards

包简介

Internal WordPress coding standards

README 文档

README

We've transitioned to use PSR-12 coding style for our own Wordpress projects.

Installation

composer require mediebruket/wp-coding-standards --dev

Copy and modify the sample configuration file.

cp vendor/mediebruket/wp-coding-standards/phpcs.xml.dist.sample phpcs.xml.dist

Usage

Check manually by running PHPCS from command line and specify the coding standard:

vendor/bin/phpcs --standard="Mediebruket" <path>

PHPStorm Setup

Alternatively, the coding standard can be enabled in Phpstorm.

Phpstorm needs to know where PHP_CodeSniffer is located. Navigate to Languages & Frameworks > PHP > Quality tools > PHP_CodeSniffer and specify the path the phpcs executable in your vendor directory by clicking . Additionally, you can add the path to phpcbf as well.

Then you'll have to specify the coding standard. Navigate to Editor > Inspections > PHP > Quality tools > PHP_CodeSniffer validation > Options > Coding standard. Chose the preferred coding standard from the options section.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-12-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固