PHPackages                             jacricelli/cakephp-codesniffer - 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. [Framework](/categories/framework)
4. /
5. jacricelli/cakephp-codesniffer

ActivePhpcodesniffer-standard[Framework](/categories/framework)

jacricelli/cakephp-codesniffer
==============================

CakePHP CodeSniffer Standards

1.0.5(7y ago)023MITPHP

Since Apr 10Pushed 7y ago1 watchersCompare

[ Source](https://github.com/jacricelli/cakephp-codesniffer)[ Packagist](https://packagist.org/packages/jacricelli/cakephp-codesniffer)[ Docs](http://cakephp.org)[ RSS](/packages/jacricelli-cakephp-codesniffer/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

CakePHP Code Sniffer
====================

[](#cakephp-code-sniffer)

[![Build Status](https://camo.githubusercontent.com/126f6b0c708dd18dfae2d1e110d9a32df9ed38608d25d904ac2e4d203b19dfd6/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f63616b657068702f63616b657068702d636f6465736e69666665722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/cakephp/cakephp-codesniffer)[![Coverage Status](https://camo.githubusercontent.com/7f7c50b2dbeb0cddd1f9345744e223cb8cd6939aaecd9eeea6ef87a2e3a58383/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f63616b657068702f63616b657068702d636f6465736e69666665722e7376673f7374796c653d666c61742d737175617265)](https://codecov.io/github/cakephp/cakephp-codesniffer)[![Total Downloads](https://camo.githubusercontent.com/ea0c20d4281dd7f7e4b458f4378a5a90955ef85f7d61aaa9eaa9b58db477ffc9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63616b657068702f63616b657068702d636f6465736e69666665722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cakephp/cakephp-codesniffer)[![Latest Stable Version](https://camo.githubusercontent.com/5f4fc02fbfaa2af2aafa56795604a46462a7af4d6271ec9228fabc36015cd254/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f63616b657068702f63616b657068702d636f6465736e69666665722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cakephp/cakephp-codesniffer)

This code works with [phpcs](http://pear.php.net/manual/en/package.php.php-codesniffer.php)and checks code against the coding standards used in CakePHP.

⚠️ The `master` branch contains codesniffer rules that are based on the PSR2 standard. If you want to check against the historical CakePHP coding standard use any of the `1.x` releases.

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

[](#installation)

You should install this codesniffer with composer:

```
composer require --dev "cakephp/cakephp-codesniffer"
vendor/bin/phpcs --config-set installed_paths /path/to/your/app/vendor/cakephp/cakephp-codesniffer

```

The second command lets `phpcs` know where to find your new sniffs. Ensure that you do not overwrite any existing `installed_paths` value.

Usage
-----

[](#usage)

Depending on how you installed the code sniffer changes how you run it. If you have installed phpcs, and this package with PEAR, you can do the following:

```
vendor/bin/phpcs --standard=CakePHP /path/to/code

```

⚠️ Warning when these sniffs are installed with composer, ensure that you have configured the CodeSniffer `installed_paths` setting.

Running Tests
-------------

[](#running-tests)

You can run tests with composer. Because of how PHPCS test suites work, there is additional configuration state in `phpcs` that is required.

```
composer test
```

Once this has been done once, you can use `phpunit --filter CakePHP` to run the tests for the rules in this repository.

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

[](#contributing)

If you'd like to contribute to the Code Sniffer, you can fork the project add features and send pull requests.

Releasing CakePHP Code Sniffer
------------------------------

[](#releasing-cakephp-code-sniffer)

- Create a signed tag
- Write the changelog in the tag commit

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor3

3 contributors hold 50%+ of commits

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 ~0 days

Total

2

Last Release

2591d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c209b4818ee3b767d514fbe30757b11d18459f0027bc64e294a78998a141967?d=identicon)[jacricelli](/maintainers/jacricelli)

---

Top Contributors

[![markstory](https://avatars.githubusercontent.com/u/24086?v=4)](https://github.com/markstory "markstory (171 commits)")[![antograssiot](https://avatars.githubusercontent.com/u/4977112?v=4)](https://github.com/antograssiot "antograssiot (54 commits)")[![ADmad](https://avatars.githubusercontent.com/u/142658?v=4)](https://github.com/ADmad "ADmad (51 commits)")[![bcrowe](https://avatars.githubusercontent.com/u/752603?v=4)](https://github.com/bcrowe "bcrowe (49 commits)")[![ceeram](https://avatars.githubusercontent.com/u/111448?v=4)](https://github.com/ceeram "ceeram (21 commits)")[![jrbasso](https://avatars.githubusercontent.com/u/26548?v=4)](https://github.com/jrbasso "jrbasso (18 commits)")[![lorenzo](https://avatars.githubusercontent.com/u/37621?v=4)](https://github.com/lorenzo "lorenzo (15 commits)")[![AD7six](https://avatars.githubusercontent.com/u/33387?v=4)](https://github.com/AD7six "AD7six (15 commits)")[![PhantomWatson](https://avatars.githubusercontent.com/u/1965565?v=4)](https://github.com/PhantomWatson "PhantomWatson (14 commits)")[![dereuromark](https://avatars.githubusercontent.com/u/39854?v=4)](https://github.com/dereuromark "dereuromark (10 commits)")[![dakota](https://avatars.githubusercontent.com/u/83255?v=4)](https://github.com/dakota "dakota (7 commits)")[![ravage84](https://avatars.githubusercontent.com/u/625761?v=4)](https://github.com/ravage84 "ravage84 (4 commits)")[![rchavik](https://avatars.githubusercontent.com/u/39490?v=4)](https://github.com/rchavik "rchavik (4 commits)")[![tersmitten](https://avatars.githubusercontent.com/u/3392962?v=4)](https://github.com/tersmitten "tersmitten (4 commits)")[![TiuTalk](https://avatars.githubusercontent.com/u/145339?v=4)](https://github.com/TiuTalk "TiuTalk (3 commits)")[![derekperkins](https://avatars.githubusercontent.com/u/3588778?v=4)](https://github.com/derekperkins "derekperkins (3 commits)")[![raul338](https://avatars.githubusercontent.com/u/7199046?v=4)](https://github.com/raul338 "raul338 (3 commits)")[![mirko-pagliai](https://avatars.githubusercontent.com/u/293199?v=4)](https://github.com/mirko-pagliai "mirko-pagliai (2 commits)")[![cdburgess](https://avatars.githubusercontent.com/u/216284?v=4)](https://github.com/cdburgess "cdburgess (2 commits)")[![carusogabriel](https://avatars.githubusercontent.com/u/16328050?v=4)](https://github.com/carusogabriel "carusogabriel (2 commits)")

---

Tags

frameworkcodesniffer

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jacricelli-cakephp-codesniffer/health.svg)

```
[![Health](https://phpackages.com/badges/jacricelli-cakephp-codesniffer/health.svg)](https://phpackages.com/packages/jacricelli-cakephp-codesniffer)
```

###  Alternatives

[cakephp/cakephp-codesniffer

CakePHP CodeSniffer Standards

23711.0M658](/packages/cakephp-cakephp-codesniffer)[yiisoft/yii2-coding-standards

Yii PHP Framework Version 2 - Coding standard tools

1831.0M165](/packages/yiisoft-yii2-coding-standards)[spryker/code-sniffer

Spryker Code Sniffer Standards

374.1M2.3k](/packages/spryker-code-sniffer)[pestphp/pest-plugin-stressless

Stressless plugin for Pest

67792.6k16](/packages/pestphp-pest-plugin-stressless)[linnk/allman-codesniffer

Allman CodeSniffer &amp; Linnk Standards

121.8k](/packages/linnk-allman-codesniffer)

PHPackages © 2026

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