{"id":19962987,"url":"https://github.com/taptima/phalyfusion","last_synced_at":"2025-10-29T11:45:23.729Z","repository":{"id":46937194,"uuid":"303059929","full_name":"taptima/phalyfusion","owner":"taptima","description":"Utility for combining a bunch of php static code analyzers output","archived":false,"fork":false,"pushed_at":"2021-09-21T03:17:56.000Z","size":4110,"stargazers_count":36,"open_issues_count":3,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-09-18T04:37:55.273Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/taptima.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-11T06:47:03.000Z","updated_at":"2024-01-19T10:19:07.000Z","dependencies_parsed_at":"2022-09-23T09:41:18.904Z","dependency_job_id":null,"html_url":"https://github.com/taptima/phalyfusion","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taptima%2Fphalyfusion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taptima%2Fphalyfusion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taptima%2Fphalyfusion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taptima%2Fphalyfusion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taptima","download_url":"https://codeload.github.com/taptima/phalyfusion/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224374661,"owners_count":17300691,"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":[],"created_at":"2024-11-13T02:14:08.480Z","updated_at":"2025-10-29T11:45:23.617Z","avatar_url":"https://github.com/taptima.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Phalyfusion [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Combine%20the%20output%20of%20php%20static%20analyzers%20into%20a%20single%20convenient%20format%20with%20Phalyfusion%21\u0026url=https://github.com/taptima/phalyfusion\u0026hashtags=php,phpstan,phan,psalm,staticanalyzer,developers)\n[![Latest Stable Version](https://poser.pugx.org/taptima/phalyfusion/v)](//packagist.org/packages/taptima/phalyfusion)\n[![Latest Unstable Version](https://poser.pugx.org/taptima/phalyfusion/v/unstable)](//packagist.org/packages/taptima/phalyfusion)\n[![License](https://poser.pugx.org/taptima/phalyfusion/license)](//packagist.org/packages/taptima/phalyfusion)\n\n**Phalyfusion** is a tool for convenient and effective usage of multiple PHP static code analysers and QA tools.\nIt runs analysers, combines its outputs and makes a single nice output in various formats:\n  - Nice PHPStan-like table console output, groups errors by the file.\n  - Checkstyle\n  - Json\n\n\nCurrently supported analysers and tools:\n  - [PHPStan](https://phpstan.org/)\n  - [Phan](https://github.com/phan/phan)\n  - [Psalm](https://psalm.dev/)\n  - [PHPMD](https://phpmd.org/)\n  - [PHP-CS-Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer). Run PHP-CS-Fixer with `--dry-run` option.\n\n## Table of contents\n- [How it works](#how-it-works)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Contributing](#contributing)\n\n## How it works\nFor example, phpstan, phan and phpmd are required in the project.\nThen the analyzer output looks like this (for example phan):\n\n![Phan output](/docs/images/phan_output.png)\n\nPhalyfusion combines the output of all analyzers and qa tools, groups them by file, and sorts them by line numbers.\nThe resulting output looks like this:\n\n![Phalyfusion output](/docs/images/phalyfusion_out_1.png)\n\n## Installation\n```shell script\ncomposer require --dev taptima/phalyfusion dev-master\n```\nComposer will install Phalyfusion’s executable in its ```bin-dir``` which defaults to ```vendor/bin```.\n\n**Analysers should be installed individually.**\n\n## Usage\nAfter installing Phalyfusion you need to create `phalyfusion.neon` configuration file in the project root.\n\n### Config sample\n```neon\nplugins:\n    usePlugins:\n        - phan\n        - phpstan\n        - psalm\n        - phpmd\n        - php-cs-fixer\n\n    runCommands:\n        phan:           bin/phan -k .phan/config.php\n        phpstan:        bin/phpstan analyse -c phpstan.neon --level 7\n        psalm:          bin/psalm -c psalm.xml\n        phpmd:          bin/phpmd src text cleancode\n        php-cs-fixer:   \"bin/php-cs-fixer fix --config=.php_cs\"\n```\nProvide names of analysers (plugins) you want to use in `usePlugins`. Choose from: `phan`, `phpstan`, `psalm`, `phpmd` or `php-cs-fixer`.\nProvide command lines to run stated analysers. Paths are resolved relative to current working directory (the directory where from you are running Phalyfusion)\n\n- Note that each analyser should be individually installed and configured.\n- All supported by individual analysers arguments and options can be used in the corresponding command line (runCommands)\n- Output formats of the analysers are overridden. To choose Phalyfusion output format use --format option when running.\n- File\\path arguments of analysers are NOT guaranteed to be overridden in case you pass such argument to Phalyfusion.\n- Do not state path/files options/arguments in runCommands, use paths argument of Phalyfusion or configure it in configs.\n\n### Usage\nAfter configuring the tool and all used analysers run Phalyfusion. \n```bash\n$ php phalyfusion analyse [options] [--] [\u003cfiles\u003e...]\n```\nThe `analyse` is a default command to run all connected plugins, so it is optional to specify it. The simplest run command looks like:\n```bash\n$ php phalyfusion\n$ php phalyfusion analyse\n```\n\nType `$ php phalyfusion analyse --help` to show all available options and arguments.\n\n#### Arguments\nThe `files` argument is Paths to files with source code to run analysis on. Separate multiple with a space. Do not pass directories. File paths from command lines stated in phalyfusion.neon runCommands will be used by default.\n\n#### Options\nThe `-c`, `--config` option is a path to neon config file. `phalyfusion.neon` located in project root is used by default.\n\nThe `-f`, `--format` option for the output format. Supported formats are `table` (default one), `json`, `checkstyle`.\n\nThe `-p`, `--no-progress` option to disable progress bar.\n\n## Contributing\nSee [CONTRIBUTING](CONTRIBUTING.md) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaptima%2Fphalyfusion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaptima%2Fphalyfusion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaptima%2Fphalyfusion/lists"}