{"id":25519661,"url":"https://github.com/aligent/phpstan-pipe","last_synced_at":"2025-12-22T09:30:16.864Z","repository":{"id":38280337,"uuid":"432897311","full_name":"aligent/phpstan-pipe","owner":"aligent","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-30T01:16:06.000Z","size":60,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-02-16T13:24:04.587Z","etag":null,"topics":["pipe"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aligent.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-29T03:49:37.000Z","updated_at":"2024-08-30T01:16:10.000Z","dependencies_parsed_at":"2024-08-02T10:38:33.427Z","dependency_job_id":"4c687556-f426-4026-90f3-474d816109f5","html_url":"https://github.com/aligent/phpstan-pipe","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/aligent%2Fphpstan-pipe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aligent%2Fphpstan-pipe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aligent%2Fphpstan-pipe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aligent%2Fphpstan-pipe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aligent","download_url":"https://codeload.github.com/aligent/phpstan-pipe/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239703252,"owners_count":19683237,"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":["pipe"],"created_at":"2025-02-19T17:29:17.966Z","updated_at":"2025-12-22T09:30:16.826Z","avatar_url":"https://github.com/aligent.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Aligent PHPStan Pipe\n\nThis pipe is used to execute PHPStan over changed files on a PR\n\n## YAML Definition\n\nAdd the following your `bitbucket-pipelines.yml` file:\n\n```yaml\n      - step:\n          name: \"PHPStan check\"\n          script:\n            - pipe: docker://aligent/phpstan-pipe:latest\n              variables:\n                SKIP_DEPENDENCIES: \"false\"\n                LEVEL: \"0\"\n                AUTOLOADER: \"vendor/autoload.php\"\n                IGNORE_PLATFORM_DEPENDENCIES: \"false\"\n```\n\nWe have docker images built for the following PHP Versions: 7.3, 7.4, 8.0, 8.1\n## Variables\n\n| Variable                     | Usage                                                                                                                                                       |\n|------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| SKIP_DEPENDENCIES            | (Optional) Skip installing project composer dependencies. Default: `false`.                                                                                 |\n| LEVEL                        | (Optional) Which level to execute phpstan at. Default: `0`                                                                                                  |\n| AUTOLOADER                   | (Optional) Which PHP Autoloader to use. Default: `vendor/autoload.php`                                                                                      |\n| IGNORE_PLATFORM_DEPENDENCIES | (Optional) Whether to install platform dependencies or not. Default: `false`                                                                                |\n| CONFIG_FILE                  | (Optional) Config file to use.                                                                                                                |\n| SCAN_DIRECTORY               | (Optional) Which directory to scan. This will override the default behavior of comparing only the changed files, and will instead scan this entire directory. |\n| EXCLUDE_EXPRESSION           | (Optional) A grep [regular expression](https://www.gnu.org/software/grep/manual/html_node/Basic-vs-Extended.html) to exclude files from standards testing   |\n\n## Development\n\nThe following command can be used to invoke the pipe locally:\n```\ndocker run -it --env=\"SKIP_DEPENDENCIES=true\" --env=\"AUTOLOADER=vendor/autoload.php\" --env=\"LEVEL=9\" --env=\"BITBUCKET_PR_DESTINATION_BRANCH=\u003cDESTINATION_BRANCH\" --env=\"DISABLE_REPORT=true\" -v $PWD:/build --workdir=/build aligent/phpstan:\u003cPHP-Version\u003e\n```\n\nCommits published to the `main` branch  will trigger an automated build for each of the configured PHP version.\nCommits to `staging` will do the same but image tags will be suffixed with `-experimiental`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faligent%2Fphpstan-pipe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faligent%2Fphpstan-pipe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faligent%2Fphpstan-pipe/lists"}