{"id":13595103,"url":"https://github.com/yaegassy/coc-intelephense","last_synced_at":"2026-04-07T15:33:49.897Z","repository":{"id":37931458,"uuid":"329587318","full_name":"yaegassy/coc-intelephense","owner":"yaegassy","description":"intelephense (PHP language server) extension for coc.nvim. intelephense’s various LSP features and this extension's additional features are available.","archived":false,"fork":false,"pushed_at":"2026-02-02T11:41:32.000Z","size":2303,"stargazers_count":106,"open_issues_count":2,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-02-03T01:09:25.379Z","etag":null,"topics":["artisan","coc","coc-extensions","coc-nvim","composer","intelephense","laravel","lsp","neovim","pest","php","phpunit","vim"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@yaegassy/coc-intelephense","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-01-14T10:55:43.000Z","updated_at":"2026-02-02T11:41:35.000Z","dependencies_parsed_at":"2024-01-15T16:23:09.275Z","dependency_job_id":"618eaf02-1531-4e68-a904-d8db05161c32","html_url":"https://github.com/yaegassy/coc-intelephense","commit_stats":{"total_commits":502,"total_committers":4,"mean_commits":125.5,"dds":0.007968127490039834,"last_synced_commit":"d4ab2eb8fc6151278803a1bc3aa34047b62cf63f"},"previous_names":[],"tags_count":132,"template":false,"template_full_name":null,"purl":"pkg:github/yaegassy/coc-intelephense","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-intelephense","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-intelephense/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-intelephense/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-intelephense/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yaegassy","download_url":"https://codeload.github.com/yaegassy/coc-intelephense/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-intelephense/sbom","scorecard":{"id":1240166,"data":{"date":"2025-11-24","repo":{"name":"github.com/yaegassy/coc-intelephense","commit":"4306d3837d7098eeeb946057b4712491bd94a1e1"},"scorecard":{"version":"v5.4.1-0.20251125161513-488797dbe611","commit":"488797dbe611ab7e16f12d88185cde5e8dc28aca"},"score":3.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/488797dbe611ab7e16f12d88185cde5e8dc28aca/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/488797dbe611ab7e16f12d88185cde5e8dc28aca/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":10,"reason":"17 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/488797dbe611ab7e16f12d88185cde5e8dc28aca/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/upstream-snippets-check.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/488797dbe611ab7e16f12d88185cde5e8dc28aca/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/488797dbe611ab7e16f12d88185cde5e8dc28aca/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/488797dbe611ab7e16f12d88185cde5e8dc28aca/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/488797dbe611ab7e16f12d88185cde5e8dc28aca/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/upstream-snippets-check.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/yaegassy/coc-intelephense/upstream-snippets-check.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/upstream-snippets-check.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/yaegassy/coc-intelephense/upstream-snippets-check.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/488797dbe611ab7e16f12d88185cde5e8dc28aca/docs/checks.md#pinned-dependencies"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/488797dbe611ab7e16f12d88185cde5e8dc28aca/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/488797dbe611ab7e16f12d88185cde5e8dc28aca/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/488797dbe611ab7e16f12d88185cde5e8dc28aca/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/488797dbe611ab7e16f12d88185cde5e8dc28aca/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/488797dbe611ab7e16f12d88185cde5e8dc28aca/docs/checks.md#signed-releases"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 1 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/488797dbe611ab7e16f12d88185cde5e8dc28aca/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"19 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: https://osv.dev/GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: https://osv.dev/GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: https://osv.dev/GHSA-67mh-4wv8-2f99","Warn: Project is vulnerable to: https://osv.dev/GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: https://osv.dev/GHSA-5j98-mcp5-4vw2","Warn: Project is vulnerable to: https://osv.dev/GHSA-mh29-5h37-fv8m","Warn: Project is vulnerable to: https://osv.dev/GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: https://osv.dev/GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: https://osv.dev/GHSA-356w-63v5-8wf4","Warn: Project is vulnerable to: https://osv.dev/GHSA-4r4m-qw57-chr8","Warn: Project is vulnerable to: https://osv.dev/GHSA-64vr-g452-qvp3","Warn: Project is vulnerable to: https://osv.dev/GHSA-859w-5945-r5v3","Warn: Project is vulnerable to: https://osv.dev/GHSA-93m4-6634-74q7","Warn: Project is vulnerable to: https://osv.dev/GHSA-9cwx-2883-4wfx","Warn: Project is vulnerable to: https://osv.dev/GHSA-g4jq-h2w9-997c","Warn: Project is vulnerable to: https://osv.dev/GHSA-jqfw-vq24-v9c3","Warn: Project is vulnerable to: https://osv.dev/GHSA-vg6x-rcgg-rjx6","Warn: Project is vulnerable to: https://osv.dev/GHSA-x574-m823-4x7w","Warn: Project is vulnerable to: https://osv.dev/GHSA-xcj6-pq6g-qj4x"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/488797dbe611ab7e16f12d88185cde5e8dc28aca/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-12-03T13:36:50.988Z","repository_id":37931458,"created_at":"2025-12-03T13:36:50.988Z","updated_at":"2025-12-03T13:36:50.988Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31518620,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"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":["artisan","coc","coc-extensions","coc-nvim","composer","intelephense","laravel","lsp","neovim","pest","php","phpunit","vim"],"created_at":"2024-08-01T16:01:43.986Z","updated_at":"2026-04-07T15:33:49.890Z","avatar_url":"https://github.com/yaegassy.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","Language Support"],"sub_categories":[],"readme":"# coc-intelephense\n\n\u003e fork from a [bmewburn/vscode-intelephense](https://github.com/bmewburn/vscode-intelephense) | [PHP Intelephense](https://marketplace.visualstudio.com/items?itemName=bmewburn.vscode-intelephense-client) and more feature.\n\n[intelephense](https://intelephense.com/) (PHP language server) extension for [coc.nvim](https://github.com/neoclide/coc.nvim). intelephense's various LSP features and this extension's additional features are available.\n\n## Install\n\n**CocInstall**:\n\n```vim\n:CocInstall @yaegassy/coc-intelephense\n```\n\n\u003e scoped packages\n\n**vim-plug**:\n\n```vim\nPlug 'yaegassy/coc-intelephense', {'do': 'yarn install --frozen-lockfile'}\n```\n\n## Enabling the PREMIUM feature\n\nPrepare a `licence.txt` file containing the licence key and place it in a designated location.\n\n```sh\n$ node -e \"console.log(os.homedir() + '/intelephense/licence.txt')\"\n/Users/username/intelephense/licence.txt\n```\n\n**[DEPRECATED]:** Or set `intelephense.licenceKey` in \"coc-settings.json\"\n\n```jsonc\n{\n  // ...snip\n  \"intelephense.licenceKey\": \"LICENCEKEYSAMPLE\",\n  // ...snip\n}\n```\n\nFor more information, please check this link.\n\n- \u003chttps://intelephense.com/faq.html\u003e\n\n## [RECOMMENDED] Additional installation of \"watchman\"\n\nIn the `intelephense` used by `coc-intelephense`, it utilizes the `workspace/didChangeWatchedFiles` notification to watch files within the project.\n\nIn coc.nvim, it is recommended to install [watchman](https://facebook.github.io/watchman/) in order to utilize this feature.\n\n- See: \u003chttps://github.com/neoclide/coc.nvim/wiki/Using-coc-extensions\u003e\n\nIf you have difficulty installing `watchman`, you can use `coc-intelephense` without `watchman`, but you may not be able to immediately use intelephense's IntelliSense with the newly added files.\n\nIn this case, please execute the command to restart the language server.\n\n- `:CocRestart`\n\n## workspaceFolders\n\nDepending on the project like mono repo or how Vim/Neovim is started, `workspaceFolders` may not be recognized correctly.\n\nTo make coc.nvim recognize `workspaceFolders` correctly, you can set `b:coc_root_patterns` in .vimrc/init.vim\n\n**Example**:\n\n```vim\n  au FileType php let b:coc_root_patterns = ['.git', '.env', 'composer.json', 'artisan']\n```\n\nFor more information, check this coc.nvim's wiki.\n\n- \u003chttps://github.com/neoclide/coc.nvim/wiki/Using-workspaceFolders\u003e\n\n## Configuration options\n\n**For additional feature of coc-intelephese**:\n\n- `intelephense.enable`: Enable coc-intelephense extension, default `true`\n- `intelephense.path`: Path to intelephense module. `~` and `$HOME`, etc. can also be used. If there is no setting, the built-in module will be used. e.g. `/path/to/node_modules/intelephense`. default: `\"\"`\n- `intelephense.client.diagnosticsIgnoreErrorFeature`: Whether to enable the PHPDoc tag (`// @intelephense-ignore-line`, `/** @intelephense-ignore-next-line */`) feature and ignore errors, default: `false` | [DEMO](https://github.com/yaegassy/coc-intelephense/pull/16)\n  - This feature is a proprietary implementation of `coc-intelephense`. This feature will be removed when the dedicated feature is added in the upstream's `vscode-intelephense` or `intelephense` language server.\n  - I made it an ignore comment like `phpstan`, Please refer to this page for usage. \u003chttps://phpstan.org/user-guide/ignoring-errors#ignoring-in-code-using-phpdocs\u003e\n- `intelephense.client.autoCloseDocCommentDoSuggest`: When `/**` is entered, `*/` is automatically inserted (`/**| */`). Then, automatically display the completion menu of PHPDoc comments, default: `true` | [DEMO](https://github.com/yaegassy/coc-intelephense/pull/24#issuecomment-1088219510)\n- `intelephense.client.disableScaffoldCompletion`: Disable scaffold completion (client). Typing `class_scaffold`, `interface_scaffold`, `trait_scaffold`, `enum_scaffold` or `test_scaffold` will output completion suggestions. This completion feature will only work on the first line of the file, default: `false` | [DEMO](https://github.com/yaegassy/coc-intelephense/pull/36#issue-1254138261)\n- `intelephense.client.disableSnippetsCompletion`: Disable snippets completion only (client), default: `false`\n  - Snippet data used for snippet completion can be found in [data/snippets/extended/php.code-snippets](/data/snippets/extended/php.code-snippets).\n- `intelephense.client.snippetsCompletionExclude`: Exclude specific prefix in snippet completion, e.g. `[\"class\", \"fun\"]`, default: `[]`\n- `intelephense.client.disableCodeLens`: Disable code lens only (client), default: `false`\n- `intelephense.client.codelensProvider`: Provider for CodeLens. Possible options include `phpunit` and `pest`, default: `\"phpunit\"`\n- `intelephense.client.disableAddIskeyword`: Disable the feature of the extension to add `iskeyword`, default: `false`\n- `intelephense.server.disableCompletion`: Disable completion only (server), default: `false`\n- `intelephense.server.disableDefinition`: Disable definition only (server), default: `false`\n- `intelephense.composer.path`: Path to composer command. default: `composer`\n- `intelephense.composer.runCommandList`: Set the subcommand of the composer you want to execute, default: `[\"dump-autoload\", \"clear-cache\", \"install\", \"update\"]`\n- `intelephense.composer.runCommandPlusList`: Set the subcommand of the composer you want to execute. Additional strings can be entered and executed in the subcommand. default: `[\"require\", \"require --dev\", \"remove\", \"remove --dev\", \"update\"]`\n- `intelephense.composer.enableSplitRight`: Use vertical belowright for composer terminal window, default: `false`\n- `intelephense.artisan.withoutArgumentsCommandList`: List of commands to quickly execute `intelephense.artisan.runCommand` or `intelephense.sailArtisan.runCommand` without prompting for arguments or options, e.g. `[\"route:list\", \"clear-compiled\"]`, default: `[]`\n- `intelephense.artisan.enableSplitRight`: Use vertical belowright for artisan terminal window, default: `false`\n- `intelephense.symfony.withoutArgumentsCommandList`: List of commands to quickly execute `intelephense.symfony.runCommand` without prompting for arguments or options, default: `[]`\n- `intelephense.symfony.enableSplitRight`: Use vertical belowright for symfony terminal window, default: `false`\n- `intelephense.phpunit.path`: Path to phpunit command. If there is no setting, the vendor/bin/phpunit will be used, default: `\"\"`\n- `intelephense.phpunit.colors`: Use colors in output (--colors), default: `false`\n- `intelephense.phpunit.debug`: Display debugging information (--debug), default: `false`\n- `intelephense.phpunit.useSail`: To run `sail phpunit` instead of `phpunit`, default: `false`\n- `intelephense.phpunit.codeLensTitle`: CodeLens title. Can be changed to any display, default: `\"\u003e\u003e [Run PHPUnit]\"`\n- `intelephense.phpunit.enableSplitRight`: Use vertical belowright for phpunit terminal window, default: `false`\n- `intelephense.pest.path`: Path to Pest command. If there is no setting, the vendor/bin/pest will be used, default: `\"\"`\n- `intelephense.pest.doNotCacheResult`: Do not write test results to cache file (--do-not-cache-result), default: `true`\n- `intelephense.pest.useSail`: To run `sail pest` instead of `pest`, default: `false`\n- `intelephense.pest.codeLensTitle`: CodeLens title. Can be changed to any display, default: `\"\u003e\u003e [Run Pest]\"`\n- `intelephense.pest.enableSplitRight`: Use vertical belowright for pest terminal window, default: `false`\n- `intelephense.progress.enable`: Enable progress window for indexing, If false, display with echo messages, default: `true` | [DEMO](https://github.com/yaegassy/coc-intelephense/pull/2)\n\n**Same configuration as vscode-intelephense**:\n\n- `intelephense.compatibility.correctForBaseClassStaticUnionTypes`: Resolves 'BaseClass|static' union types to 'static' instead of 'BaseClass', default: `true`\n- `intelephense.compatibility.correctForArrayAccessArrayAndTraversableArrayUnionTypes`: Resolves 'ArrayAccess' and 'Traversable' implementations that are unioned with a typed array to generic syntax. eg 'ArrayAccessOrTraversable|ElementType[]' =\u003e 'ArrayAccessOrTraversable\u003cmixed, ElementType\u003e', default: `true`\n- `intelephense.compatibility.preferPsalmPhpstanPrefixedAnnotations`: Prefer `@psalm-` and `@phpstan-` prefixed `@return`, `@var`, `@param` tags when determining symbol types, default: `false`\n- `intelephense.files.maxSize`: Maximum file size in bytes, default: `5000000`\n- `intelephense.files.associations`: Configure glob patterns to make files available for language server features. Inherits from files.associations, default: `[\"*.php\", \"*.phtml\"]`\n- `intelephense.files.exclude`: Configure glob patterns to exclude certain files and folders from all language server features. Inherits from files.exclude, default: `[\"**/.git/**\", \"**/.svn/**\", \"**/.hg/**\", \"**/CVS/**\", \"**/.DS_Store/**\", \"**/node_modules/**\", \"**/bower_components/**\", \"**/vendor/**/{Tests,tests}/**\", \"**/.history/**\", \"**/vendor/**/vendor/**\"]`\n- `intelephense.stubs`: Configure stub files for built in symbols and common extensions. The default setting includes PHP core and all bundled extensions, default: Omitted due to the large number of settings..., See configuration in package.json\n- `intelephense.completion.insertUseDeclaration`: Use declarations will be automatically inserted for namespaced classes, traits, interfaces, functions, and constants, default: `true`\n- `intelephense.completion.fullyQualifyGlobalConstantsAndFunctions`: Global namespace constants and functions will be fully qualified (prefixed with a backslash), default: `false`\n- `intelephense.completion.triggerParameterHints`: Method and function completions will include parentheses and trigger parameter hints, default: `true`\n- `intelephense.completion.maxItems`: The maximum number of completion items returned per request, default: `100`\n- `intelephense.completion.suggestObjectOperatorStaticMethods`: PHP permits the calling of static methods using the object operator eg `$obj-\u003emyStaticMethod();`. If you would prefer not to have static methods suggested in this context then set this value to `false`, default: `true`\n- `intelephense.completion.parameterCase`: The preferred font case to use when suggesting parameter names. valid option `\"camel\", \"snake\"`, default: `camel`\n- `intelephense.completion.propertyCase`: The preferred font case to use when suggesting property names Defaults to snake case, valid option `\"camel\", \"snake\"`, default: `snake`\n- `intelephense.completion.suggestRelativeToPartialUseDeclaration`: Inserted text will be relative to any existing partial use declarations that may match the symbol. The value is the maximum number of namespace segments that may appear in the inserted text. Defaults to 0 (disabled), default: `0`\n- `intelephense.completion.sortText`: Controls whether suggestions will include a `sortText` property that may influence sort order, valid option `\"none\", \"multi-factor\"`, default: `multi-factor`\n- `intelephense.completion.withOverrideAttribute`: Method completions will include an `#[Override]` attribute where appropriate if targeting PHP 8.3+, default: `true`\n- `intelephense.completion.withMethodBody`: Method completions will include either a `parent` call or a `throw new Exception('Not implemented')` in the method body, default: `false`\n- `intelephense.format.enable`: Enables formatting, default: `true`\n- `intelephense.format.braces`: Controls formatting style of braces, valid option `\"per\", \"allman\", \"k\u0026r\"`, default: `per`\n- `intelephense.environment.documentRoot`: The directory of the entry point to the application (directory of index.php). Can be absolute or relative to the workspace folder. Used for resolving script inclusion and path suggestions, default: `null`\n- `intelephense.environment.includePaths`: include paths (as individual path items) as defined in the include_path ini setting or paths to external libraries. Can be absolute or relative to the workspace folder. Used for resolving script inclusion and/or adding external symbols to folder, default: `null`\n- `intelephense.environment.phpVersion`: A semver compatible string that represents the target PHP version. Used for providing version appropriate suggestions and diagnostics. PHP 5.3.0 and greater supported, default: `\"8.4.0\"`\n- `intelephense.environment.shortOpenTag`: When enabled `\u003c?` will be parsed as a PHP open tag. Defaults to true, default: `true`\n- `intelephense.diagnostics.enable`: Enables diagnostics, default: `true`\n- `intelephense.diagnostics.run`: Controls when diagnostics are run, valid option `\"onType\", \"onSave\"`, default: `\"onType\"`\n- `intelephense.diagnostics.embeddedLanguages`: Enables diagnostics in embedded languages, default: `true`\n- `intelephense.diagnostics.undefinedSymbols`: DEPRECATED. Use the setting for each symbol category, default: `true`\n- `intelephense.diagnostics.undefinedVariables`: Enables undefined variable diagnostics, default: `true`\n- `intelephense.diagnostics.undefinedTypes`: Enables undefined class, interface and trait diagnostics, default: `true`\n- `intelephense.diagnostics.undefinedFunctions`: Enables undefined function diagnostics, default: `true`\n- `intelephense.diagnostics.undefinedConstants`: Enables undefined constant diagnostics, default: `true`\n- `intelephense.diagnostics.undefinedClassConstants`: Enables undefined class constant diagnostics, default: `true`\n- `intelephense.diagnostics.undefinedMethods`: Enables undefined method diagnostics, default: `true`\n- `intelephense.diagnostics.undefinedProperties`: Enables undefined property diagnostics, default: `true`\n- `intelephense.diagnostics.unusedSymbols`: Enables unused variable, private member, and import diagnostics, default: `true`\n- `intelephense.diagnostics.unexpectedTokens`: Enables unexpected token diagnostics, default: `true`\n- `intelephense.diagnostics.duplicateSymbols`: Enables duplicate symbol diagnostics, default: `true`\n- `intelephense.diagnostics.argumentCount`: Enables argument count diagnostics, default: `true`\n- `intelephense.diagnostics.typeErrors`: Enables diagnostics on type compatibility of arguments, property assignments, and return statements where types have been declared, default: `true`\n- `intelephense.diagnostics.deprecated`: Enables deprecated diagnostics, default: `true`\n- `intelephense.diagnostics.languageConstraints`: Enables reporting of various language constraint errors, default: `true`\n- `intelephense.diagnostics.implementationErrors`: Enables reporting of problems associated with method and class implementations. For example, unimplemented methods or method signature incompatibilities, default: `true`\n- `intelephense.diagnostics.relaxedTypeCheck`: This setting makes type checking less thorough by allowing contravariant (wider) types to also satisfy a type constraint. This is useful for projects that may have incomplete or innacurate typings. Set to `false` for more thorough type checks. When this setting is `true`, the `noMixedTypeCheck` setting is ignored, default: `true`\n- `intelephense.diagnostics.noMixedTypeCheck`: This setting turns off type checking for the `mixed` type. This is useful for projects that may have incomplete or innacurate typings. Set to `false` to make type checking more thorough by not allowing `mixed` to satisy any type constraint. This setting has no effect when `relaxedTypeCheck` is `true`, default: `true`\n- `intelephense.diagnostics.memberAccess`: Enables reporting of errors associated with type member access, default: `true`\n- `intelephense.diagnostics.unreachableCode`: Enables reporting of unreachable code, default: `true`\n- `intelephense.diagnostics.suspectCode`: Enables reporting of irregularities in code that may be indicative of a bug. For example, assignments in a conditional expression or duplicate array keys, default: `true`\n- `intelephense.diagnostics.strictTypes`: When enabled, type checks will be performed as if a `declare(strict_types=1)` directive is present in all files, default: `false`\n- `intelephense.diagnostics.suppressUndefinedMembersWhenMagicMethodDeclared`: Suppresses undefined property and method errors when `__get` or `__call` magic methods are declared, default: `true`\n- `intelephense.diagnostics.severity`: Sets the severity level for each diagnostic code.\n- `intelephense.diagnostics.exclude`: A map of globs to diagnostic codes to be excluded for the matching files. Use `*` as a value in the array to exclude all diagnostics. By default the vendor directory is excluded. You can override this by setting `**/vendor/**` to an empty array.\n- `intelephense.runtime`: Path to a Node.js executable. Use this if you wish to use a different version of Node.js, default: `null`\n- `intelephense.maxMemory`: Maximum memory (in MB) that the server should use. On some systems this may only have effect when runtime has been set. Minimum 256, default: `null`\n- `intelephense.licenceKey`: DEPRECATED. Don't use this, default: `\"\"`\n- `intelephense.telemetry.enabled`: When set to `true`, anonymous usage and crash data will be sent to Azure Application Insights. Defaults to `false`, default: `false`\n- `intelephense.rename.exclude`: Glob patterns to exclude files and folders from having symbols renamed. Rename operation will fail if references and/or definitions are found in excluded files/folders, default: `[\"**/vendor/**\"]`\n- `intelephense.rename.namespaceMode`: Controls the scope of a namespace rename operation, valid option `\"single\", \"all\"`, default: `\"single\"`\n- `intelephense.references.exclude`: Glob patterns matching files and folders that should be excluded from references search, default: `[\"**/vendor/**\"]`\n- `intelephense.phpdoc.returnVoid`: Adds `@return void` to auto generated phpdoc for definitions that do not return a value, default: `true`\n- `intelephense.phpdoc.textFormat`: Auto generated phpdoc is returned in {snippet, plain text}, valid option `\"snippet\", \"text\"`, default: `\"snippet\"`\n- `intelephense.phpdoc.classTemplate`: An object that describes the format of generated class/interface/trait phpdoc. The following snippet variables are available: SYMBOL_NAME; SYMBOL_KIND; SYMBOL_TYPE; SYMBOL_NAMESPACE, default: See configuration in package.json\n- `intelephense.phpdoc.propertyTemplate`: An object that describes the format of generated property phpdoc. The following snippet variables are available: SYMBOL_NAME; SYMBOL_KIND; SYMBOL_TYPE; SYMBOL_NAMESPACE, default: See configuration in package.json\n- `intelephense.phpdoc.functionTemplate`: An object that describes the format of generated function/method phpdoc. The following snippet variables are available: SYMBOL_NAME; SYMBOL_KIND; SYMBOL_TYPE; SYMBOL_NAMESPACE, default: See configuration in package.json\n- `intelephense.phpdoc.useFullyQualifiedNames`: Fully qualified names will be used for types when true. When false short type names will be used and imported where appropriate. Overrides intelephense.completion.insertUseDeclaration, default: `true`\n- `intelephense.codeLens.references.enable`: Enable a code lens that shows a reference count and command to peek locations, default: `false`.\n- `intelephense.codeLens.implementations.enable`: Enable a code lens that shows an abstract and interface implementations count and command to peek locations, default: `false`\n- `intelephense.codeLens.usages.enable`: Enable a code lens that shows a trait usages count and command to peek locations, default: `false`\n- `intelephense.codeLens.overrides.enable`: Enable a code lens that shows method override count and command to peek locations, default: `false`\n- `intelephense.codeLens.parent.enable`: Enable a code lens that indicates if a method has a parent implementation and command to peek location, default: `false`\n- `intelephense.shortOpenEchoAutoClose`: Will auto-close short open echo tags (`\u003c?=`). VSCode only, default: `true`\n- `intelephense.inlayHint.returnTypes`: Will show an inlay hint for call declaration return type if not already declared, default: `true`\n- `intelephense.inlayHint.parameterTypes`: Will show inlay hints for anonymous function declaration parameter types if not already declared, default: `true`\n- `intelephense.inlayHint.parameterNames`: Will show inlay hints for call argument parameter names if named arguments are not already in use, default: `true`\n- `intelephense.trace.server`: Traces the communication between VSCode and the intelephense language server, valid option `\"off\", \"messages\", \"verbose\"`, default: `\"off\"`\n\n## Commands\n\n**Command List**:\n\n\u003e :CocCommand [CommandName]\n\u003e\n\u003e **e.g.** :CocCommand intelephense.phpunit.projectTest\n\n- `intelephense.index.workspace`: Index workspace\n- `intelephense.cancel.indexing`: Cancel indexing\n- `intelephense.composer.runCommand`: Run selected composer command\n  - [DEMO](https://github.com/yaegassy/coc-intelephense/pull/23#issuecomment-1085413528)\n- `intelephense.composer.runCommandPlus`: Enter and run additional strings to the selected composer commands\n  - [DEMO](https://github.com/yaegassy/coc-intelephense/pull/23#issuecomment-1085413960)\n- `intelephense.composer.runScriptsCommand`: Run selected composer script\n  - Select and run the script defined in the \"scripts section\" of `composer.json`. The `pre-...` and `post-...` event scripts are excluded from the list.\n  - [DEMO](https://github.com/yaegassy/coc-intelephense/pull/23#issuecomment-1085414532)\n- `intelephense.artisan.runCommand`: Run Artisan command | [DEMO](https://github.com/yaegassy/coc-intelephense/pull/25)\n- `intelephense.sailArtisan.runCommand`: Run Sail Artisan command\n- `intelephense.symfony.runCommand`: Run Symfony command\n- `intelephense.phpunit.projectTest`: Run PHPUnit for current project\n- `intelephense.phpunit.fileTest`: Run PHPUnit for current file\n- `intelephense.phpunit.singleTest`: Run PHPUnit for single (nearest) test\n- `intelephense.pest.projectTest`: Run Pest for current project\n- `intelephense.pest.fileTest`: Run Pest for current file\n- `intelephense.pest.singleTest`: Run Pest for single (nearest) test\n- `intelephense.fixClassName`: Fix class name based on file name | [DEMO](https://github.com/yaegassy/coc-intelephense/pull/34#issue-1253763775)\n- `intelephense.fixNamespace`: Fix namespace based on the composer configuration | [DEMO](https://github.com/yaegassy/coc-intelephense/pull/35#issue-1253784395)\n- `intelephense.completeConstructor`: Complete the assignments and add properties for an incomplete constructor | [DEMO](https://github.com/yaegassy/coc-intelephense/pull/38#issue-1259696099)\n\n**Example of Vim command and key mapping**:\n\nVim commands can be defined and executed or key mappings can be set and used.\n\n```vim\n\" Quickly view a list of all coc.nvim commands\nnnoremap \u003csilent\u003e \u003cC-p\u003e :\u003cC-u\u003eCocCommand\u003cCR\u003e\n\n\" Run PHPUnit for current project\ncommand! -nargs=0 PHPUnit :call CocAction('runCommand', 'intelephense.phpunit.projectTest')\n\n\" Run PHPUnit for current file\ncommand! -nargs=0 PHPUnitCurrent :call CocAction('runCommand', 'intelephense.phpunit.fileTest', ['%'])\n\n\" Run PHPUnit for single (nearest) test\nnnoremap \u003cleader\u003ete :call CocAction('runCommand', 'intelephense.phpunit.singleTest')\u003cCR\u003e\n```\n\n## CodeLens\n\n**Feature**:\n\nTest file for \"PHPUnit\" or \"Pest\", allowing execution of a single test method. CodeLens appears at the top of the test method.\n\n- [PHPUnit DEMO](https://github.com/yaegassy/coc-intelephense/pull/20)\n- [Pest DEMO](https://github.com/yaegassy/coc-intelephense/pull/26#issuecomment-1099097009)\n\n**coc-settings.json**:\n\nBy default, `codeLens.enable` is set to `false`, which disables it.\n\nChange the setting to `true` to enable it.\n\n```jsonc\n{\n  \"codeLens.enable\": true\n}\n```\n\nIf you want to use \"Pest\", change the `intelephense.client.codelensProvider` setting to `pest` (default: `phpunit`).\n\n```jsonc\n{\n  \"intelephense.client.codelensProvider\": \"pest\"\n}\n```\n\n**Example key mapping (CodeLens related)**:\n\n```vim\nnmap \u003csilent\u003e gl \u003cPlug\u003e(coc-codelens-action)\n```\n\n## Code Actions\n\n**Example key mapping (Code Action related)**:\n\n```vim\nnmap \u003csilent\u003e ga \u003cPlug\u003e(coc-codeaction-line)\nxmap \u003csilent\u003e ga \u003cPlug\u003e(coc-codeaction-selected)\nnmap \u003csilent\u003e \u003cleader\u003ea \u003cPlug\u003e(coc-codeaction-cursor)\nnmap \u003csilent\u003e gA \u003cPlug\u003e(coc-codeaction)\n```\n\n**Code Actions (Client side)**:\n\n- `Open 'php.net' for 'xxxx'` | [DEMO](https://github.com/yaegassy/coc-intelephense/pull/6)\n- `Add @intelephense-ignore-line` | [DEMO](https://github.com/yaegassy/coc-intelephense/pull/16)\n- `Add @intelephense-ignore-next-line` | [DEMO](https://github.com/yaegassy/coc-intelephense/pull/16)\n- `Insert PHP Getter` | [DEMO](https://github.com/yaegassy/coc-intelephense/pull/33#issuecomment-1140683583)\n- `Insert PHP Setter` | [DEMO](https://github.com/yaegassy/coc-intelephense/pull/33#issuecomment-1140684502)\n- `Insert PHP Getter \u0026 Setter` | [DEMO](https://github.com/yaegassy/coc-intelephense/pull/33#issuecomment-1140685034)\n- `Change Visibility` | [DEMO](https://github.com/yaegassy/coc-intelephense/pull/37#issue-1259334586)\n- `Remove all unused imports for \"use\" statetment` | [DEMO](https://github.com/yaegassy/coc-intelephense/pull/43#issue-1285689962)\n\n**Code Actions (Server side)**:\n\n- `use NAMESPACE\\...\\CLASS`\n- `Implement all abstract methods for '...'`\n- `Add PHPDoc for '...'`\n- and more...\n  - Other code actions provided by the intelephehse language server\n\n## Thanks\n\n- [bmewburn/vscode-intelephense](https://github.com/bmewburn/vscode-intelephense)\n- [glayzzle/php-parser](https://github.com/glayzzle/php-parser)\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-intelephense","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyaegassy%2Fcoc-intelephense","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaegassy%2Fcoc-intelephense/lists"}