PHPackages                             think-zap/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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. think-zap/coding-standards

ActivePhpcodesniffer-standard[Validation &amp; Sanitization](/categories/validation)

think-zap/coding-standards
==========================

Zap Coding Standard for PHPCS

2.0.0(1y ago)050MITPHP &gt;=7.4

Since Aug 30Pushed 1y agoCompare

[ Source](https://github.com/Think-Zap/coding-standards)[ Packagist](https://packagist.org/packages/think-zap/coding-standards)[ RSS](/packages/think-zap-coding-standards/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (5)Versions (6)Used By (0)

Zap Coding Standards
====================

[](#zap-coding-standards)

The Zap Coding Standard is a set of [PHP\_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) rules for use primarily with the Zap Competition plugins.

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

[](#requirements)

- PHP ^8.2

Install
-------

[](#install)

Composer v2:

```
composer require --dev Think-Zap/coding-standards "^2.0"`
```

Composer v1:

Add to the `repositories` object:

```
    {
      "type": "vcs",
      "url": "git@github.com:Think-Zap/coding-standards.git"
    }
```

And `require-dev`:

```
  "Think-Zap/coding-standards": "^3.0"
```

Project ruleset
---------------

[](#project-ruleset)

> Ensure you're running PHP 8.2 locally!

To use this ruleset, create a `phpcs.xml.dist` in the root of the project and add the following content:

```

	./wp-content/plugins

	*-config.php
	*vendor/
	*tests/*
	*.twig
	*webpack/

```

> Add `phpcs.xml` to your `.gitignore`

Manual Usage
------------

[](#manual-usage)

**PHPCS**

```
./vendor/bin/phpcs --standard=Zap /path/to/files/**.php
```

**PHPCBF**

```
./vendor/bin/phpcbf --standard=Zap /path/to/files/**.php
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~1 days

Total

5

Last Release

623d ago

Major Versions

1.0.2 → 2.0.02024-09-02

### Community

Maintainers

![](https://www.gravatar.com/avatar/0a9ba1f221b60abafe8d2af4d96a92823755862bf0cd4a99b4982ccc21ec24b9?d=identicon)[jonathanzap](/maintainers/jonathanzap)

---

Top Contributors

[![jonathan-zap](https://avatars.githubusercontent.com/u/177332563?v=4)](https://github.com/jonathan-zap "jonathan-zap (8 commits)")

---

Tags

phpcsstatic analysiscodestylestandardrulessniffercodingsniffschecksZAPthink zap

### Embed Badge

![Health badge](/badges/think-zap-coding-standards/health.svg)

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

###  Alternatives

[doctrine/coding-standard

The Doctrine Coding Standard is a set of PHPCS rules applied to all Doctrine projects.

31914.1M739](/packages/doctrine-coding-standard)[leroy-merlin-br/coding-standard

The coding standard for PHP projects on LMBR

2137.0k10](/packages/leroy-merlin-br-coding-standard)[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.1M29](/packages/yoast-yoastcs)

PHPackages © 2026

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