{"id":15063062,"url":"https://github.com/mavimo/phpstan-junit","last_synced_at":"2025-10-04T22:31:39.578Z","repository":{"id":52415581,"uuid":"136654437","full_name":"mavimo/phpstan-junit","owner":"mavimo","description":"PHPStan JUnit error reporter","archived":true,"fork":false,"pushed_at":"2023-01-05T16:54:53.000Z","size":70,"stargazers_count":12,"open_issues_count":0,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-20T10:46:05.884Z","etag":null,"topics":["jenkins","junit","phpstan","phpstan-extension"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mavimo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-08T18:42:24.000Z","updated_at":"2023-01-05T16:55:32.000Z","dependencies_parsed_at":"2023-02-04T07:45:14.105Z","dependency_job_id":null,"html_url":"https://github.com/mavimo/phpstan-junit","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mavimo%2Fphpstan-junit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mavimo%2Fphpstan-junit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mavimo%2Fphpstan-junit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mavimo%2Fphpstan-junit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mavimo","download_url":"https://codeload.github.com/mavimo/phpstan-junit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235321041,"owners_count":18971234,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jenkins","junit","phpstan","phpstan-extension"],"created_at":"2024-09-24T23:50:50.359Z","updated_at":"2025-10-04T22:31:34.247Z","avatar_url":"https://github.com/mavimo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHPStan JUnit error reporter\n\n[![License](https://img.shields.io/packagist/l/mavimo/phpstan-junit.svg)](http://opensource.org/licenses/MIT)\n[![Coverage Status](https://img.shields.io/codecov/c/github/mavimo/phpstan-junit/master.svg)](https://codecov.io/gh/mavimo/phpstan-junit?branch=master)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/ce52632640e74313b03862890e9990fc)](https://www.codacy.com/manual/mavimo/phpstan-junit)\n\n[![Packagist](http://img.shields.io/packagist/v/mavimo/phpstan-junit.svg)](https://packagist.org/packages/mavimo/phpstan-junit)\n[![Packagist](http://img.shields.io/packagist/dt/mavimo/phpstan-junit.svg)](https://packagist.org/packages/mavimo/phpstan-junit)\n[![Packagist](http://img.shields.io/packagist/dm/mavimo/phpstan-junit.svg)](https://packagist.org/packages/mavimo/phpstan-junit)\n[![Packagist](http://img.shields.io/packagist/dd/mavimo/phpstan-junit.svg)](https://packagist.org/packages/mavimo/phpstan-junit)\n\nThe main scope for this project is to create error report in **JUnit** format that can be easly integrated in _Jenkins_ or other tools that use this information.\n\n## DEPRECATION\n\n\u003e **Warning**\n\u003e This project is not needed anymore since this feature is now built-in into PHPStan itself\n\n## How to use it\n\n### Install\n\nYou need to include this library in your project as dev-dependency, it dependes on the version of phpstan you're using you should use a different version of `mavimo/phpstan-junit` library, this table will give you a dependency map:\n\n| `phpstan/phpstan` version | `mavimo/phpstan-junit` version |\n| ------------------------- | ------------------------------ |\n| `0.10.x`                  | `0.1.x`                        |\n| `0.11.x`                  | `0.2.x`                        |\n| `0.12.x`                  | `0.3.x`                        |\n\nBut if alredy specified the `phpstan/phpstan` version you can just use:\n\n```bash\ncomposer require --dev mavimo/phpstan-junit\n```\n\nIf you also install [phpstan/extension-installer](https://github.com/phpstan/extension-installer) then you're all set, otherwise take a look to _manual setup_ section below.\n\n\u003cdetails\u003e\n  \u003csummary\u003e\u003cstrong\u003eManual setup for PHPStan 0.11 and next\u003c/strong\u003e\u003c/summary\u003e\n  if you don't want to use `phpstan/extension-installer`, you should require the `extension.neon` file on your `phpstan.neon.dist` file in the root of your project (or on the file you specify to phpstan using the `--config` flag):\n\n```yaml\nincludes:\n    - vendor/mavimo/phpstan-junit/extension.neon\n```\n\n  or declaring the service via:\n\n```yaml\nservices:\n    errorFormatter.junit:\n        class: Mavimo\\PHPStan\\ErrorFormatter\\JunitErrorFormatter\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e\u003cstrong\u003eManual setup for PHPStan 0.10\u003c/strong\u003e\u003c/summary\u003e\n  \u003cbr /\u003e\n  You should require this extension on `phpstan.neon` file in the root of your project or the file you specify to phpstan using the `--config` flag by referencing `extension.neon` file:\n\n```yaml\nincludes:\n    - vendor/mavimo/phpstan-junit/phpstan.neon\n```\n\n  or declaring the service via:\n\n```yaml\nservices:\n    errorFormatter.junit:\n        class: Mavimo\\PHPStan\\ErrorFormatter\\JunitErrorFormatter\n```\n\n\u003c/details\u003e\n\n### Generate JUnit report\n\nYou should gnerate JUnit report with the flag `--error-format=junit`, eg:\n\n```bash\nvendor/bin/phpstan --error-format=junit --no-progress --no-interaction analyse src\n```\n\n## Contributing\n\nContributions are welcome!\n\nPR's will be merged only if:\n\n-   _phpunit_ is :white_check_mark:, you can run it using `vendor/bin/phpunit`\n-   _phpstan_ is :white_check_mark:, you can run it using `vendor/bin/phpstan analyse`\n-   _phpcs_ is :white_check_mark:, you can run it using `vendor/bin/phpcs`\n-   _code coverage_ will not decrease (or there are good reason to decrease it), you can check the current coverage using `phpdbg -qrr ./vendor/bin/phpunit --coverage-text`\n\nIf you have any question feel free to open a issue or contact me!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmavimo%2Fphpstan-junit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmavimo%2Fphpstan-junit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmavimo%2Fphpstan-junit/lists"}