{"id":36991321,"url":"https://github.com/vix-4800/php-typehints-vsc","last_synced_at":"2026-01-18T07:42:41.737Z","repository":{"id":328547793,"uuid":"1115823364","full_name":"vix-4800/php-typehints-vsc","owner":"vix-4800","description":"Display parameter names and return types as inlay hints for PHP","archived":false,"fork":false,"pushed_at":"2026-01-10T06:01:52.000Z","size":1168,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-13T19:48:56.025Z","etag":null,"topics":["php","typehints","vscode-extension"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=vix.php-typehints-vsc","language":"PHP","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/vix-4800.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":"2025-12-13T16:18:06.000Z","updated_at":"2026-01-05T09:59:26.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/vix-4800/php-typehints-vsc","commit_stats":null,"previous_names":["vix-4800/php-typehints-vsc"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/vix-4800/php-typehints-vsc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vix-4800%2Fphp-typehints-vsc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vix-4800%2Fphp-typehints-vsc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vix-4800%2Fphp-typehints-vsc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vix-4800%2Fphp-typehints-vsc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vix-4800","download_url":"https://codeload.github.com/vix-4800/php-typehints-vsc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vix-4800%2Fphp-typehints-vsc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28405320,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"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":["php","typehints","vscode-extension"],"created_at":"2026-01-13T23:42:32.288Z","updated_at":"2026-01-13T23:42:32.884Z","avatar_url":"https://github.com/vix-4800.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP Type Hints\n\nDisplay parameter names and return types as inlay hints for PHP.\n\n## Features\n\n- **Parameter Hints**: Shows parameter names before arguments in function and method calls\n- **Return Type Hints**: Displays inferred return types for functions without explicit type declarations\n- **Interactive Hints**: Click on hints to insert them into your code!\n  - Click on parameter hints to add named parameters (PHP 8.0+)\n  - Click on return type hints to add type annotations\n- **Smart Detection**: Automatically hides hints for named arguments (PHP 8.0+)\n- **Configurable**: Hide hints when variable names match parameter names\n- **LSP-Powered**: Leverages Language Server Protocol for accurate type information\n\n## Screenshot\n\n![alt text](image.png)\n\n## Requirements\n\n- [Intelephense](https://marketplace.visualstudio.com/items?itemName=bmewburn.vscode-intelephense-client) extension\n    must be installed and active\n\n## Configuration\n\n```jsonc\n{\n    // Enable or disable all type hints\n    \"phpTypeHints.enabled\": true,\n\n    // Show parameter name hints for function calls\n    \"phpTypeHints.showParameterHints\": true,\n\n    // Show return type hints for function declarations\n    \"phpTypeHints.showReturnTypeHints\": true,\n\n    // Hide hint when variable name matches parameter name\n    \"phpTypeHints.hideWhenArgumentMatchesName\": true,\n\n    // Maximum file size to process (in bytes)\n    \"phpTypeHints.maxFileSize\": 100000\n}\n```\n\n## Commands\n\n- **PHP Type Hints: Toggle Hints** - Quickly enable/disable all hints\n- **PHP Type Hints: Insert Named Parameter** - Insert a named parameter (triggered by clicking hint)\n- **PHP Type Hints: Insert Return Type** - Insert a return type annotation (triggered by clicking hint)\n\n## Development\n\n### Install Dependencies\n\n```bash\nnpm install\n```\n\n### Compile\n\n```bash\nnpm run compile\n```\n\n### Run Tests\n\n```bash\nnpm test\n```\n\n### Create VSIX Package\n\n```bash\nnpm run package\n```\n\n## License\n\n[MIT License](LICENSE)\n\n## Alternatives\n\n- [PhpStorm Parameter Hints in VScode](https://marketplace.visualstudio.com/items?itemName=MrChetan.phpstorm-parameter-hints-in-vscode)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvix-4800%2Fphp-typehints-vsc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvix-4800%2Fphp-typehints-vsc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvix-4800%2Fphp-typehints-vsc/lists"}