PHPackages                             movisio/nais-cs - 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. movisio/nais-cs

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

movisio/nais-cs
===============

Coding styles rules and git hook for NAIS Based Applications

3.0.1(7mo ago)210.4k↓50%2BSD-3-ClausePHPPHP &gt;=8.1

Since May 29Pushed 7mo ago3 watchersCompare

[ Source](https://github.com/movisio/nais-cs)[ Packagist](https://packagist.org/packages/movisio/nais-cs)[ Docs](https://movisio.com)[ RSS](/packages/movisio-nais-cs/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (23)Used By (2)

nais-cs
=======

[](#nais-cs)

Coding styles rules and git hook for NAIS Based Applications

v3.0.0

- Require PHP 8.1
- Update slevomat/coding-standard to v8
- Enabled new sniffs `UselessConstantTypeHint`, `UnionTypeHintFormat` and `RequireNonCapturingCatch`

v2.0.2

- Allow usage with Composer v2

v2.0.0

- Require PHP 7.4
- Update to slevomat/coding-standard 6
- Remove lock on phpcs version
- Replace `SlevomatCodingStandard.TypeHints.TypeHintDeclaration` excludes with new `SlevomatCodingStandard.TypeHints.*TypeHint` ones
- Remove `UselessParentheses` check (was too strict and clashed with readability)
- Exclude a handful of minor PSR-12 spacing rules

v1.3.2

- Exclude all in assets directory

v1.3.1

- Repair .js and .css file exclude pattern

v1.3.0

- change some excludes to relative

v1.2.4

- limit codesniffer to 3.4.\* (3.5.0 brought better PSR12 which currently collides with the slevomat config)

v1.2.3

- CSS files no longer checked by `phpcs`

v1.2.2

- Eslint command is now called from node\_modules in pre-commmit hook
- Added extendable Eslint rules

v1.2.1

- Fixed eslint pre commit hook only for .js files

v1.2.0

- Added eslint support

v1.1.2

- Fix error when commit does not contain any \*.php files

v1.1.1

- Handle spaces in paths

v1.1.0

- Stop commit on warnings too

v1.0.2

- Setup excludes for js/css checks

v1.0.1

- Allow unused variables in foreach where only the key is used

v1.0.0

- Automatically installs a pre-commit hook on composer install/update

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance62

Regular maintenance activity

Popularity26

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 90.5% 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 ~135 days

Recently: every ~520 days

Total

18

Last Release

236d ago

Major Versions

1.3.2 → 2.0.02020-06-17

2.0.2 → 3.0.02022-10-03

PHP version history (3 changes)1.0PHP &gt;=7.0

2.0.0PHP &gt;=7.4

3.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/4b17d4000958913c3b2c477a979832a974da7264194a29da6e4ce127802f9049?d=identicon)[Kocicak](/maintainers/Kocicak)

![](https://www.gravatar.com/avatar/aa0bdd25a28532af1e28abfd77e8bc58ac8cc575232471b6cd8e6a08bc8e7397?d=identicon)[2DDTMovisio](/maintainers/2DDTMovisio)

![](https://www.gravatar.com/avatar/71a63f5186648b402215d2f79a0a93b59bb607cbfd5be892de54ff1f08cf0354?d=identicon)[jkavalik](/maintainers/jkavalik)

---

Top Contributors

[![jkavalik](https://avatars.githubusercontent.com/u/5812825?v=4)](https://github.com/jkavalik "jkavalik (19 commits)")[![Kocicak](https://avatars.githubusercontent.com/u/37833137?v=4)](https://github.com/Kocicak "Kocicak (1 commits)")[![namo-R](https://avatars.githubusercontent.com/u/22830798?v=4)](https://github.com/namo-R "namo-R (1 commits)")

---

Tags

phpcsrulesetnaismovisio

### Embed Badge

![Health badge](/badges/movisio-nais-cs/health.svg)

```
[![Health](https://phpackages.com/badges/movisio-nais-cs/health.svg)](https://phpackages.com/packages/movisio-nais-cs)
```

###  Alternatives

[phpcsstandards/phpcsutils

A suite of utility functions for use with PHP\_CodeSniffer

6233.4M58](/packages/phpcsstandards-phpcsutils)[woocommerce/woocommerce-sniffs

WooCommerce sniffs

496.8M42](/packages/woocommerce-woocommerce-sniffs)[consistence/coding-standard

Consistence - Coding Standard - PHP Code Sniffer rules

75833.3k94](/packages/consistence-coding-standard)[phpcompatibility/phpcompatibility-paragonie

A set of rulesets for PHP\_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by the Paragonie polyfill libraries.

1031.3M10](/packages/phpcompatibility-phpcompatibility-paragonie)[syde/phpcs

Syde PHP coding standards for WordPress projects.

1019.7k7](/packages/syde-phpcs)[ramsey/coding-standard

A common coding standard for Ramsey's PHP libraries.

1091.1k36](/packages/ramsey-coding-standard)

PHPackages © 2026

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