PHPackages                             bartlett/sarif-php-converters - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. bartlett/sarif-php-converters

ActiveLibrary[Testing &amp; Quality](/categories/testing)

bartlett/sarif-php-converters
=============================

Allows PHP projects to print a static code analysis report in SARIF format

1.5.0(3mo ago)443.2k—5.3%1MITPHPPHP ^8.2CI passing

Since Dec 5Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/llaville/sarif-php-converters)[ Packagist](https://packagist.org/packages/bartlett/sarif-php-converters)[ RSS](/packages/bartlett-sarif-php-converters/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (6)Versions (17)Used By (0)

SARIF PHP Converters
====================

[](#sarif-php-converters)

[![StandWithUkraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg)](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md)[![GitHub Discussions](https://camo.githubusercontent.com/e6889436f4a8dc45fdae100a00021fb9e8acf301d5d3a007805dd9df47d99c7b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f64697363757373696f6e732f6c6c6176696c6c652f73617269662d7068702d636f6e76657274657273)](https://github.com/llaville/sarif-php-converters/discussions)

ReleasesBranchPHPPackagistLicenseDocumentationStable v1.0.x[![Branch 1.0](https://camo.githubusercontent.com/fe1cf10ae654b15922a54e444e5c23f782fc9b781b8d24f32b866a808f058a14/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6272616e63682d312e302d6f72616e6765)](https://github.com/llaville/sarif-php-converters/tree/1.0)[![Minimum PHP Version)](https://camo.githubusercontent.com/50db578d95d325786ddd2c30bbe971ad25a10bc84a48216bc11e77f3bd09bb92/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f626172746c6574742f73617269662d7068702d636f6e766572746572732f312e302e30)](https://www.php.net/supported-versions.php)[![Stable Version 1.0](https://camo.githubusercontent.com/08b2cb9b23de38c0e5dc87fb240a22ac472b3f5d2b83f5d9c789be4d5b1b9331/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d76312e302e302d626c7565)](https://packagist.org/packages/bartlett/sarif-php-converters)[![License 1.0](https://camo.githubusercontent.com/b1335946bbfe51a444abe300e554fbce161af575c0b35870a6971b6a6b6b4bd6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f626172746c6574742f73617269662d7068702d636f6e76657274657273)](https://github.com/llaville/sarif-php-converters/blob/1.0/LICENSE)[![Documentation 1.0](https://camo.githubusercontent.com/2af568c5d303da11e5e21de55eb5a997291c4faeccfdfa802e86409aa78d22fc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63756d656e746174696f6e2d76312e302d677265656e)](https://github.com/llaville/sarif-php-converters/tree/1.0/docs)Stable v1.1.x[![Branch 1.1](https://camo.githubusercontent.com/9fb0f98b5b29f8f4468e2a20b05ddf00e5c8a28b38bb645537670cff1426f8da/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6272616e63682d312e312d6f72616e6765)](https://github.com/llaville/sarif-php-converters/tree/1.1)[![Minimum PHP Version)](https://camo.githubusercontent.com/6a699a319dbb80b9585ba69471fc7929c33ba17186f54a1888914ddb03588907/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f626172746c6574742f73617269662d7068702d636f6e766572746572732f312e312e32)](https://www.php.net/supported-versions.php)[![Stable Version 1.1](https://camo.githubusercontent.com/6c8e72763890a7dd9003754cf79a372bb42e4aad8aa03ddeabd8b4ad6fb714a5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d76312e312e322d626c7565)](https://packagist.org/packages/bartlett/sarif-php-converters)[![License 1.1](https://camo.githubusercontent.com/b1335946bbfe51a444abe300e554fbce161af575c0b35870a6971b6a6b6b4bd6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f626172746c6574742f73617269662d7068702d636f6e76657274657273)](https://github.com/llaville/sarif-php-converters/blob/1.1/LICENSE)[![Documentation 1.1](https://camo.githubusercontent.com/627f5b66b076d853c103c37ba833df3d1dee3c14dbbb87524913a257aa1ab48e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63756d656e746174696f6e2d76312e312d677265656e)](https://github.com/llaville/sarif-php-converters/tree/1.1/docs)Stable v1.2.x[![Branch 1.2](https://camo.githubusercontent.com/c25d19bc562a0cba8e2e522c672d3a7f73421c74436a5c485a6d3d3096949bdc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6272616e63682d312e322d6f72616e6765)](https://github.com/llaville/sarif-php-converters/tree/1.2)[![Minimum PHP Version)](https://camo.githubusercontent.com/4e3838c25ff5b6f06c995e5b73a317116bf38583685b088fc17bd43d409c768f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f626172746c6574742f73617269662d7068702d636f6e766572746572732f312e322e30)](https://www.php.net/supported-versions.php)[![Stable Version 1.2](https://camo.githubusercontent.com/cd2d50dbdcf33fc40675c4627cfafadfa6ca49e4217171372dc5fff3fe337f2b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d76312e322e302d626c7565)](https://packagist.org/packages/bartlett/sarif-php-converters)[![License 1.2](https://camo.githubusercontent.com/b1335946bbfe51a444abe300e554fbce161af575c0b35870a6971b6a6b6b4bd6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f626172746c6574742f73617269662d7068702d636f6e76657274657273)](https://github.com/llaville/sarif-php-converters/blob/1.2/LICENSE)[![Documentation 1.2](https://camo.githubusercontent.com/83906afab87d9950845c87ddad08ea38b690152c4f84e975ddac7de88a1b32cc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63756d656e746174696f6e2d76312e322d677265656e)](https://github.com/llaville/sarif-php-converters/tree/1.2/docs)Stable v1.3.x[![Branch 1.3](https://camo.githubusercontent.com/678eb2d1535350fa1fb422e3f80f68fa7dafaf02442ed58b81c97434a4e48a89/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6272616e63682d312e332d6f72616e6765)](https://github.com/llaville/sarif-php-converters/tree/1.3)[![Minimum PHP Version)](https://camo.githubusercontent.com/c1008f83725ec629004486844f41aeab309cf130e1c0a14ce4ceb6cc3ec6254f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f626172746c6574742f73617269662d7068702d636f6e766572746572732f312e332e31)](https://www.php.net/supported-versions.php)[![Stable Version 1.3](https://camo.githubusercontent.com/8e0f29e5bddfe555a9d069c9321330f88c312ab816d29cc74151110f4e4b5bb7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d76312e332e312d626c7565)](https://packagist.org/packages/bartlett/sarif-php-converters)[![License 1.3](https://camo.githubusercontent.com/b1335946bbfe51a444abe300e554fbce161af575c0b35870a6971b6a6b6b4bd6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f626172746c6574742f73617269662d7068702d636f6e76657274657273)](https://github.com/llaville/sarif-php-converters/blob/1.3/LICENSE)[![Documentation 1.3](https://camo.githubusercontent.com/55db6ac0a8358cabff49834c9bceb9ef08b1a47365f75374956ea78bace4cb20/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63756d656e746174696f6e2d76312e332d677265656e)](https://github.com/llaville/sarif-php-converters/tree/1.3/docs)Stable v1.4.x[![Branch 1.4](https://camo.githubusercontent.com/c5b75597fc5c0f031a5a77812dd2476935b094ddd26770bf3daa1ea0293e4788/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6272616e63682d312e342d6f72616e6765)](https://github.com/llaville/sarif-php-converters/tree/1.4)[![Minimum PHP Version)](https://camo.githubusercontent.com/14d2f7d2ec4f66c0cb7d6b7df262905eedf1941c304774e2a712d69f8168fb43/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f626172746c6574742f73617269662d7068702d636f6e766572746572732f312e342e30)](https://www.php.net/supported-versions.php)[![Stable Version 1.4](https://camo.githubusercontent.com/104a836519bdec50c4269190d18053694597392d9bc2c717f9708e447745ba8f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d76312e342e302d626c7565)](https://packagist.org/packages/bartlett/sarif-php-converters)[![License 1.4](https://camo.githubusercontent.com/b1335946bbfe51a444abe300e554fbce161af575c0b35870a6971b6a6b6b4bd6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f626172746c6574742f73617269662d7068702d636f6e76657274657273)](https://github.com/llaville/sarif-php-converters/blob/1.4/LICENSE)[![Documentation 1.4](https://camo.githubusercontent.com/7c5a766c1117a2112b190d8f18983b5cfc0cd587c510f7df6a255d7b4d326743/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63756d656e746174696f6e2d76312e342d677265656e)](https://github.com/llaville/sarif-php-converters/tree/1.4/docs)Stable v1.5.x[![Branch 1.5](https://camo.githubusercontent.com/259e332182673602549e3f9bdd40afd0bc3f5218758b511bbae5cd4d0b464994/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6272616e63682d312e352d6f72616e6765)](https://github.com/llaville/sarif-php-converters/tree/1.5)[![Minimum PHP Version)](https://camo.githubusercontent.com/edb2b07add88409a8eeb94ffa947c75257a9d3bae3d84dffddbe5076b344fc67/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f626172746c6574742f73617269662d7068702d636f6e766572746572732f312e352e30)](https://www.php.net/supported-versions.php)[![Stable Version 1.5](https://camo.githubusercontent.com/58ba5db8bec67ebd5ce7819b99737f605395873e72c13480280e58144dcef8a2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d76312e352e302d626c7565)](https://packagist.org/packages/bartlett/sarif-php-converters)[![License 1.5](https://camo.githubusercontent.com/b1335946bbfe51a444abe300e554fbce161af575c0b35870a6971b6a6b6b4bd6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f626172746c6574742f73617269662d7068702d636f6e76657274657273)](https://github.com/llaville/sarif-php-converters/blob/1.5/LICENSE)[![Documentation 1.5](https://camo.githubusercontent.com/71d9dc71aef19f493cfff5def701ed05b67ee604f6e8cbf1d55c8a724b1055e0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63756d656e746174696f6e2d76312e352d677265656e)](https://github.com/llaville/sarif-php-converters/tree/1.5/docs)Introduction
------------

[](#introduction)

SARIF, the [Static Analysis Results Interchange Format](https://docs.oasis-open.org/sarif/sarif/v2.1.0/sarif-v2.1.0.html), defines a standard format for the output of static analysis tools. It is a powerful and sophisticated format suited to the needs of a wide variety of tools.

There are a lot of PHP project that do [Static Code Analysis](https://owasp.org/www-community/controls/Static_Code_Analysis), but few of them support the SARIF format.

You can consider to be lucky when they provide at least the `checkstyle` or `junit` format.

This library may be considered as a producer on `sarif` report format, for these projects that did not support yet natively.

Features at a glance
--------------------

[](#features-at-a-glance)

- A Console Tool to allow conversion from `checkstyle` format to `sarif`, if your application does not support custom reporting class.
- Add `sarif` output format support to your application, if you accept to load on fly, any custom reporting class.

Comparison by project on output formats
---------------------------------------

[](#comparison-by-project-on-output-formats)

ProjectVersionSARIFCheckstyleJUnitCodeClimate
GitLabGitHubOutput Format Support[Composer Dependency Analyser](https://github.com/shipmonk-rnd/composer-dependency-analyser)1.6.x❌❌✅❌❌junit[Composer](https://github.com/composer/composer)2.4.x❌❌❌❌❌table,plain,json,summary[Easy-Coding-Standard](https://github.com/easy-coding-standard/easy-coding-standard)12.3.x❌✅✅✅❌console,json,junit,checkstyle,gitlab[Phan](https://github.com/phan/phan)5.5.1❌✅❌✅✅text,csv,json,checkstyle,codeclimate,pylint,html,github[PHP CodeSniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer)3.10.x❌✅✅❌❌json,checkstyle,junit[PHP-CS-Fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer)3.59.x❌✅✅✅❌checkstyle,gitlab,json,junit[PHPInsights](https://github.com/nunomaduro/phpinsights)2.11.x❌✅❌✅✅console,json,checkstyle,codeclimate,github-action[PHPLint](https://github.com/overtrue/phplint)9.4.x(✅)✅✅❌❌console,json,junit,checkstyle,(sarif)[PHP Mess Detector](https://github.com/phpmd/phpmd)2.15.x✅✅❌✅✅xml,text,html,json,github,gitlab,sarif,checkstyle[PHPStan](https://github.com/phpstan/phpstan)2.0.x(✅)✅✅✅✅table,raw,checkstyle,json,junit,github,gitlab,teamcity,(sarif)[Rector](https://github.com/rectorphp/rector)2.0.x❌❌✅✅✅console,json,junit,gitlab,github[Twig-CS-Fixer](https://github.com/VincentLanglet/Twig-CS-Fixer)3.0.x❌✅✅❌✅null,text,checkstyle,junit,githubLegend :

- ✅ indicate that support to the format is available
- (✅) indicate that support to the format is optional
- ❌ indicate that support to the format is not yet available

Documentation
-------------

[](#documentation)

All the documentation is available on [website](https://llaville.github.io/sarif-php-converters/1.5), generated from the [docs](https://github.com/llaville/sarif-php-converters/tree/1.5/docs) folder.

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance80

Actively maintained with recent releases

Popularity34

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

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

Every ~28 days

Recently: every ~15 days

Total

16

Last Release

100d ago

PHP version history (2 changes)1.0.0PHP ^8.1

1.2.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/555d494363fdc69e712d56b46d3b9bf3fe221f2dae8a0cf3c732b0138d54f192?d=identicon)[llaville](/maintainers/llaville)

---

Top Contributors

[![llaville](https://avatars.githubusercontent.com/u/364342?v=4)](https://github.com/llaville "llaville (212 commits)")

---

Tags

sarifconvertersarif

### Embed Badge

![Health badge](/badges/bartlett-sarif-php-converters/health.svg)

```
[![Health](https://phpackages.com/badges/bartlett-sarif-php-converters/health.svg)](https://phpackages.com/packages/bartlett-sarif-php-converters)
```

###  Alternatives

[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[behat/behat

Scenario-oriented BDD framework for PHP

4.0k96.8M2.0k](/packages/behat-behat)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[infection/infection

Infection is a Mutation Testing framework for PHP. The mutation adequacy score can be used to measure the effectiveness of a test set in terms of its ability to detect faults.

2.2k26.2M1.8k](/packages/infection-infection)[maglnet/composer-require-checker

CLI tool to analyze composer dependencies and verify that no unknown symbols are used in the sources of a package

99810.9M671](/packages/maglnet-composer-require-checker)[orchestra/testbench-core

Testing Helper for Laravel Development

27043.7M310](/packages/orchestra-testbench-core)

PHPackages © 2026

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