{"id":13616928,"url":"https://github.com/phpstan/phpstan-src","last_synced_at":"2025-05-16T11:02:31.363Z","repository":{"id":37350593,"uuid":"219334214","full_name":"phpstan/phpstan-src","owner":"phpstan","description":"PHPStan's source code. This is where development happens. Check https://github.com/phpstan/phpstan for the distribution repository.","archived":false,"fork":false,"pushed_at":"2025-05-13T14:13:33.000Z","size":53034,"stargazers_count":353,"open_issues_count":128,"forks_count":510,"subscribers_count":17,"default_branch":"2.1.x","last_synced_at":"2025-05-13T14:52:27.710Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://phpstan.org/","language":"PHP","has_issues":false,"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/phpstan.png","metadata":{"files":{"readme":"README.md","changelog":"changelog-generator/.gitignore","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-11-03T16:55:20.000Z","updated_at":"2025-05-13T14:13:37.000Z","dependencies_parsed_at":"2023-10-16T02:47:18.913Z","dependency_job_id":"109e73a2-33d4-4d59-97b5-5253dbb28f3f","html_url":"https://github.com/phpstan/phpstan-src","commit_stats":{"total_commits":10522,"total_committers":459,"mean_commits":"22.923747276688452","dds":"0.29823227523284546","last_synced_commit":"5c3a711ae7435aa7ba972ec9cacafb7fdb131bcc"},"previous_names":[],"tags_count":370,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpstan%2Fphpstan-src","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpstan%2Fphpstan-src/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpstan%2Fphpstan-src/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpstan%2Fphpstan-src/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phpstan","download_url":"https://codeload.github.com/phpstan/phpstan-src/tar.gz/refs/heads/2.1.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254518383,"owners_count":22084374,"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-08-01T20:01:34.868Z","updated_at":"2025-05-16T11:02:31.356Z","avatar_url":"https://github.com/phpstan.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# PHPStan - PHP Static Analysis Tool\n\n[![Build](https://github.com/phpstan/phpstan-src/workflows/Tests/badge.svg)](https://github.com/phpstan/phpstan-src/actions)\n[![PHPStan Enabled](https://img.shields.io/badge/PHPStan-enabled-brightgreen.svg?style=flat)](https://github.com/phpstan/phpstan)\n\n---\n\nThis repository (`phpstan/phpstan-src`) is for PHPStan's development only. Head to [`phpstan/phpstan`](https://github.com/phpstan/phpstan) for the main README, or to [create an issue](https://github.com/phpstan/phpstan/issues/new/choose).\n\n## Contributing\n\nAny contributions are welcome.\n\n### Installation\n\n```bash\ncomposer install\n```\n\nIf you are using macOS and are using an older version of `patch`, you may have problems with patch application failure during `composer install`. Try using `brew install gpatch` to install a newer and supported `patch` version.\n\n### Building\n\nPHPStan's source code is developed on PHP 8.1. For distribution in `phpstan/phpstan` package and as a PHAR file, the source code is transformed to run on PHP 7.2 and higher.\n\nInitially you need to run `composer install` in case you aren't working in a directory which was built before.\n\nAfterwards you can either run the whole build including linting and coding standards using\n\n```bash\nmake\n```\n\n### Running development version\n\nYou can also choose to run only part of the build. To analyse PHPStan by PHPStan itself, run:\n\n```bash\nmake phpstan\n```\n\n### Fixing code style\n\nTo detect code style issues, run:\n\n```bash\nmake cs\n```\n\nAnd then to fix code style, run:\n\n```bash\nmake cs-fix\n```\n\n### Running tests\n\nRun:\n```bash\nmake tests\n```\n\n### Debugging\n\n1. Make sure Xdebug is installed and configured.\n2. Add `--xdebug` option when running PHPStan. Without it PHPStan turns the debugger off at runtime.\n3. If you're not debugging the [result cache](https://phpstan.org/user-guide/result-cache), also add the `--debug` option.\n\n## Code of Conduct\n\nThis project adheres to a [Contributor Code of Conduct](https://github.com/phpstan/phpstan/blob/master/CODE_OF_CONDUCT.md).\nBy participating in this project and its community, you are expected to uphold this code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpstan%2Fphpstan-src","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphpstan%2Fphpstan-src","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpstan%2Fphpstan-src/lists"}