PHPackages                             opositatest/coding-standards - 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. opositatest/coding-standards

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

opositatest/coding-standards
============================

The coding standards in the OpositaTest way

v0.1.5(3y ago)05.5kMITPHPPHP &gt;=7.4

Since Oct 27Pushed 3y ago9 watchersCompare

[ Source](https://github.com/opositatest/coding-standards)[ Packagist](https://packagist.org/packages/opositatest/coding-standards)[ RSS](/packages/opositatest-coding-standards/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (5)Dependencies (6)Versions (8)Used By (0)

Opositatest Coding Standards
============================

[](#opositatest-coding-standards)

> The coding standards in the Opositates way.

It's based on the ideas of [`LIN3S/CS`](https://github.com/LIN3S/CS).

WHY?
----

[](#why)

This package is created to centralize all the checks style of Opositatest projects, in an easy way to install all the tools and improving the maintainability. It is a flexible and customizable solution to automatize all related with coding standards.

- Checks if [Composer](https://getcomposer.org/) json has changes, the lock must be committed too.
- Fixes the PHP code with fully customizable [PHP-CS-Fixer](http://cs.sensiolabs.org/).
- Checks mess detections with [PHPMD](http://phpmd.org/).

> This library is very focused to use as pre-commit hook. The checkers only validate the files that will be committed.

Getting started
---------------

[](#getting-started)

The recommended and the most suitable way to install is through [Composer](https://getcomposer.org/). Be sure the tool is installed in your system and execute the following command:

```
$ composer require opositatest/coding-standards --dev

```

Then you have to update the `composer.json` with the following code:

```
"scripts": {
    "opos-cs-scripts": [
        "Opositatest\\CodingStandards\\Composer\\Hooks::buildDistFile",
        "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
        "Opositatest\\CodingStandards\\Composer\\Hooks::addHooks",
        "Opositatest\\CodingStandards\\Composer\\Hooks::addFiles"
    ]
},
"extra": {
    "incenteev-parameters": {
        "file": ".opos_cs.yml",
        "dist-file": ".opos_cs.yml.dist"
    },
    "scripts-dev": {
        "post-install-cmd": [
            "@opos-cs-scripts"
        ],
        "post-update-cmd": [
            "@opos-cs-scripts"
        ]
    }
}

```

> REMEMBER: The `.opos_cs.yml` file is generated dynamically with Composer. The best practices recommend that only track the `.dist` file ignoring the `.opos_cs.yml` inside `.gitignore`.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90% 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 ~163 days

Recently: every ~203 days

Total

6

Last Release

1255d ago

PHP version history (2 changes)v0.1.0PHP ^7.4

v0.1.3PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/33d23db34cdb32dd20ebae582d101d7eb48777143e993dd19bbc89d3275c5ae2?d=identicon)[Chrysweel](/maintainers/Chrysweel)

---

Top Contributors

[![dlores](https://avatars.githubusercontent.com/u/7313926?v=4)](https://github.com/dlores "dlores (18 commits)")[![Acomatico](https://avatars.githubusercontent.com/u/42901315?v=4)](https://github.com/Acomatico "Acomatico (1 commits)")[![jdeveloper](https://avatars.githubusercontent.com/u/8874?v=4)](https://github.com/jdeveloper "jdeveloper (1 commits)")

### Embed Badge

![Health badge](/badges/opositatest-coding-standards/health.svg)

```
[![Health](https://phpackages.com/badges/opositatest-coding-standards/health.svg)](https://phpackages.com/packages/opositatest-coding-standards)
```

###  Alternatives

[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

103519.9k53](/packages/friendsoftypo3-content-blocks)[craftcms/cms

Craft CMS

3.6k3.6M3.0k](/packages/craftcms-cms)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21866.0M1.7k](/packages/drupal-core)[phpactor/phpactor

PHP refactoring and intellisense tool for text editors

1.9k17.1k1](/packages/phpactor-phpactor)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M568](/packages/shopware-core)

PHPackages © 2026

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