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

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

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

pantheon-systems/pantheon-wp-coding-standards

最新稳定版本:3.0.1

Composer 安装命令:

composer require pantheon-systems/pantheon-wp-coding-standards

包简介

PHPCS Rulesets for WordPress projects on Pantheon.

README 文档

README

Actively Maintained Packagist Version MIT License

PHPCS rulesets for WordPress projects on Pantheon.

Setup

The PHPCS ruleset can be installed via Composer:

composer require --dev pantheon-systems/pantheon-wp-coding-standards

Usage

Run the following command to run the standards checks:

vendor/bin/phpcs -s --standard=Pantheon-WP .

We recommend using the -s flag so that PHPCS will report the specific rule that was violated. This makes it easier to add exclusions or research possible solutions.

If you have a tests directory that you want to exclude from the sniffs, you can do so by adding the --ignore flag:

vendor/bin/phpcs -s --ignore=tests/* --standard=Pantheon-WP .

Extending

If you want to customize the defaults or add additional rules, you can create your own standard file (e.g. phpcs.ruleset.xml):

<?xml version="1.0"?>
<ruleset>
	<!-- Files or directories to check -->
	<file>.</file>

	<!-- Include the Pantheon-WP ruleset -->
	<rule ref="Pantheon-WP" />

	<!-- Add additional rules here -->
	<rule ref="WordPress.WP.I18n">
		<properties>
			<property name="text_domain" value="my-plugin" />
		</properties>
</ruleset>

You can then reference this file when running PHPCS:

vendor/bin/phpcs -s --standard=phpcs.ruleset.xml .

Included Checks

The Pantheon WP standard is based upon WordPress Coding Standards, VIP Coding Standards with some customizations based on Human Made's Coding Standards.

统计信息

  • 总下载量: 105.84k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 9
  • 点击次数: 3
  • 依赖项目数: 15
  • 推荐数: 0

GitHub 信息

  • Stars: 9
  • Watchers: 6
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固