PHPackages                             trovit/php-code-validator - 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. trovit/php-code-validator

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

trovit/php-code-validator
=========================

Provides a basic system to organize and execute php code validators

v1.1.3(9y ago)01381MITPHP

Since Sep 28Pushed 9y ago9 watchersCompare

[ Source](https://github.com/trovit/php-code-validator)[ Packagist](https://packagist.org/packages/trovit/php-code-validator)[ RSS](/packages/trovit-php-code-validator/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (9)Versions (8)Used By (1)

Php Code Validator
==================

[](#php-code-validator)

[![Build Status](https://camo.githubusercontent.com/79ea7ba04d596cc02a49667e0b1250a1657d8f90a8896c4a162c7b706f05af34/68747470733a2f2f7472617669732d63692e6f72672f74726f7669742f7068702d636f64652d76616c696461746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/trovit/php-code-validator)

Provides a basic system to organize and execute php code validators.

There's a [Symfony bundle](https://github.com/trovit/php-code-validator-bundle) with this component.

Code structure
--------------

[](#code-structure)

[![code strcutre](https://camo.githubusercontent.com/715cf04c7716ccb5715c50c73800f1d8761a266b9005ffba9048e73ea93afa14/687474703a2f2f692e696d6775722e636f6d2f525a36716d5a332e706e67)](https://camo.githubusercontent.com/715cf04c7716ccb5715c50c73800f1d8761a266b9005ffba9048e73ea93afa14/687474703a2f2f692e696d6775722e636f6d2f525a36716d5a332e706e67)

Create your own Validator
-------------------------

[](#create-your-own-validator)

When you need to validate or check your code and the validators provided by this bundle doesn't satisfy your needs (different code language, formats, etc...) there is the possibility to create a new Validator class by implementing the Validator interface (*Trovit\\PhpCodeValidator\\Validators\\Validator*) and implement its method *checkCode*

List of available validators
----------------------------

[](#list-of-available-validators)

- *CodeSnifferValidator*: Wrapper of [PHP Code Sniffer](https://github.com/squizlabs/PHP_CodeSniffer)
- *ParallelLintValidator*: Wrapper of [PHP Parallel Lint](https://github.com/JakubOnderka/PHP-Parallel-Lint)

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity68

Established project with proven stability

 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

Every ~20 days

Total

7

Last Release

3435d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7198934?v=4)[Gerard Brull](/maintainers/poteirard)[@poteirard](https://github.com/poteirard)

---

Top Contributors

[![poteirard](https://avatars.githubusercontent.com/u/7198934?v=4)](https://github.com/poteirard "poteirard (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/trovit-php-code-validator/health.svg)

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

###  Alternatives

[friendsoftypo3/content-blocks

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

101466.4k45](/packages/friendsoftypo3-content-blocks)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1155.2k](/packages/rcsofttech-audit-trail-bundle)[blackfire/player

A powerful web crawler and web scraper with Blackfire support

49517.1k](/packages/blackfire-player)[altis/local-server

Local Server module for Altis

18217.0k2](/packages/altis-local-server)

PHPackages © 2026

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