{"id":13912654,"url":"https://github.com/HvyIndustries/crane","last_synced_at":"2025-07-18T12:32:13.848Z","repository":{"id":91909460,"uuid":"54853668","full_name":"HvyIndustries/crane","owner":"HvyIndustries","description":"PHP Intellisense/code-completion for VS Code","archived":true,"fork":false,"pushed_at":"2018-09-04T21:41:53.000Z","size":10437,"stargazers_count":240,"open_issues_count":142,"forks_count":25,"subscribers_count":17,"default_branch":"master","last_synced_at":"2024-08-08T01:56:33.923Z","etag":null,"topics":["code-completion","intellisense","php","plugin","productivity","productivity-booster","vs-code"],"latest_commit_sha":null,"homepage":"https://hvy.io/crane","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HvyIndustries.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"License.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-03-28T00:00:28.000Z","updated_at":"2024-04-12T07:19:02.000Z","dependencies_parsed_at":"2023-04-09T01:03:05.713Z","dependency_job_id":null,"html_url":"https://github.com/HvyIndustries/crane","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HvyIndustries%2Fcrane","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HvyIndustries%2Fcrane/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HvyIndustries%2Fcrane/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HvyIndustries%2Fcrane/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HvyIndustries","download_url":"https://codeload.github.com/HvyIndustries/crane/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226409839,"owners_count":17620717,"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":["code-completion","intellisense","php","plugin","productivity","productivity-booster","vs-code"],"created_at":"2024-08-07T01:01:38.430Z","updated_at":"2024-11-25T22:30:43.869Z","avatar_url":"https://github.com/HvyIndustries.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","php","productivity"],"sub_categories":[],"readme":"# Crane - PHP code-completion for VS Code\n\nCrane is a productivity enhancement extension for [Visual Studio Code](http://code.visualstudio.com) that provides code-completion for PHP. It has zero dependencies and largely works with projects of any size. It is still in development, and as such there may be bugs and/or missing features.\n\nPlease report any bugs that you find in our [issue tracker on GitHub](https://github.com/HvyIndustries/crane/issues).\n\nFollow [@HvyIndustries](https://twitter.com/HvyIndustries) on Twitter for updates!\n\n## How To Get Started\n\n1. Install Crane by pressing \u003ckbd\u003eF1\u003c/kbd\u003e in VS Code, then typing `ext install crane`\n2. Open a PHP project\n3. Check the status bar at the bottom and watch Crane parse all the PHP files it finds\n\n- Optionally, install the PHP Stubs to get code-completion for the built in PHP classes by pressing \u003ckbd\u003eF1\u003c/kbd\u003e in VS Code, then typing `crane php stubs` and selecting the appropriate option from the list.\n\nFor the best development experience, make sure you have the PHP linter enabled in your user settings, and set it to run `onType` instead of `onSave`!\n\nYou can also set `php.suggest.basic` to `false` to disable VS Code's built-in php code completion and avoid duplicate suggestions.\n\n## Demo\n\n![](https://i.imgur.com/a9j3V9u.gif)\n\n---\n\n# What's new in v0.3.7 (latest release)\n- Fix issue with including file on Linux\n\n# What's new in v0.3.7\n- Disabled bug report link to avoid misleading users into thinking there is a bug\n- Upgraded php-parser to 2.0.6 to fix some crashes and freezing\n- Added a special case for suggesting php opening tags (`\u003c?php`)\n\n## What's new in v0.3.5\n- Bug fixes\n- Remote error reporting to help us find and fix bugs faster\n\n## What's new in v0.3.4\n- Significant performance improvements when requesting suggestions *(up to 7,500% faster)*\n\n## What's new in v0.3.3\n- Document symbol provider - view top level symbols in the current file\n- Workspace symbol provider - view top level symbols throughout the workspace\n- Performance improvements\n\n## What's new in v0.3.2\n- **Added go to definition on classes, traits \u0026 interfaces**\n- Fix several bugs introduced in v0.3.1\n  - Namespace insert text should be prefixed with a backslash _(Thanks @TheColorRed for pointing out this mistake!)_\n  - Crane no longer adds the fully qualified namespace to a class if the class is in the same namespace\n  - Fixed issue where there were no suggestions for properties and methods defined in traits\n- Disabled Crane suggestions when typing on a single line comment\n- Bug report link now prefills basic information including vscode version, crane version and platform (win/linux/macos)\n\n---\n\n## Current Features\n\n- Code-completion _(work in progress)_\n  - For user created code\n  - Optionally for built-in PHP functions and classes (such as PDO)\n- **Go to definition** on classes, interfaces and traits\n- Peek definition on classes, interfaces and traits\n- Document \u0026 workspace symbol providers\n\n## Planned Features:\n\n- Find references\n- Signature provider to show method parameter suggestions\n- Hover provider to show information about symbol under the cursor\n- Full go-to/Peek definition on variables, methods, properties, etc\n- PhpDoc support (both for reading and writing documentation)\n\n## User Feedback\n\n\u003e **Another total must have for PHP developers using Visual Studio Code.**  \n\u003e Jan Hajek\n\n\u003e **Essential extension for every PHP developer, just install :)**  \n\u003e Marcelo Rodrigo\n\n\u003e **Essential to every PHP developer, recommended!**  \n\u003e Gabriel Coronado\n\n\u003e That's the tweet I've been waiting for since the first public release of VS Code. Thanks.  \n\u003e [Bruno Baketaric](https://twitter.com/laphblog/status/719631906598449152)\n\n\u003e omg omg omg omg omg  \n\u003e [Rich Perez](https://twitter.com/imperez/status/719645661461921793)\n\n\u003e 👌👌👌 super awesome.  \n\u003e [яєαℓιѕт נανѕтαн](https://twitter.com/RHJOfficial/status/719630044310740992)\n\n## Known Issues\n\n* If you get duplicate suggestions for variables, etc. you can disable VS Code's built-in php code-completion by setting `php.suggest.basic` to `false` in your settings.\n* There can be strange behaviour when working with PHP and HTML in the same file.\n* If you have a syntax error in a file, you may not get a full list of suggestions for that file.\n* Go to definition only works on classes, traits and interfaces\n\n## Links\n\n* [Repository](https://github.com/HvyIndustries/crane)\n* [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=HvyIndustries.crane)\n\n\n**[Please report any bugs you find!](https://github.com/HvyIndustries/crane/issues)**\n\n\n*\"HVY\", \"HVY Industries\" and \"Hvy Industries\" are trading names of JCKD (UK) Ltd*\n\n*Icon by http://icons8.com/*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHvyIndustries%2Fcrane","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FHvyIndustries%2Fcrane","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHvyIndustries%2Fcrane/lists"}