PHPackages                             buddypress/bp-coding-standards - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. buddypress/bp-coding-standards

ActivePhpcodesniffer-standard

buddypress/bp-coding-standards
==============================

PHP\_CodeSniffer rules (sniffs) to enforce BuddyPress minimum coding conventions

v0.1.0(3y ago)114.6k1GPL-3.0-or-laterPHP &gt;=5.6CI passing

Since Feb 13Pushed 2y ago3 watchersCompare

[ Source](https://github.com/buddypress/bp-coding-standards)[ Packagist](https://packagist.org/packages/buddypress/bp-coding-standards)[ Docs](https://github.com/buddypress/bp-coding-standards)[ RSS](/packages/buddypress-bp-coding-standards/feed)WikiDiscussions trunk Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (1)

BuddyPress Coding Standards
===========================

[](#buddypress-coding-standards)

`PHP_CodeSniffer` rules (sniffs) to enforce BuddyPress minimum coding conventions.

Minimal requirements
--------------------

[](#minimal-requirements)

- PHP 5.6+
- [WPCS 3.0+](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/releases)

Installation
------------

[](#installation)

To use this standard in a project, declare it as a dependency.

```
composer require buddypress/bp-coding-standards
```

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:

```
"require": {
    "buddypress/bp-coding-standards": "^0.2.0"
}
```

Using PHPCS
-----------

[](#using-phpcs)

To use this standard with `phpcs` directly from your command line, use the command:

```
vendor/bin/phpcs --standard=BuddyPress .
```

Alternatively, you can set this as a composer script, which will automatically reference the correct version of `phpcs` and the dependent standards.

```
"scripts": {
    "phpcs" : "phpcs --standard=BuddyPress ."
}
```

Then use the following command:

```
composer run phpcs
```

You can also pass arguments to the composer phpcs script, following a `--` operator like this:

```
composer run phpcs -- --report=summary
```

Extending the ruleset
---------------------

[](#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:

```

    Example project ruleset

```

Change Log
----------

[](#change-log)

Change log under [CHANGELOG.md](CHANGELOG.md).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 Bus Factor1

Top contributor holds 77.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1181d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e838cb56dd0d5bc3e35fb23e5df1ec2a820923b023fdebfb39cef5ba2b9cc95d?d=identicon)[boonebgorges](/maintainers/boonebgorges)

---

Top Contributors

[![renatonascalves](https://avatars.githubusercontent.com/u/19148962?v=4)](https://github.com/renatonascalves "renatonascalves (7 commits)")[![imath](https://avatars.githubusercontent.com/u/1834524?v=4)](https://github.com/imath "imath (2 commits)")

---

Tags

buddypressphp-codesnifferphpcsrulesetwordpressstandardsphpcswordpressbuddypress

### Embed Badge

![Health badge](/badges/buddypress-bp-coding-standards/health.svg)

```
[![Health](https://phpackages.com/badges/buddypress-bp-coding-standards/health.svg)](https://phpackages.com/packages/buddypress-bp-coding-standards)
```

###  Alternatives

[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.1M29](/packages/yoast-yoastcs)[automattic/vipwpcs

PHP\_CodeSniffer rules (sniffs) to enforce WordPress VIP minimum coding conventions

25510.2M144](/packages/automattic-vipwpcs)[wptrt/wpthemereview

PHP\_CodeSniffer rules (sniffs) to verify theme compliance with the rules for theme hosting on wordpress.org

217736.5k29](/packages/wptrt-wpthemereview)[woocommerce/woocommerce-sniffs

WooCommerce sniffs

496.8M40](/packages/woocommerce-woocommerce-sniffs)[drupal/coder

Coder is a library to review Drupal code.

3043.6M460](/packages/drupal-coder)[infinum/eightshift-coding-standards

Eightshift WordPress Coding Standards

1785.2k3](/packages/infinum-eightshift-coding-standards)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
