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)02981MITPHPPHP &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 today

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

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

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

882d 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

[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k16.4k79](/packages/elgg-elgg)

PHPackages © 2026

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