PHPackages                             vektah/psr2 - 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. vektah/psr2

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

vektah/psr2
===========

A slightly relaxed PSR-2 phpcs ruleset

1.0.0(12y ago)04216

Since Sep 12Pushed 12y agoCompare

[ Source](https://github.com/Vektah/phpcs-PSR2-Vektah)[ Packagist](https://packagist.org/packages/vektah/psr2)[ RSS](/packages/vektah-psr2/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (6)

vektah/psr-2
------------

[](#vektahpsr-2)

This is a slightly releaxed PSR-2 ruleset for phpcs.

- Does not check line length: Screens keep getting wider, why doesnt our code?
- Does not limit to one param per line for multi line functions: Its often much clearer to have:

```
foo([
	'asdf' => 'hjkl',
]);

```

compared to

```
foo(
	[
		'asdf' => 'hjkl',
	]
);

```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Unknown

Total

1

Last Release

4624d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/05cbc29645134e6b4b1472e66a3966f5627d346ddbfacf6c873e48b2e15c64af?d=identicon)[Vektah](/maintainers/Vektah)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/vektah-psr2/health.svg)

```
[![Health](https://phpackages.com/badges/vektah-psr2/health.svg)](https://phpackages.com/packages/vektah-psr2)
```

###  Alternatives

[phpdocumentor/type-resolver

A PSR-5 based resolver of Class names, Types and Structural Element Names

9.2k719.5M166](/packages/phpdocumentor-type-resolver)[pimple/pimple

Pimple, a simple Dependency Injection Container

2.7k130.5M1.4k](/packages/pimple-pimple)[league/container

A fast and intuitive dependency injection container.

86387.8M342](/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)

PHPackages © 2026

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