{"id":23709911,"url":"https://github.com/nxtlvlsoftware/run-phpstan-action","last_synced_at":"2026-02-06T10:30:22.529Z","repository":{"id":50283598,"uuid":"518679769","full_name":"NxtLvLSoftware/run-phpstan-action","owner":"NxtLvLSoftware","description":"GitHub action for running PHPStan in workflows.","archived":false,"fork":false,"pushed_at":"2023-01-30T18:23:01.000Z","size":13843,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-18T11:58:53.556Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/NxtLvLSoftware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-28T02:53:51.000Z","updated_at":"2023-01-30T18:17:34.000Z","dependencies_parsed_at":"2023-02-16T10:15:32.545Z","dependency_job_id":null,"html_url":"https://github.com/NxtLvLSoftware/run-phpstan-action","commit_stats":{"total_commits":15,"total_committers":2,"mean_commits":7.5,"dds":"0.19999999999999996","last_synced_commit":"9571569bb12f84a3163017c024f0f1d71aed1aa2"},"previous_names":["nxtlvlsoftware/run-phpstan"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NxtLvLSoftware%2Frun-phpstan-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NxtLvLSoftware%2Frun-phpstan-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NxtLvLSoftware%2Frun-phpstan-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NxtLvLSoftware%2Frun-phpstan-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NxtLvLSoftware","download_url":"https://codeload.github.com/NxtLvLSoftware/run-phpstan-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239793633,"owners_count":19698026,"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-12-30T18:58:54.124Z","updated_at":"2026-02-06T10:30:22.457Z","avatar_url":"https://github.com/NxtLvLSoftware.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Action nxtlvlsoftware/run-phpstan-action\n\nGitHub action for running [PHPStan](https://github.com/phpstan/phpstan) in actions workflows.\n\n| Action Input  | Required | Default   | Description                                                                                                                                                                                          |\n|---------------|----------|-----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| executable    | false    | phpstan   | Specifies the path to the phpstan executable. Defaults to configured $PATH/current working directory.                                                                                                |\n| php           | false    | php       | Specifies the php binary to run phpstan with. Defaults to configured $PATH/current working directory.                                                                                                |\n| memory-limit  | false    | 1G        | Specifies the memory limit in the same format php.ini accepts.                                                                                                                                       |\n| analyse       | false    | undefined | A space seperated list of paths to analyse.                                                                                                                                                          |\n| level         | false    | 9         | Specifies the rule level to run (1-9). https://phpstan.org/user-guide/rule-levels                                                                                                                    |\n| config        | false    |           | Path to PHPStan configuration file. Relative paths are resolved based on the current working directory.                                                                                              |\n| no-progress   | false    | true      | Turns off the progress bar.                                                                                                                                                                          |\n| debug         | false    |           | Instead of the progress bar, it outputs lines with each analysed file before its analysis.                                                                                                           |\n| quiet         | false    |           | Silences all the output. Useful if you’re interested only in the exit code.                                                                                                                          |\n| autoload-file | false    |           | If your application uses a custom autoloader, you should set it up and register in a PHP file that is passed to this CLI option. Relative paths are resolved based on the current working directory. |\n| error-format  | false    | github    | Specifies a custom error formatter. https://phpstan.org/user-guide/output-format                                                                                                                     |\n| ansi          | false    |           | Overrides the auto-detection of whether colors should be used in the output and how nice the progress bar should be.                                                                                 |\n| xdebug        | false    |           | PHPStan turns off XDebug if it’s enabled to achieve better performance.                                                                                                                              |\n\n## How to use\nSimple analysis if php and phpstan is already configured properly in the action environment (in `$PATH`):\n\n```yml\nname: My PHP Test Workflow\non: [push]\njobs:\n  test-code:\n    name: Run Tests\n    runs-on: ubuntu-latest\n    steps:\n      - uses: nxtlvlsoftware/run-phpstan-action@v1\n        with:\n          analyse: src\n          config: tests/phpstan/action.phpstan.neon\n          level: 9\n```\n\nOr provide the paths to existing PHPStan and/or php executables:\n```yml\nname: My PHP Test Workflow\non: [push]\njobs:\n  test-code:\n    name: Run Tests\n    runs-on: ubuntu-latest\n    steps:\n      - uses: nxtlvlsoftware/run-phpstan-action@v1\n        with:\n          analyse: src\n          config: tests/phpstan/action.phpstan.neon\n          level: 9\n          php: '/path/to/php/bin'\n          phpstan: '/path/to/phpstan.phar'\n```\n\n## License\n`nxtlvlsoftware/run-phpstan-action` is open-sourced software licensed under the [MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnxtlvlsoftware%2Frun-phpstan-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnxtlvlsoftware%2Frun-phpstan-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnxtlvlsoftware%2Frun-phpstan-action/lists"}