https://github.com/polylang/polylang-cs
Polylang Coding Standards is a ruleset for code quality tools to be used in WP Syntex's projects.
https://github.com/polylang/polylang-cs
php phpcs-standard wordpress
Last synced: 5 months ago
JSON representation
Polylang Coding Standards is a ruleset for code quality tools to be used in WP Syntex's projects.
- Host: GitHub
- URL: https://github.com/polylang/polylang-cs
- Owner: polylang
- License: mit
- Created: 2021-08-20T11:51:54.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-08-26T10:09:07.000Z (almost 4 years ago)
- Last Synced: 2025-10-19T04:36:39.564Z (8 months ago)
- Topics: php, phpcs-standard, wordpress
- Language: PHP
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Polylang Coding Standards
[](https://packagist.org/packages/wpsyntex/polylang-cs)
[](https://github.com/polylang/polylang-cs/blob/main/LICENSE)
Polylang Coding Standards is a ruleset for code quality tools to be used in WP Syntex's projects.
## Installation
Standards are provided as a [Composer](https://getcomposer.org/) package and can be installed with:
```bash
composer require --dev wpsyntex/polylang-cs:dev-main
```
## PHP Code Sniffer
Set of [PHP_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) rules.
The following rulesets are included:
- Several custom sniffs mainly focused on naming conventions,
- [NeutronStandard](https://github.com/Automattic/phpcs-neutron-standard),
- [PHPCompatibilityWP](https://github.com/PHPCompatibility/PHPCompatibilityWP) (for PHP and WP version),
- [Suin](https://github.com/suin/phpcs-psr4-sniff) (for PSR-4),
- [WordPress](https://github.com/WordPress/WordPress-Coding-Standards),
- [WordPressVIPMinimum](https://github.com/Automattic/VIP-Coding-Standards).
Example for your `phpcs.xml.dist` file:
```xml
Coding standards for Polylang Foobar.
.
```