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

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

themosis/cs
===========

The Themosis coding standard.

016

Since Oct 21Pushed 1y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Themosis Coding Standard
========================

[](#themosis-coding-standard)

Themosis CS is the coding standard used by Themosis in its projects and libraries.

The package provides a [PHP Code Sniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer/) rules set that allows anyone to format their codebase using our coding standards.

The `Themosis` ruleset is following the `PSR-12` ruleset with some refinements:

- Force strict type declaration
- Allow method names with underscore in test files

> The list of rules may change over time...

Usage
-----

[](#usage)

First install the package using [Composer](https://getcomposer.org/), as well as the [dealerdirect/phpcodesniffer-composer-installer](https://github.com/PHPCSStandards/composer-installer) plugin like so:

```
composer require --dev themosis/cs dealerdirect/phpcodesniffer-composer-installer
```

> Composer may ask to "allow" the `dealerdirect/phpcodesniffer-composer-installer` plugin. Choose `yes` to allow.

The additional plugin will automatically make PHPCS rulesets available in your project. Upon installation, you should have the `phpcs` and `phpcbf` binary files installed, you can run `php vendor/bin/phpcs -i` to list the available rulesets from the command-line.

### Add Themosis ruleset

[](#add-themosis-ruleset)

Once the packages are installed in your project, create a `phpcs.xml.dist` file at the root of your project and add the following content:

```

    ./src
    ./tests

```

This is a basic ruleset for your project. The `PHP Code Sniffer` library is using an `xml` configuration file. When running the `phpcs` commands, it will automatically load the ruleset before execution.

The above files will apply the `Themosis` ruleset against files stored inside the `src` and `tests` directories.

Additional information
----------------------

[](#additional-information)

- [PHP Code Sniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer)

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f50d43fa42a64e828395bf8aff851be14c2278cfb6b364ba64880c45afa9c09?d=identicon)[jlambe](/maintainers/jlambe)

---

Top Contributors

[![jlambe](https://avatars.githubusercontent.com/u/1917490?v=4)](https://github.com/jlambe "jlambe (11 commits)")

### Embed Badge

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

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

PHPackages © 2026

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