PHP Awesome Snippets installs statistics
By HakCorp · VS Code Marketplace · Programming Languages
A fullset of snippets for PHP devs to boost coding productivity.
PHP Awesome Snippets has 298,695 recorded installs on VS Code Marketplace, an increase of 0.5% over the past 30 days, ranking #1176 of 2,515 tracked listings.
Rating: 4.95 / 5 from 20 ratings
About PHP Awesome Snippets
PHP Awesome Snippets - VScode extension
This VScode extension provide a fullset of snippets for PHP devs. It's pretty simple !
You can use it to avoid wasting time typing Class blocks, function signatures or other common PHP statements.

The code generated is as compliant as possible with PSR-1, PSR-2 and PSR-12 (Review stage) coding standards provided by PHP-FIG.
Snippets are PHP7 oriented (type hinting and return type) but PHP5 compatibility is also provided (see Functions and Methods sections).
This work is inspired by PHPstorm (PHP Live Templates) and other works available on VScode marketplace like PHP Snippets VS Code or PHP Snippet Pack.
Usage
Type a snippet (or part of it), press Enter or Tab (if editor.tabCompletion set to true in your settings) and the snippet will expand just right there.
Tip : Snippets provided in this extension support
tabto next/previous placeholder.
These snippets are meant to work in PHP context (VScode file). However there are also available in Plain Text context for convenience and PHP tags are available in HTML one.
Features
These snippets try to be as intuitive as possible and to avoid conflicts with previous or built-in snippets.
Placeholders are quite 'easy to use' though some need optimizations.
Tip : If you want to use snippets and completion in placeholders look at the Extension settings section.
PHP tags
| Snippet | Output |
|---|---|
| php | <?php ...?> |
| po | <?php... |
| pc | ?> |
| peco | <?= ... ?> |
Superglobals
| Snippet | Output |
|---|---|
| gget | $_GET["..."] |
| gpost | $_POST["..."] |
| gss | $_SESSION["..."] |
| gfile | $_FILES['...']['...'] |
| gcook | $_COOKIE["..."] |
| gser | $_SERVER["..."] |
| greq | $_REQUEST["..."] |
| genv | $_ENV["..."] |
| gglob | $GLOBALS["..."] |
Arrays
| Snippet | Output |
|---|---|
| arr | [value, value, ...]; |
| ark | ['key' => value, 'key' => value,...] |
| kv | 'key' => value, [1] |
| va | value, [1] |
- [1] Addon snippet : use with
arrorarksnippet to addvalueorkey => valueif needed.
Statements and common functions calls
| Snippet | Output |
|---|---|
| eco | echo "..."; |
| inc | include __DIR__.'...'; |
| inco | include_once __DIR__.'...'; |
| rqr | require __DIR__.'...'; |
| rqro | require_once __DIR__.'...'; |
| df | define("...", "..."); |
| pr | print_r(...); |
| vd | var_dump(...); |
| vx | var_export(...); |
<a id="function-snip"></a>Functions
| Snippet | Output |
|---|---|
| fn | function func_name(Type $args): void {...} |
| fna | function (Type $args): void {...} |
| fnu | function (Type $args) use ($vars): void {...} |
Tip : You can call functions snippets above without type hinting and return type (PHP5 compatibility) by using - as prefix.
-fnaforfunction ($args) {...}(anonymous function block)
Control structures
| Snippet | Output |
|---|---|
| ifb | if (condition) {...} |
| ifel | if (condition) {...} else {...} |
| ifelif | if (condition) {...} elseif (condition) {...} else {...} |
| sw | switch ($variable) { case 'label': ... break; ... default: ... break; } |
| cs | case 'label': ... break; [1] |
| tern | condition ? if_true : if_false; |
- [1] Addon snippet : use with
swsnippet to addcaseif needed.
Tip : Other if ... else form is also available if needed:
Snippet Output ifen if (condition): ... endif;ifelen if (condition): ... else: ... endif;ifelifen if (condition): ... elseif (condition): ... else: ... endif;
Loops structures
| Snippet | Output |
|---|---|
| fore | foreach ($iterable as $item) {...} |
| forek | foreach ($iterable as $key => $item) {...} |
| forl | for ($i = 0; $i < $limit; $i++) {...} |
| wl | while ($variable <= $limit) {...} |
| dowl | do {...} while ($variable <= $limit); |
Tip : Other loops form is also available if needed:
Snippet Output foren foreach ($iterable as $item): {...} endforeach;forenk foreach ($iterable as $key => $item): {...} endforeach;forlen for ($i = 0; $i < $limit; $i++): {...} endfor;wlen while ($variable <= $limit): {...} endwhile;
Description from the VS Code Marketplace listing.
- coding
- php
- php7
- Productivity
- psr
- snippet
- Snippets
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
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 Awesome Snippets 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=hakcorp.php-awesome-snippets. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.