PHPackages                             linnk/allman-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. linnk/allman-codesniffer

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

linnk/allman-codesniffer
========================

Allman CodeSniffer &amp; Linnk Standards

2.0(2y ago)122.1k5[2 issues](https://github.com/Linnk/Allman_CodeSniffer/issues)MITPHPPHP &gt;=7.3.0

Since Aug 16Pushed 3mo ago3 watchersCompare

[ Source](https://github.com/Linnk/Allman_CodeSniffer)[ Packagist](https://packagist.org/packages/linnk/allman-codesniffer)[ Docs](http://lionwriter.com)[ RSS](/packages/linnk-allman-codesniffer/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (11)Used By (0)

Allman CodeSniffer
==================

[](#allman-codesniffer)

This is a continuation of my previous fixer [PHP\_Allman](https://github.com/Linnk/PHP-Allman), this time based on [PHP\_CodeSniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer), which is proven to be more powerful and flexible in the long run.

The principles are the same for this standard:

1. I believe in [Allman indent style](https://en.wikipedia.org/wiki/Indent_style#Allman_style).
2. I believe in tabs instead of spaces.

Example:

```
while (x == y)
{
	something();
	something_else();

	if (true)
	{
		one_more();
	}
}

final_thing();

```

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

[](#installation)

Using composer in your projects:

```
# Require PHP_CodeSniffer and this Allman_CodeSniffer (standard)
composer require squizlabs/php_codesniffer
composer require linnk/allman-codesniffer

# Add Allman standard to install_paths
vendor/bin/phpcs --config-set installed_paths vendor/linnk/allman-codesniffer/

# Set Allman as default :)
vendor/bin/phpcs --config-set default_standard Allman

# Verifying
vendor/bin/phpcs -e
```

How to use:
-----------

[](#how-to-use)

```
$ composer/bin/phpcs path/to/your/code
```

**Global installation** for general purposes:

```
# Global installation
composer global require squizlabs/php_codesniffer
composer global require linnk/allman-codesniffer

# Set `phpcs` and `phpcbf` in PATH
export PATH="$PATH:$HOME/.composer/vendor/bin"

# Set installed_paths
phpcs --config-set installed_paths ~/.composer/vendor/linnk/allman-codesniffer/

# Set Allman as default
phpcs --config-set default_standard Allman
```

\## Contributing

```
# Clone repo
$ git clone https://github.com/Linnk/Allman_CodeSniffer.git

# Installation
$ composer install

# Configuration
$ composer/bin/phpcs --config-set installed_paths /full/path/to/Allman_CodeSniffer/
$ composer/bin/phpcs --config-set default_standard Allman
$ composer/bin/phpcs --config-set report_width auto
```

**Notice**: ^ Our composer folder here is `composer` instead of `vendor`. The irony of following standards.

TO-DO: Add instructions for podman container

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance50

Moderate activity, may be stable

Popularity29

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 80.7% 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 ~307 days

Recently: every ~688 days

Total

10

Last Release

841d ago

Major Versions

1.0.8 → 2.02024-03-14

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/67562?v=4)[Ignacio Benavides](/maintainers/Linnk)[@Linnk](https://github.com/Linnk)

---

Top Contributors

[![Linnk](https://avatars.githubusercontent.com/u/67562?v=4)](https://github.com/Linnk "Linnk (46 commits)")[![Adrian0350](https://avatars.githubusercontent.com/u/4029295?v=4)](https://github.com/Adrian0350 "Adrian0350 (9 commits)")[![Herz3h](https://avatars.githubusercontent.com/u/1900696?v=4)](https://github.com/Herz3h "Herz3h (1 commits)")[![rodrigoprimo](https://avatars.githubusercontent.com/u/77215?v=4)](https://github.com/rodrigoprimo "rodrigoprimo (1 commits)")

---

Tags

frameworkcodesniffer

### Embed Badge

![Health badge](/badges/linnk-allman-codesniffer/health.svg)

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

###  Alternatives

[cakephp/cakephp-codesniffer

CakePHP CodeSniffer Standards

23711.7M763](/packages/cakephp-cakephp-codesniffer)[spryker/code-sniffer

Spryker Code Sniffer Standards

384.3M2.8k](/packages/spryker-code-sniffer)[yiisoft/yii2-coding-standards

Yii PHP Framework Version 2 - Coding standard tools

1821.2M177](/packages/yiisoft-yii2-coding-standards)[pestphp/pest-plugin-stressless

Stressless plugin for Pest

681.0M18](/packages/pestphp-pest-plugin-stressless)[silverstripe/behat-extension

SilverStripe framework extension for Behat

32585.8k5](/packages/silverstripe-behat-extension)

PHPackages © 2026

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