{"id":13594837,"url":"https://github.com/yaegassy/coc-phpstan","last_synced_at":"2025-06-15T17:33:37.357Z","repository":{"id":38976179,"uuid":"370980237","full_name":"yaegassy/coc-phpstan","owner":"yaegassy","description":"PHPStan (PHP Static Analysis tool) extension for coc.nvim","archived":false,"fork":false,"pushed_at":"2023-05-09T02:17:36.000Z","size":168,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-05T04:38:20.060Z","etag":null,"topics":["coc","coc-extensions","coc-nvim","linter","neovim","php","vim"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@yaegassy/coc-phpstan","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/yaegassy.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-26T09:37:06.000Z","updated_at":"2024-05-15T20:44:33.000Z","dependencies_parsed_at":"2024-10-01T18:21:15.017Z","dependency_job_id":"c30c5b0c-46e3-431e-8a6c-65d21997b9c5","html_url":"https://github.com/yaegassy/coc-phpstan","commit_stats":{"total_commits":43,"total_committers":1,"mean_commits":43.0,"dds":0.0,"last_synced_commit":"72b57a4ee85d4e6c6d1112e0a71b4d3b257571fa"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-phpstan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-phpstan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-phpstan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-phpstan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yaegassy","download_url":"https://codeload.github.com/yaegassy/coc-phpstan/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242695395,"owners_count":20170749,"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":["coc","coc-extensions","coc-nvim","linter","neovim","php","vim"],"created_at":"2024-08-01T16:01:39.697Z","updated_at":"2025-03-09T13:30:30.334Z","avatar_url":"https://github.com/yaegassy.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","Language Support"],"sub_categories":[],"readme":"# coc-phpstan\n\n[PHPStan](https://phpstan.org/) (PHP Static Analysis tool) extension for [coc.nvim](https://github.com/neoclide/coc.nvim).\n\n\u003cimg width=\"780\" alt=\"coc-phpstan-demo\" src=\"https://user-images.githubusercontent.com/188642/119638316-7fc24a80-be51-11eb-8b0e-5ec592a90154.gif\"\u003e\n\n## Install\n\n**CocInstall**:\n\n```vim\n:CocInstall @yaegassy/coc-phpstan\n```\n\n\u003e scoped package\n\n**vim-plug**:\n\n```vim\nPlug 'yaegassy/coc-phpstan', {'do': 'yarn install --frozen-lockfile'}\n```\n\n## Features\n\n- Linter\n- CodeAction\n- Downloader\n\n## Detect tool: phpstan\n\n1. `phpstan.toolPath` setting\n1. `vendor/bin/phpstan` (project)\n1. Extension-only `phpstan` retrieved by the download feature (`:CocCommand phpstan.download`)\n   - Mac/Linux: `~/.config/coc/extensions/@yaegassy/coc-phpstan-data/phpstan`\n   - Windows: `~/AppData/Local/coc/extensions/@yaegassy/coc-phpstan-data/phpstan`\n\n## \"phpstan.neon\", \"phpstan.neon.dist\" or \"phpstan.dist.neon\" configuration file\n\nIf you wish to use a [configuration file](https://phpstan.org/config-reference) you should place the `phpstan.neon`, `phpstan.neon.dist` or `phpstan.dist.neon` file in the root of your project folder\n\n## Linting of NEON file\n\nThis extension includes a feature to perform linting using the `neon-js` library in a phpstan configuration file (`phpstan.neon`, `phpstan.neon.dist` or `phpstan.dist.neon`).\n\nTo run this linting feature, the filetype must be `neon`.\n\nInstall \"neon\" related plugin (e.g. [yaegassy/nette-neon.vim](https://github.com/yaegassy/nette-neon.vim)).\n\n---\n\n- [DEMO](https://github.com/yaegassy/coc-phpstan/pull/2#issue-1700077931)\n\n## Configuration options (\"coc-settings.json\" or \".vim/coc-settings.json\")\n\n- `phpstan.enable`: Enable coc-phpstan extension, default: `true`\n- `phpstan.toolPath`: The path to the phpstan (Absolute path), default: `\"\"`\n- `phpstan.level`: Specifies the rule level (0 - 9 and max) to run, If you apply this setting, the level setting in the phpstan.neon file will be ignored, e.g. valid option `\"9\"`, `\"max\"`, default: `null`\n- `phpstan.configuration`: Specifies the path to a configuration file, default: `null`\n- `phpstan.memoryLimit`: Specifies the memory limit in the same format php.ini accepts, Example: -1, 1024M, 2G, default: `\"-1\"`\n- `phpstan.download.checkOnStartup`: Perform built-in download if phpstan is not present at startup, default: `true`\n- `phpstan.neonLint.enable`: Enable neon-js lint (diagnostics). It will only work if the file name is `phpstan.neon`, `phpstan.neon.dist` or `phpstan.dist.neon`, default: `true`\n\n## Commands\n\n- `phpstan.download`: Download PHPStan\n- `phpstan.showOutput`: Show phpstan output channel\n\n## Code Actions\n\n**Example key mapping (Code Action related)**:\n\n```vim\nnmap \u003csilent\u003e ga \u003cPlug\u003e(coc-codeaction-line)\n```\n\n**Usage**:\n\nIn the line with diagnostic message, enter the mapped key (e.g. `ga`) and you will see a list of code actions that can be performed.\n\n**Actions**:\n\n- `Add @phpstan-ignore-next-line`\n- `Add @phpstan-ignore-line`\n\n## Thanks\n\n- [phpstan/phpstan](https://github.com/phpstan/phpstan)\n- [matej21/neon-js](https://github.com/matej21/neon-js)\n\n## License\n\nMIT\n\n---\n\n\u003e This extension is built with [create-coc-extension](https://github.com/fannheyward/create-coc-extension)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaegassy%2Fcoc-phpstan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyaegassy%2Fcoc-phpstan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaegassy%2Fcoc-phpstan/lists"}