PHPackages                             wealcoder/wealcoder-coding-standard - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. wealcoder/wealcoder-coding-standard

ActivePhpcodesniffer-standard[Testing &amp; Quality](/categories/testing)

wealcoder/wealcoder-coding-standard
===================================

A Wealcoder PHP\_CodeSniffer standard that extends the official WordPress Coding Standards—customized for modern, secure, and consistent PHP development across all Wealcoder projects. Designed to enforce best practices and maintain high code quality in line with Wealcoder's engineering guidelines.

00Shell

Since Jul 9Pushed 10mo agoCompare

[ Source](https://github.com/Wealcoder/wealcoder-coding-standard)[ Packagist](https://packagist.org/packages/wealcoder/wealcoder-coding-standard)[ RSS](/packages/wealcoder-wealcoder-coding-standard/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Wealcoder Coding Standard
=========================

[](#wealcoder-coding-standard)

A Wealcoder PHP\_CodeSniffer standard that extends the official WordPress Coding Standards—customized for modern, secure, and consistent PHP development across all Wealcoder projects. Designed to enforce best practices and maintain high code quality in line with Wealcoder's engineering guidelines.

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

[](#installation)

Install via Composer:

```
composer require Wealcoder/wealcoder-coding-standard
```

For Global

```
composer global require Wealcoder/wealcoder-coding-standard
```

The package will automatically:

- Install PHP\_CodeSniffer and required dependencies
- Register the `Wealcoder-Coding-Standard` standard
- Set it as the default standard for your project

Usage
-----

[](#usage)

### Command Line

[](#command-line)

#### Quick Check

[](#quick-check)

```
vendor/bin/phpcs .
```

#### Using Composer Script

[](#using-composer-script)

```
composer run phpcs
```

#### Custom Configuration

[](#custom-configuration)

```
vendor/bin/phpcs --standard=Wealcoder-Coding-Standard path/to/files
```

### IDE Integration

[](#ide-integration)

For better IDE integration, create a `.phpcs.xml.dist` file in your project root:

```

    A customized PHP_CodeSniffer ruleset that extends the official WordPress Coding Standards, tailored for modern, secure, and consistent PHP development practices.

    src/
    inc/

    vendor/
    node_modules/
    *.min.js

```

### Continuous Integration

[](#continuous-integration)

Add to your CI workflow:

```
# GitHub Actions example
- name: PHP CodeSniffer
  run: composer run phpcs
```

Configuration Details
---------------------

[](#configuration-details)

### PHP Version Support

[](#php-version-support)

- **Minimum**: PHP 7.4
- **Maximum**: PHP 8.4
- **Compatibility**: Uses PHPCompatibilityWP for WordPress-specific compatibility checks

### Key Rules Applied

[](#key-rules-applied)

- WordPress Coding Standards (with sensible exclusions)
- Tab indentation (1 tab per indent level)
- Space inside parentheses for readability
- Superfluous whitespace detection
- PHP compatibility checking for WordPress

### Excluded Rules

[](#excluded-rules)

The following rules are excluded for practical development:

- File naming conventions (WordPress.Files.FileName)
- Nonce verification requirements
- Direct database query restrictions
- Global variable override prohibitions
- Some documentation capitalization requirements

Customization
-------------

[](#customization)

### Project-Level Overrides

[](#project-level-overrides)

Create a `phpcs.xml.dist` file to override or add rules:

```

    admin/ajax-handlers/*

```

### Inline Annotations

[](#inline-annotations)

Disable rules for specific code blocks:

```
// phpcs:disable WordPress.Security.NonceVerification.Missing
if ( isset( $_POST['data'] ) ) {
    // Process data without nonce check
}
// phpcs:enable WordPress.Security.NonceVerification.Missing
```

Requirements
------------

[](#requirements)

- PHP 7.4 or higher ( Upto 8.4 )
- Composer
- PHP\_CodeSniffer 3.9.0 or higher

Dependencies
------------

[](#dependencies)

- `dealerdirect/phpcodesniffer-composer-installer`: ^1.0
- `phpcompatibility/phpcompatibility-wp`: ^2.1
- `wp-coding-standards/wpcs`: ^3.1.0

Contributing
------------

[](#contributing)

1. Fork the repository
2. Create a feature branch
3. Make your changes
4. Test with `composer run phpcs`
5. Submit a pull request

License
-------

[](#license)

GPL-3.0-or-later

---

Author
------

[](#author)

**Wealcoder**
Email:
Organization: [Wealcoder](https://www.wealcoder.com/)

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity14

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ba8aa1f62edcf8c1cf600260f03db31643c79e58e736506d533e33853c46c17b?d=identicon)[habib-cse](/maintainers/habib-cse)

---

Top Contributors

[![devsabbirhossain](https://avatars.githubusercontent.com/u/119017487?v=4)](https://github.com/devsabbirhossain "devsabbirhossain (4 commits)")

---

Tags

codestandardswordpresswordpress-developmentwordpress-pluginwordpress-theme

### Embed Badge

![Health badge](/badges/wealcoder-wealcoder-coding-standard/health.svg)

```
[![Health](https://phpackages.com/badges/wealcoder-wealcoder-coding-standard/health.svg)](https://phpackages.com/packages/wealcoder-wealcoder-coding-standard)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[phpspec/phpspec

Specification-oriented BDD framework for PHP 7.1+

1.9k36.7M3.1k](/packages/phpspec-phpspec)

PHPackages © 2026

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