Download the PHP package the-events-calendar/coding-standards without Composer
On this page you can find all versions of the php package the-events-calendar/coding-standards. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download the-events-calendar/coding-standards
More information about the-events-calendar/coding-standards
Files in the-events-calendar/coding-standards
Package coding-standards
Short Description Code sniffing rules for StellarWP
License GPL-3.0+
Informations about the package coding-standards
StellarWP Coding Standards for PHP CodeSniffer
StellarWP coding standards uses a combination of:
- Generic (part of PHP_CodeSniffer)
- PEAR (part of PHP_CodeSniffer)
- PSR2 (part of PHP_CodeSniffer)
- Squiz (part of PHP_CodeSniffer)
- Zend (part of PHP_CodeSniffer)
- Custom sniffs (a few based on WordPress)
[!IMPORTANT]
Make sure that the commandphpcs
is on version3.4.2
+. In order to install it on that specifc version globally you can use:
Complete Installation Script
For a full installation of all required components, you can use the following script. This will install all necessary packages globally and configure PHPCS to use them:
[!NOTE] The script assumes your global Composer binaries are in your PATH. Adjust the paths in the script if your Composer global installation directory is different.
Setup on PHPStorm
You can follow this guide the only step you can replace is the one on Installing via Composer by the one above to install the 3.4.2 version instead.
Example Usage via phpcs.xml
File
All versions of coding-standards with dependencies
php Version >=7.4
slevomat/coding-standard Version ^8.14.0
squizlabs/php_codesniffer Version ^3.8.0
wp-coding-standards/wpcs Version ^3.0.0