PHP DocBlocker installs statistics
By Neil Brayfield · VS Code Marketplace · Programming Languages
A simple, dependency free PHP specific DocBlocking package
PHP DocBlocker has 1,915,195 recorded installs on VS Code Marketplace, an increase of 0.5% over the past 30 days, ranking #358 of 2,515 tracked listings.
Rating: 4.89 / 5 from 35 ratings
About PHP DocBlocker
PHP DocBlocker
Basic PHP DocBlocking extension.
We now have a set of unit tests and some full coverage on the parsing of signatures as well as continuous integration. This should ensure the extension remains stable as development progresses.
Features
- Completion snippet after
/**above a class, function, class property - Completion of DocBlock tags such as
@param,@return,@throws - Inferring of param and return types from signatures
- Configuration of template for each type of docblock completion
Requirements
This extension has no dependencies.
Extension Settings
This extension contributes the following settings:
php-docblocker.gap: set tofalseto disable the gap between the description and tagsphp-docblocker.returnGap: set totrueto add a gap between the param and return tagsphp-docblocker.returnVoid: set tofalseto turn off the automatic void return type when it can't be determinedphp-docblocker.defaultType: default type to use if a type wasn't able to to be determinedphp-docblocker.extra: an array of extra tags to add to each DocBlock (These can include tabstops and snippet variables)php-docblocker.useShortNames: Whether we should use short type names. e.g. bool or booleanphp-docblocker.qualifyClassNames: When adding type hints for class names search namespace use statements and qualify the classphp-docblocker.alignParams: set totrueto align params vertically and add appropriate spaces after param namesphp-docblocker.alignReturn: set totrueto align return vertically with above params statements, this setting requires align params to also be activephp-docblocker.varDescription: set totrueto include a description placeholder for@varcompletions. If you specify a string this will be the default placeholder textphp-docblocker.paramDescription: set totrueto include a description placeholder for@paramcompletions. If you specify a string this will be the default placeholder textphp-docblocker.returnDescription: set totrueto include a description placeholder for@returncompletions. If you specify a string this will be the default placeholder textphp-docblocker.author: An object containing your default author tag settingsphp-docblocker.functionTemplate: See below for how to set up docblock templatesphp-docblocker.propertyTemplate: See below for how to set up docblock templatesphp-docblocker.classTemplate: See below for how to set up docblock templates
Templating
If you want more control over the order or gap settings on your docblocks or you want different things for properties vs class templates
you can start customising the template configuration objects. These are the config options functionTemplate, propertyTemplate and
classTemplate.
Default set up for function
The below is the default set up for a function. The order of the keys represents the output order. There are no specific options in each config option per key to add additional control.
{
"message": {},
"param": {},
"return": {},
"extra": {}
}
Supported template keys
| Key | Aplies to type | Description |
|---|---|---|
| message | All | Space for entering a description of your block |
| extra | All | Adds in your custom tags from the extra config |
| param | Function | Function @param items |
| return | Function | Function @return item |
| var | Property | Property @var item |
| * | All | This is for any key that is unmatched you can use the content option to add a tag |
Supported template config options
| Option | Aplies to key(s) | Description |
|---|---|---|
| gapBefore | All | Adds a gap before the tag section starts |
| gapAfter | All | Adds a gap after the tag section ends |
| content | * | Adds a gap after the tag section ends |
Configured function template example
In the example below we have added some gap configuration and removed the return tag for our template as well as changing the default order. This means we'll never have a @return tag and extra comes before the params. It's also worth pointing out that the gapAfter in the message is the same as setting the gap config option in the main config to true.…
Description from the VS Code Marketplace listing.
- autocomplete
- docblock
- hack
- php
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Ratings over time
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Installs on a linear scale. Placement is projected from installs, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (50)Similar VS Code Marketplace Programming Languages plugins
All 20 PHP DocBlocker alternativesData source
Install counts, average rating, and rating counts come from the public Visual Studio Marketplace gallery API. Installs are cumulative and exclude updates.
Listing: https://marketplace.visualstudio.com/items?itemName=neilbrayfield.php-docblocker. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.