PHPackages                             triopsi/triopsics - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. triopsi/triopsics

ActivePhpcodesniffer-standard[PSR &amp; Standards](/categories/psr-standards)

triopsi/triopsics
=================

Triopsi Code Standard for phpcs.

v1.0.0(3y ago)01001GPLv3PHP &gt;=7.4

Since Jun 27Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Triopsi-Hosting/code-standard)[ Packagist](https://packagist.org/packages/triopsi/triopsics)[ RSS](/packages/triopsi-triopsics/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (1)

Triopsi Coding Standards for PHP\_CodeSniffer
=============================================

[](#triopsi-coding-standards-for-php_codesniffer)

- [Introduction](#introduction)
- [Installation](#installation)
    - [Requirements](#requirements)
    - [Standalone](#standalone)
- [How to use](#how-to-use)
    - [Command line](#command-line)

Introduction
------------

[](#introduction)

This project is a collection of [PHP\_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) rules (sniffs) to validate code developed for Triopsi Hosting Package. It ensures code quality and adherence to coding conventions, especially the official Triopsi Hosting Coding Standards.

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

[](#installation)

### Requirements

[](#requirements)

The Triopsi Hosting Coding Standards require PHP 5.4 or higher and [PHP\_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) version **3.3.1** or higher.

### Standalone

[](#standalone)

1. Install PHP\_CodeSniffer by following its [installation instructions](https://github.com/squizlabs/PHP_CodeSniffer#installation) (via Composer, Phar file, PEAR, or Git checkout).

    Do ensure that PHP\_CodeSniffer's version matches our [requirements](#requirements), if, for example, you're using [VVV](https://github.com/Varying-Vagrant-Vagrants/VVV).
2. Clone the Triopsi Hosting standards repository:

    ```
     git clone -b master https://github.com/Triopsi-Hosting/code-standard.git thcs

    ```
3. Add its path to the PHP\_CodeSniffer configuration:

    ```
     phpcs --config-set installed_paths /path/to/thcs

    ```

    **Pro-tip:** Alternatively, you can tell PHP\_CodeSniffer the path to the Triopsi standards by adding the following snippet to your custom ruleset:

    ```

    ```

To summarize:

```
cd ~/projects
git clone https://github.com/Triopsi-Hosting/code-standard.git thcs
git clone -b master https://github.com/Triopsi-Hosting/code-standard.git thcs
cd phpcs
./bin/phpcs --config-set installed_paths ../thcs
```

And then add the `~/projects/phpcs/bin` directory to your `PATH` environment variable via your `.bashrc`.

You should then see `Triopsi` et al listed when you run `phpcs -i`.

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

[](#how-to-use)

### Command line

[](#command-line)

Run the `phpcs` command line tool on a given file or directory, for example:

```
phpcs --standard=Triopsi index.php

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1420d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/958bb343d04c0eda9b612d3a763b25a83cf8d8d7bcf7b36437d8a047c550716c?d=identicon)[triopsi](/maintainers/triopsi)

---

Top Contributors

[![triopsi](https://avatars.githubusercontent.com/u/5702824?v=4)](https://github.com/triopsi "triopsi (14 commits)")

### Embed Badge

![Health badge](/badges/triopsi-triopsics/health.svg)

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

###  Alternatives

[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.1M29](/packages/yoast-yoastcs)[mayflower/mo4-coding-standard

PHP CodeSniffer ruleset implementing the MO4 coding standards extending the Symfony coding standards.

17508.3k5](/packages/mayflower-mo4-coding-standard)[orisai/coding-standard

Strict PHP coding standard

19193.5k62](/packages/orisai-coding-standard)

PHPackages © 2026

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