Skip to content
PluginStats

PHP Getters & Setters installs statistics

By phproberto · VS Code Marketplace · Other

Create PHP getters and setters from class properties

View on VS Code Marketplace Fresh · Dec 6, 2026

PHP Getters & Setters has 716,790 recorded installs on VS Code Marketplace, an increase of 0.5% over the past 30 days, ranking #677 of 2,515 tracked listings.

Installs
716,790
Official API · Dec 6, 2026
7-day growth
+0.1%
+709 installs
30-day growth
+0.5%
+3.2K installs
90-day growth
—
Insufficient history
Rank
#677
▲ 1 in 7 days

Rating: 3.73 / 5 from 26 ratings

About PHP Getters & Setters

PHP getters and setters for Visual Studio Code

Fast generator of getters and setters for your PHP class properties.

Demo

Features

This extension allows you to quickly generate getters and setters with one single command.

Features:

  • Detects indentation. No matter if you use spaces or tabs.
  • Uses configuration options to show doc blocks as you like them.
  • Generates method's descriptions based on the property description.
  • Detects valid type hints to use them in the setter.

It adds 3 comands to vscode's command palette:

  • Insert PHP getter.
  • Insert PHP setter.
  • Insert PHP getter and setter.

You can also access commands from contextual menu when clicking on a class property:

Contexttual menu

Extension Settings

This extension contributes the following settings:

  • phpGettersSetters.spacesAfterParam: Number of spaces to insert between @param tag and variable name in doc blocks. Default: 2
  • phpGettersSetters.spacesAfterParamVar: Number of spaces to insert after the variable name in the @param tag line. Default: 2
  • phpGettersSetters.spacesAfterReturn: Number of spaces to insert after the @return tag. Default: 2
  • phpGettersSetters.redirect: Redirect editor to generated functions after generating them? Default: true
  • phpGettersSetters.templatesDir: Folder where custom templates are stored
  • phpGettersSetters.getterTemplate: File to use as template for getters. Default: getter.js
  • phpGettersSetters.setterTemplate: File to use as template for setters. Default :setter.js

Custom Templates

By default this extension will use a custom function to generate your getters & setters but you can fully customise the markup used to generate them. By default templates are stored in:

  • Linux: ~/.config/Code/User/phpGettersSetters
  • OSX: ~/Library/Application Support/Code/User/phpGettersSetters
  • Windows: Users\{User}\AppData\Roaming\Code\User\phpGettersSetters

You can also set a custom templates dir entering a custom folder in phpGettersSetters.templatesDir setting.

Template Literals are used for templating because the flexibility they provide. With them you can easily create a custom template with no knowledge and also invest some time for complex things. For advanced usage you will have to google about template literals but here are 2 sample templates.

Sample getter.js template:

module.exports = (property) => `
	/**
	 * ${property.getterDescription()}
	 *
	 * @return  ${property.getType() ? property.getType() : 'mixed'}
	 */
	public function ${property.getterName()}()
	{
		return $this->${property.getName()};
	}
`

Sample setter.js template:

module.exports = (property) => `
	/**
	 * ${property.setterDescription()}
	 *
	 * @param   ${property.getType() ? property.getType() : 'mixed'}  \$${property.getName()}  ${property.getDescription() ? property.getDescription() : ''}
	 *
	 * @return  self
	 */
	public function ${property.setterName()}(${property.getTypeHint() ? property.getTypeHint() + ' ' : '' }\$${property.getName()})
	{
		$this->${property.getName()} = \$${property.getName()};

		return $this;
	}
`

As you can see a Property object is passed to templates so you can access any public method there. I also like the idea of adding more stuff as users find limits. Open an issue if you find something you cannot achieve.

Release Notes

Relevant releases:

1.2.0
  • Added support for custom templates
1.1.0
  • Added support for multiple cursor
1.0.5
  • Fixed No property found when switching between editors. Thanks for reporting Carlos Alfonso Pérez Rivera!
1.0.3
  • Added context menu links
1.0.0
  • Initial version

Description from the VS Code Marketplace listing.

  • getter
  • getters
  • php
  • setter
  • setters

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

PHP Getters & Setters installs on VS Code Marketplace, last 90 days: 716,790 installs as of Dec 6, 2026.PHP Getters & SettersInstalls on VS Code Marketplace · Last 90 days716,790installs711K712K713K714K715K716K717KSep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6installsobservedarchived (Internet Archive)no observationsOct 16, 2026 – Dec 6, 2026 · 50 observations · Updated Dec…pluginstats.com
PHP Getters & Setters installs on VS Code Marketplace, last 90 days: 716,790 installs as of Dec 6, 2026.

7/30/90-day growth

PHP Getters & Setters installs growth on VS Code Marketplace: +0.1% over 7 days, +0.5% over 30 days, 90-day growth unavailable.PHP Getters & SettersInstalls growth on VS Code Marketplace716,790installs now7-day growth+709 installs+0.1%30-day growth+3,215 installs+0.5%90-day growthinsufficient historyInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Dec 6, 2026pluginstats.com
PHP Getters & Setters installs growth on VS Code Marketplace: +0.1% over 7 days, +0.5% over 30 days, 90-day growth unavailable.

Ranking history

PHP Getters & Setters VS Code Marketplace ranking history: currently #677 (by installs).PHP Getters & SettersVS Code Marketplace ranking · by installs · Last 90 days#677current rank#674#676#678#680#682#684Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 16, 2026 – Dec 6, 2026 · 50 observations · Updated Dec 6, 2026pluginstats.com
PHP Getters & Setters VS Code Marketplace ranking history: currently #677 (by installs).

Ratings over time

PHP Getters & Setters ratings on VS Code Marketplace, last 90 days: 26 ratings as of Dec 6, 2026.PHP Getters & SettersRatings on VS Code Marketplace · Last 90 days26ratings23242526272829Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6ratingsobservedarchived (Internet Archive)no observationsOct 16, 2026 – Dec 6, 2026 · 50 observations · Updated Dec…pluginstats.com
PHP Getters & Setters ratings on VS Code Marketplace, last 90 days: 26 ratings as of Dec 6, 2026.

Listing placement

All VS Code Marketplace2,515 listings · 126 pages · 1,259 shown · page 34, #20 (overall #680)
All VS Code Marketplace: every listing in installs order

Listing placement

Other764 listings · 39 pages · page 10, #2 (overall #182)
Other: every listing in installs order

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)
Recent installs observations for PHP Getters & Setters
Date (UTC)InstallsChange vs. previous
716,790+27
716,763+154
716,609+114
716,495+92
716,403+141
716,262+150
716,112+31
716,081+67
716,014+162
715,852+152
715,700+74
715,626+186
715,440+93
715,347—

Similar VS Code Marketplace Other plugins

All 20 PHP Getters & Setters alternatives

Data 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=phproberto.vscode-php-getters-setters. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.