PHPackages                             fuegas/vanilla-psr - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. fuegas/vanilla-psr

ActiveLibrary[Testing &amp; Quality](/categories/testing)

fuegas/vanilla-psr
==================

A modified ruleset for Coding Style checks

1.2.0(9y ago)03.7k2MITPHP

Since Aug 1Pushed 9y ago1 watchersCompare

[ Source](https://github.com/fuegas/vanilla-psr)[ Packagist](https://packagist.org/packages/fuegas/vanilla-psr)[ RSS](/packages/fuegas-vanilla-psr/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (2)

Vanilla PSR
===========

[](#vanilla-psr)

A modified ruleset for Code Style checks. It is based on PSR-2 but allows to indent with 2 spaces instead of 4.

Known issues:
=============

[](#known-issues)

None for now. When you find an issue, please [create an issue](https://github.com/fuegas/vanilla-psr/issues/new).

Usage:
======

[](#usage)

You can reference the library

Composer
--------

[](#composer)

Vanilla-psr can be installed using using [composer](http://getcomposer.org/). Simply add `fuegas/vanilla-psr` to your composer.json file.

```
{
    "require": {
        "fuegas/vanilla-psr": "*"
    }
}
```

PHPCS
-----

[](#phpcs)

You can use the ruleset with the command ``.

If you only want to type `phpcs` you can create the file `phpcs.xml` in the root of your project with contents like this:

```

  Coding standard using vanilla PSR.

  src/FileToTest.php
  tests/*.php
  tests/**/*.php

```

If you want to use the standard from cli you can use the following command:

```
vendor/bin/phpcs \
  --standard=vanilla-psr \
  --runtime-set installed_paths vendor/fuegas/vanilla-psr \
  tests

```

Grunt
-----

[](#grunt)

If you use Grunt to automate the check of coding style standards, the following option can be set to use vanilla-psr (assuming you installed vanilla-psr using composer):

```
phpcs: {
  options: {
    standard: './vendor/fuegas/vanilla-psr/vanilla-psr/ruleset.xml',
  }
}
```

Changelog
=========

[](#changelog)

Next
----

[](#next)

1.2.0
-----

[](#120)

- Fix standard paths so they can be detected and included

1.1
---

[](#11)

- FIX multiline declarations of methods and switches, 2 spaces indenting can be used
- FIX multiline call, 2 spaces indenting can be used

1.0
---

[](#10)

- Base ruleset on PSR-2
- Allow indenting of 2 spaces instead of 4

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity66

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

Every ~296 days

Total

3

Last Release

3343d ago

### Community

Maintainers

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

---

Top Contributors

[![fuegas](https://avatars.githubusercontent.com/u/442230?v=4)](https://github.com/fuegas "fuegas (20 commits)")

### Embed Badge

![Health badge](/badges/fuegas-vanilla-psr/health.svg)

```
[![Health](https://phpackages.com/badges/fuegas-vanilla-psr/health.svg)](https://phpackages.com/packages/fuegas-vanilla-psr)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M571](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)

PHPackages © 2026

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