Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Luan's PHP SnippetsNew to Visual Studio Code? Get it now.
Luan's PHP Snippets

Luan's PHP Snippets

Luan Himmlisch

|
4,403 installs
| (1) | Free
PHP useful Snippets pack
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Luan's PHP Snippets - Visual Studio Code Extension

This extension includes full featured PSR-compliant PHP snippets for an easy and quick development.

Showcase

No large snippets! No undocummented functions!

Features

Snippet Description
php <?php ?>
po <?php
cls class Filename
class class Filename
construct public function __construct
pc public function __construct
prc private function __construct
proc protected function __construct
pf public function
psf public static function
prf private function
prsf private static function
prof protected function
prosf protected static function
pv public variable
psv public static variable
prv private variable
prsv private static variable
prov protected variable
prosv protected static variable
for for
fore foreach
forek foreach($items as $key => $item)
try try catch
sw switch
case case
th throw
inc include
inco include_once
req require
reqo require_once
eco echo
pr print_r
dd var_dump
r return
def define

Release Notes

1.1.0

New snippets!

1.0.0

Initial release

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft