{"id":23709920,"url":"https://github.com/nxtlvlsoftware/setup-phpstan-action","last_synced_at":"2026-01-27T16:31:47.881Z","repository":{"id":50283447,"uuid":"518679881","full_name":"NxtLvLSoftware/setup-phpstan-action","owner":"NxtLvLSoftware","description":"GitHub action for installing PHPStan in workflows.","archived":false,"fork":false,"pushed_at":"2023-01-30T17:30:45.000Z","size":14709,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T06:36:19.612Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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:54:25.000Z","updated_at":"2023-01-30T17:05:00.000Z","dependencies_parsed_at":"2023-02-14T05:47:05.517Z","dependency_job_id":null,"html_url":"https://github.com/NxtLvLSoftware/setup-phpstan-action","commit_stats":{"total_commits":19,"total_committers":2,"mean_commits":9.5,"dds":"0.21052631578947367","last_synced_commit":"4179a3044af5fd44a122dfa4e1fc458e6a933526"},"previous_names":["nxtlvlsoftware/setup-phpstan"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NxtLvLSoftware%2Fsetup-phpstan-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NxtLvLSoftware%2Fsetup-phpstan-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NxtLvLSoftware%2Fsetup-phpstan-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NxtLvLSoftware%2Fsetup-phpstan-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NxtLvLSoftware","download_url":"https://codeload.github.com/NxtLvLSoftware/setup-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:55.040Z","updated_at":"2026-01-27T16:31:47.839Z","avatar_url":"https://github.com/NxtLvLSoftware.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Action nxtlvlsoftware/setup-phpstan-action\n\nGitHub action for installing [PHPStan](https://github.com/phpstan/phpstan) in actions workflows.\n\n- [x] Allows passing version string and installing from github releases into path/env.\n- [x] Allows passing existing executable path and installing into path/env.\n- [x] Supports caching for version string and existing binary installations.\n\n| Action Input | Required | Default | Description                                                                            |\n| ------------ | -------- | -------- | ------------------------------------------------------------------------------------- |\n| install-path | true     |          | The path to install PHPStan binary to.                                                |\n| version      | false    | latest   | The target PHPStan version to install. Exact versions only (8.0.11, 7.4.24, etc.)     |\n| path         | false    | false    | Path to an existing PHPStan installation.                                             |\n\nEither `version` or `path` must be specified.\n\n## How to use\nAttempt to download any PHPStan release by providing the version:\n\n```yml\nname: My PHPStan Workflow\non: [push]\njobs:\n  setup-phpstan:\n    name: Setup PHPStan\n    runs-on: ubuntu-latest\n    steps:\n      - uses: nxtlvlsoftware/setup-phpstan-action@v1\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n        with:\n          version: '1.8.2'\n          install-path: './bin'\n```\n\nForwarding the `$GIHUB_TOKEN` environment variable is required to properly configure PHPStan as we\ninteract with the GitHub API to fetch version information.\n\nOr provide the path to an existing PHPStan installation/binary:\n```yml\nname: My PHPStan Workflow\non: [push]\njobs:\n  setup-phpstan:\n    name: Setup PHPStan\n    runs-on: ubuntu-latest\n    steps:\n      - uses: nxtlvlsoftware/setup-phpstan-action@v1\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n        with:\n          path: 'path/to/your/phpstan.phar'\n          install-path: './bin'\n```\n\n## License\n`nxtlvlsoftware/setup-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%2Fsetup-phpstan-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnxtlvlsoftware%2Fsetup-phpstan-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnxtlvlsoftware%2Fsetup-phpstan-action/lists"}