PHPackages                             rask/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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. rask/coding-standard

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

rask/coding-standard
====================

PHPCS coding standard additions that please rask

0.2.0(2y ago)0298↓100%1MITPHPPHP &gt;=8.0

Since Jul 15Pushed 2y ago1 watchersCompare

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

READMEChangelogDependencies (9)Versions (8)Used By (1)

rask/coding-standard
====================

[](#raskcoding-standard)

Opinionated PHP coding standard rules to be used with PHP\_CodeSniffer.

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

[](#installation)

```
$ composer require --dev rask/coding-standard

```

In your `phpcs.xml`:

```

```

Sniffs
------

[](#sniffs)

### RaskCodingStandard.NamingConventions.VariableNaming

[](#raskcodingstandardnamingconventionsvariablenaming)

Variable names must be `snake_case`, must contain only `a-z`, `0-9`, and `_`, must not begin or end with an underscore, and must not contain two consecutive underscores. This also applies to properties within classes.

OK:

```
$hello_world_1_how_are_you2

```

ERROR:

```
$hello__World_how_are_you_

```

### RaskCodingStandard.NamingConventions.FunctionNaming

[](#raskcodingstandardnamingconventionsfunctionnaming)

Function names must be `snake_case`, must contain only `a-z`, `0-9`, and `_`, must not begin or end with an underscore, and must not contain two consecutive underscores. This only applies to "loose" functions, not methods.

OK:

```
function hello_world() { ... }

```

ERROR:

```
function helloWorld() { ... }

```

Todo
----

[](#todo)

\[ \] Add proper tests, the PHPCS test setup is wonky to use, maybe write a new one or copy from some place else

License
-------

[](#license)

MIT License. See [LICENSE.md](./LICENSE.md).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

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

Recently: every ~415 days

Total

7

Last Release

836d ago

PHP version history (2 changes)0.1.0PHP &gt;=7.3

0.2.0PHP &gt;=8.0

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

code-stylecoding-standardcoding-standardsformattingphpphpcs

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[league/container

A fast and intuitive dependency injection container.

86787.8M343](/packages/league-container)[stella-maris/clock

A pre-release of the proposed PSR-20 Clock-Interface

7947.5M2](/packages/stella-maris-clock)[wptrt/wpthemereview

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

217736.5k29](/packages/wptrt-wpthemereview)[inpsyde/modularity

Modular PSR-11 implementation for WordPress plugins, themes or libraries.

54383.3k3](/packages/inpsyde-modularity)[php-standard-library/phpstan-extension

PHPStan PSL extension

201.2M13](/packages/php-standard-library-phpstan-extension)[elie29/zend-phpdi-config

PSR-11 PHP-DI autowire container configurator for Laminas, Mezzio, ZF2, ZF3 and Zend Expressive applications

20238.6k7](/packages/elie29-zend-phpdi-config)

PHPackages © 2026

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