PHPackages                             longman/php-code-style - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. longman/php-code-style

ActivePhpcodesniffer-standard[Utility &amp; Helpers](/categories/utility)

longman/php-code-style
======================

Longish Code style configurations

10.5.0(3mo ago)922.8k↑100%16MITPHPPHP ^8.0

Since Jun 16Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/akalongman/php-code-style)[ Packagist](https://packagist.org/packages/longman/php-code-style)[ RSS](/packages/longman-php-code-style/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (6)Versions (43)Used By (6)

Longish code style configuration
================================

[](#longish-code-style-configuration)

This is a [PSR-12](http://www.php-fig.org/psr/psr-12/) based code style ruleset for [PHP Code Sniffer](https://github.com/squizlabs/PHP_CodeSniffer)

PHP Code Sniffer
----------------

[](#php-code-sniffer)

Configuration file: *longish.phpcs.xml*

### Usage

[](#usage)

1. Link longman/php-code-style repo as composer dependency

    `$ composer require --dev longman/php-code-style`
2. Extend provided configuration to adapt it to your project. For example, create custom `phpcs.xml` file and put:

```

        */_stubs.php

        */_stubs.php

```

3. For Laravel you can directly include `laravel.phpcs.xml`:

```

```

Running check (Laravel example):

```
vendor/bin/phpcs --standard=vendor/longman/php-code-style/laravel.phpcs.xml -spn --encoding=utf-8 --report-width=150 --colors --parallel=16 app/ config/ tests/

```

Running check with custom phpcs.xml:

```
vendor/bin/phpcs --standard=phpcs.xml -spn --encoding=utf-8 --report-width=150 --colors --parallel=16 app/ config/ tests/

```

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance81

Actively maintained with recent releases

Popularity33

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 98.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 ~78 days

Recently: every ~250 days

Total

42

Last Release

98d ago

Major Versions

5.0.4 → 6.0.02021-04-14

6.0.1 → 7.0.02021-05-10

7.0.0 → 8.0.02021-12-16

8.0.3 → 9.0.02022-06-22

9.0.2 → 10.0.02023-01-05

PHP version history (3 changes)3.0.0PHP ^7.1

5.0.4PHP ^7.1|^8.0

8.0.0PHP ^8.0

### Community

Maintainers

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

---

Top Contributors

[![akalongman](https://avatars.githubusercontent.com/u/423050?v=4)](https://github.com/akalongman "akalongman (77 commits)")[![noplanman](https://avatars.githubusercontent.com/u/9423417?v=4)](https://github.com/noplanman "noplanman (1 commits)")

---

Tags

laravelphpcssniffer

### Embed Badge

![Health badge](/badges/longman-php-code-style/health.svg)

```
[![Health](https://phpackages.com/badges/longman-php-code-style/health.svg)](https://phpackages.com/packages/longman-php-code-style)
```

###  Alternatives

[mediawiki/mediawiki-codesniffer

MediaWiki CodeSniffer Standards

343.2M440](/packages/mediawiki-mediawiki-codesniffer)[worksome/coding-style

Worksomes coding style

49814.9k66](/packages/worksome-coding-style)[nette/coding-standard

41937.1k19](/packages/nette-coding-standard)[wp-cli/wp-cli-tests

WP-CLI testing framework

423.1M141](/packages/wp-cli-wp-cli-tests)[shopsys/coding-standards

Coding standards definition compatible with PSR-2

20280.7k20](/packages/shopsys-coding-standards)[syde/phpcs

Syde PHP coding standards for WordPress projects.

1027.6k9](/packages/syde-phpcs)

PHPackages © 2026

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