{"id":23177328,"url":"https://github.com/abdo-reda/php-stan-vscode-extension","last_synced_at":"2026-02-07T21:31:12.926Z","repository":{"id":263039906,"uuid":"888439924","full_name":"Abdo-reda/php-stan-vscode-extension","owner":"Abdo-reda","description":"PHPStan Plugin for VSCode.","archived":false,"fork":false,"pushed_at":"2024-12-17T09:46:00.000Z","size":114884,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-08T16:37:50.831Z","etag":null,"topics":["extension","php","phpstan","plugin","vscode"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=AbdoReda.php-stan-plugin","language":"TypeScript","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/Abdo-reda.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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":"2024-11-14T12:02:57.000Z","updated_at":"2024-12-05T10:36:30.000Z","dependencies_parsed_at":"2024-12-18T06:33:13.310Z","dependency_job_id":"f887a836-8a23-45d2-8ed9-46ed92afac54","html_url":"https://github.com/Abdo-reda/php-stan-vscode-extension","commit_stats":null,"previous_names":["abdo-reda/php-stan-vscode-extension"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Abdo-reda/php-stan-vscode-extension","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abdo-reda%2Fphp-stan-vscode-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abdo-reda%2Fphp-stan-vscode-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abdo-reda%2Fphp-stan-vscode-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abdo-reda%2Fphp-stan-vscode-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Abdo-reda","download_url":"https://codeload.github.com/Abdo-reda/php-stan-vscode-extension/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abdo-reda%2Fphp-stan-vscode-extension/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29208698,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T20:33:12.493Z","status":"ssl_error","status_checked_at":"2026-02-07T20:30:47.381Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["extension","php","phpstan","plugin","vscode"],"created_at":"2024-12-18T06:33:04.593Z","updated_at":"2026-02-07T21:31:12.897Z","avatar_url":"https://github.com/Abdo-reda.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHPStan Plugin\n![LOGO](./assets/logo.png)\n\n**PHPStan Plugin** is an extension for the popular static analysis tool [PHPStan](https://phpstan.org/). Its suppose to be a plug \u0026 play extension, no need for any complex setup or configuration.\n\nInstead of having to manually install PHPStan and run it on your project everytime you make a change, this extension runs **PHPStan behind the scenes automatically**. \nIt outputs the errors and displays them in your file. It also display a statusbar with a summary. This in theory, should result in faster workflows. \n\nThis is **NOT an official extension from PHPStan**, its more of a passion/learning project made by me because I was bored `¯\\_(ツ)_/¯`.\n\n## Features\n\n* Runs PHPStan analysis in the background providing errors and diganostics.\n\n![Demo Video](https://github.com/Abdo-reda/php-stan-vscode-extension/blob/main/resources/images/screenshots.png?raw=true)\n\n## Why Though?\n\nYou might be wondering why use this at all? one can use other extensions that behave like actual language analyzers / lsps. Providing not only errors but also autocompletion and documentation. \n\nWell, you are probably right, this is a very niche extension and made solely for learning purposes.\n\nMoreover, I found it later that are already [extensions](https://marketplace.visualstudio.com/search?term=phpstan\u0026target=VSCode\u0026category=All%20categories\u0026sortBy=Relevance) that do the same thing and maybe even better. Check them out!\n- [SanderRonde Extension](https://marketplace.visualstudio.com/items?itemName=SanderRonde.phpstan-vscode)\n- [Swordev Extension](https://marketplace.visualstudio.com/items?itemName=swordev.phpstan) \n\n## Requirements\n\n* PHP minimum version 7.2.0 is required and need to be avaialble globally to run PHPStan. \n    * Check out [PHP Install](https://www.php.net/manual/en/install.php) for help downloading php. \n    * This document may be out of date. Check the official [PHPStan Documentation](https://phpstan.org/user-guide/getting-started).\n\n\n## Extension Settings\n\n* `php-stan.binary`: **PHPStan binary approach** that gets executed. Only Phar files are supported for now, later on composer support will be added.\n\n* `php-stan.level`: **PHPStan Analysis Level**. This is the level used for analysis. Possible value are from 0-9 inclusive. By default its set to 5.\n\n* `php-stan.analysisOn`: Determines the **trigger** for running the analysis, By default its set to `onSave` but it can be changed to `onChange` or `manual`.\n\n* `php-stan.analysisScope`: Determines the **files** that are analysed with each trigger, By default its set to `directory` but it can be changed to `file` or `workspace`.\n\n## Known Issues\n\nThis extension is still a **work in progress**, errors may and will occur.\n* PHPStan errors will always appear in the **beginning of the line** that contains the error, regardless of where the actual error is. As a result, error messages are not always accurate.\n\n## Release Notes\n\n\n### V 0.8.7\n\n* Initial release of PHPStanExtension.\n\n## Possible Enhancements ?\n\n- [ ] Composer \u0026 Extensions Support.\n- [ ] Setting to specify php binary.\n- [ ] Maybe add additional commands, clear cache, clear analysis, analyse path, ..\n- [ ] Possible and specific configurations for phpStan itself?\n- [ ] Add unit tests.\n\n## LICENCE\n\n[GNU GENERAL PUBLIC LICENSE](LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdo-reda%2Fphp-stan-vscode-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdo-reda%2Fphp-stan-vscode-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdo-reda%2Fphp-stan-vscode-extension/lists"}