Download the PHP package buddypress/bp-coding-standards without Composer
On this page you can find all versions of the php package buddypress/bp-coding-standards. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download buddypress/bp-coding-standards
More information about buddypress/bp-coding-standards
Files in buddypress/bp-coding-standards
Package bp-coding-standards
Short Description PHP_CodeSniffer rules (sniffs) to enforce BuddyPress minimum coding conventions
License GPL-3.0-or-later
Homepage https://github.com/buddypress/bp-coding-standards
Informations about the package bp-coding-standards
BuddyPress Coding Standards
PHP_CodeSniffer rules (sniffs) to enforce BuddyPress minimum coding conventions.
Minimal requirements
- PHP 5.6+
- WPCS 3.0+
Installation
To use this standard in a project, declare it as a dependency.
This will install the latest compatible version of PHPCS and WPCS to your vendor directory in order to run sniffs locally.
You can also manually add this to your project's composer.json file as part of the require property:
Using PHPCS
To use this standard with phpcs directly from your command line, use the command:
Alternatively, you can set this as a composer script, which will automatically reference the correct version of phpcs and the dependent standards.
Then use the following command:
You can also pass arguments to the composer phpcs script, following a -- operator like this:
Extending the ruleset
You can create a custom ruleset for your project that extends or customizes these rules by creating your own phpcs.xml or phpcs.xml.dist file in your project, which references these rules, like this:
Change Log
Change log under CHANGELOG.md.
All versions of bp-coding-standards with dependencies
dealerdirect/phpcodesniffer-composer-installer Version ^0.7.1
phpcompatibility/phpcompatibility-wp Version ^2.1.0
squizlabs/php_codesniffer Version ^3.5.5
wp-coding-standards/wpcs Version ^2.3.0