PHPackages                             beechit/json-to-code-climate-subset-converter - 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. [DevOps &amp; Deployment](/categories/devops)
4. /
5. beechit/json-to-code-climate-subset-converter

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

beechit/json-to-code-climate-subset-converter
=============================================

CLI tool that'll convert supported JSON files to a subset of the Code Climate JSON format.

1.6.0(4y ago)1936.6k↓50%6[2 PRs](https://github.com/beechit/json-to-code-climate-subset-converter/pulls)MITPHPPHP ^7.3|^8.0

Since Feb 5Pushed 4y ago3 watchersCompare

[ Source](https://github.com/beechit/json-to-code-climate-subset-converter)[ Packagist](https://packagist.org/packages/beechit/json-to-code-climate-subset-converter)[ Docs](https://github.com/beechit/json-to-code-climate-subset-converter)[ RSS](/packages/beechit-json-to-code-climate-subset-converter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (11)Versions (11)Used By (0)

[![GitHub Workflow Status](https://camo.githubusercontent.com/40eaea8487251f3f9e36b25155f548984d76a0f7aa7a51a2957e57dc3cdab629/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f626565636869742f6a736f6e2d746f2d636f64652d636c696d6174652d7375627365742d636f6e7665727465722f52756e253230504850556e697425323074657374733f6c6162656c3d504850556e6974)](https://camo.githubusercontent.com/40eaea8487251f3f9e36b25155f548984d76a0f7aa7a51a2957e57dc3cdab629/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f626565636869742f6a736f6e2d746f2d636f64652d636c696d6174652d7375627365742d636f6e7665727465722f52756e253230504850556e697425323074657374733f6c6162656c3d504850556e6974) [![GitHub Workflow Status](https://camo.githubusercontent.com/c80436dc594986f86ffef24bf48e534ee3f5af6889326b54e3765ad4da2125e4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f626565636869742f6a736f6e2d746f2d636f64652d636c696d6174652d7375627365742d636f6e7665727465722f52756e253230496e66656374696f6e3f6c6162656c3d496e66656374696f6e)](https://camo.githubusercontent.com/c80436dc594986f86ffef24bf48e534ee3f5af6889326b54e3765ad4da2125e4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f626565636869742f6a736f6e2d746f2d636f64652d636c696d6174652d7375627365742d636f6e7665727465722f52756e253230496e66656374696f6e3f6c6162656c3d496e66656374696f6e) [![GitHub Workflow Status](https://camo.githubusercontent.com/c57f257350d62e26e376a350f26a8f4aca5da326cc46ef6d021e2ce993c78d9f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f626565636869742f6a736f6e2d746f2d636f64652d636c696d6174652d7375627365742d636f6e7665727465722f52756e2532305048505374616e3f6c6162656c3d5048505374616e)](https://camo.githubusercontent.com/c57f257350d62e26e376a350f26a8f4aca5da326cc46ef6d021e2ce993c78d9f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f626565636869742f6a736f6e2d746f2d636f64652d636c696d6174652d7375627365742d636f6e7665727465722f52756e2532305048505374616e3f6c6162656c3d5048505374616e) [![GitHub Workflow Status](https://camo.githubusercontent.com/da26c0dba328616316855f3dad896c357b4a7dcfc6f5aaf09e9938c25b647ce0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f626565636869742f6a736f6e2d746f2d636f64652d636c696d6174652d7375627365742d636f6e7665727465722f52756e2532305073616c6d3f6c6162656c3d5073616c6d)](https://camo.githubusercontent.com/da26c0dba328616316855f3dad896c357b4a7dcfc6f5aaf09e9938c25b647ce0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f626565636869742f6a736f6e2d746f2d636f64652d636c696d6174652d7375627365742d636f6e7665727465722f52756e2532305073616c6d3f6c6162656c3d5073616c6d) [![GitHub Workflow Status](https://camo.githubusercontent.com/95acc43da83ad67024824d19e5bd196c6e74d5c2f0c4f0d53c47b78b34202c35/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f626565636869742f6a736f6e2d746f2d636f64652d636c696d6174652d7375627365742d636f6e7665727465722f52756e2532305048505f436f6465536e69666665723f6c6162656c3d5048505f436f6465536e6966666572)](https://camo.githubusercontent.com/95acc43da83ad67024824d19e5bd196c6e74d5c2f0c4f0d53c47b78b34202c35/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f626565636869742f6a736f6e2d746f2d636f64652d636c696d6174652d7375627365742d636f6e7665727465722f52756e2532305048505f436f6465536e69666665723f6c6162656c3d5048505f436f6465536e6966666572) [![GitHub Workflow Status](https://camo.githubusercontent.com/fd96b389389a90e7d25575720c4b6880d225637dd9ad0054d1680600709fd0df/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f626565636869742f6a736f6e2d746f2d636f64652d636c696d6174652d7375627365742d636f6e7665727465722f52756e2532305068616e3f6c6162656c3d5068616e)](https://camo.githubusercontent.com/fd96b389389a90e7d25575720c4b6880d225637dd9ad0054d1680600709fd0df/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f626565636869742f6a736f6e2d746f2d636f64652d636c696d6174652d7375627365742d636f6e7665727465722f52756e2532305068616e3f6c6162656c3d5068616e) [![GitHub Workflow Status](https://camo.githubusercontent.com/b2c4202738f579566041c98da66b2b5a1f49b48dd4a4bccfe71382e4fdb65928/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f626565636869742f6a736f6e2d746f2d636f64652d636c696d6174652d7375627365742d636f6e7665727465722f52756e2532305048504c696e743f6c6162656c3d5048504c696e74)](https://camo.githubusercontent.com/b2c4202738f579566041c98da66b2b5a1f49b48dd4a4bccfe71382e4fdb65928/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f626565636869742f6a736f6e2d746f2d636f64652d636c696d6174652d7375627365742d636f6e7665727465722f52756e2532305048504c696e743f6c6162656c3d5048504c696e74)

json-to-code-climate-subset-converter
=====================================

[](#json-to-code-climate-subset-converter)

CLI tool that'll convert supported JSON files to a subset of the Code Climate JSON format. The output file `code-climate.json` can be used in GitLab CI to show degrations in merge requests via the report artifact. See [GitLab Code Quality documentation](https://docs.gitlab.com/ee/user/project/merge_requests/code_quality.html#implementing-a-custom-tool) for more information.

Supported JSON files
--------------------

[](#supported-json-files)

- [phpstan](https://github.com/phpstan/phpstan)
- [psalm](https://github.com/vimeo/psalm)
- [phan](https://github.com/phan/phan)
- [phpcs](https://github.com/squizlabs/PHP_CodeSniffer)
- [phpmd](https://github.com/phpmd/phpmd)
- [phplint](https://github.com/overtrue/phplint)
- [php-cs-fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer)

Example input
-------------

[](#example-input)

```
[
    {
        "type": "issue",
        "type_id": 11007,
        "check_name": "PhanUndeclaredClassConstant",
        "description": "UndefError PhanUndeclaredClassConstant Reference to constant class from undeclared class \\PhpParser\\Node\\Stmt\\ClassMethod",
        "severity": 10,
        "location": {
            "path": "app/Class.php",
            "lines": {
                "begin": 32,
                "end": 34
            }
        }
    }
]
```

Example output
--------------

[](#example-output)

```
[
    {
        "description": "(Phan) UndefError PhanUndeclaredClassConstant Reference to constant class from undeclared class \\PhpParser\\Node\\Stmt\\ClassMethod",
        "fingerprint": "fd46675f22771e90045b745429e46682",
        "location": {
            "path": "app/Class.php",
            "lines": {
                "begin": 32,
                "end": 34
            }
        }
    }
]
```

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

[](#documentation)

Please refer to the project's WIKI entries for documentation: [WIKI](https://github.com/beechit/json-to-code-climate-subset-converter/wiki)

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 93% 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 ~16 days

Recently: every ~35 days

Total

10

Last Release

1782d ago

PHP version history (3 changes)1.0PHP ^7.2.5

1.1.0PHP ^7.3

1.6.0PHP ^7.3|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/d458cf6ef2a109beb4343570834ba22110314d525f6d0f439eb1ae57d3b6f5e3?d=identicon)[beechit](/maintainers/beechit)

---

Top Contributors

[![ttomdewit](https://avatars.githubusercontent.com/u/2845400?v=4)](https://github.com/ttomdewit "ttomdewit (119 commits)")[![hyperized](https://avatars.githubusercontent.com/u/827954?v=4)](https://github.com/hyperized "hyperized (5 commits)")[![ferrastas](https://avatars.githubusercontent.com/u/116074?v=4)](https://github.com/ferrastas "ferrastas (3 commits)")[![tvbeek](https://avatars.githubusercontent.com/u/2026498?v=4)](https://github.com/tvbeek "tvbeek (1 commits)")

---

Tags

cli-commanddockergitlabjsonjson-formatphanphpcsphplintphpstanpsalmPHPStanphpmdPHP\_CodeSniffergitlabcode climatephplintpsalmphanbeechbeech.itcode-climate-subsetjson-to-code-climate-subset-converter

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/beechit-json-to-code-climate-subset-converter/health.svg)

```
[![Health](https://phpackages.com/badges/beechit-json-to-code-climate-subset-converter/health.svg)](https://phpackages.com/packages/beechit-json-to-code-climate-subset-converter)
```

###  Alternatives

[ondram/ci-detector

Detect continuous integration environment and provide unified access to properties of current build

22249.4M33](/packages/ondram-ci-detector)[jbzoo/ci-report-converter

The tool converts different error reporting standards for deep integration with popular CI systems (TeamCity, IntelliJ IDEA, GitHub Actions, etc)

30784.4k2](/packages/jbzoo-ci-report-converter)[micheh/phpcs-gitlab

GitLab Report for PHP\_CodeSniffer (display the violations in the GitLab CI/CD Code Quality Report)

4411.1M17](/packages/micheh-phpcs-gitlab)[sci3ma/symfony-grumphp

Configured GrumPHP with bunch of tools for static code analysis Symfony Framework

196.7k](/packages/sci3ma-symfony-grumphp)[enomotodev/gitlabci-composer-update-mr

Create MergeRequest of composer update in GitLabCI

112.2k](/packages/enomotodev-gitlabci-composer-update-mr)

PHPackages © 2026

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