VS Code Extensions
PHP IntelliSense PRO

PHP IntelliSense PRO

by AlexNewmanUSA

Basic PHP IntelliSense, snippets, formatting.

Downloads

313

Rating

5.0 / 5 (2)

Version

0.0.7

Last updated

May 28, 2026

Lightweight PHP helper for Visual Studio Code: basic IntelliSense, short PHP snippets, and simple formatting through php-cs-fixer.

The extension is intentionally simple. It does not try to replace a full PHP language server, but it helps with common PHP code while staying easy to understand and fast to use.

Features

  • Basic PHP completions for keywords, common functions and superglobals.
  • Short snippet commands for classes, constructors, PDO usage, database connection, registration and login.
  • Document formatting with php-cs-fixer.
  • Support for older VS Code versions from 1.74.0.

Usage

Open a PHP file and start typing. Common PHP completions appear automatically.

For snippets, type the full prefix and press Tab.

phpclass

Snippets

Use these short commands in PHP files.

Prefix Description
phpclass PHP class template
phpctor Constructor template
phppdo PDO prepare, execute and fetch template

phpclass

class ClassName
{

}

phpctor

public function __construct()
{

}

phppdo

$stmt = $db->prepare($sql);
$stmt->execute([$params]);
$result = $stmt->fetch(PDO::FETCH_ASSOC);

Formatting

Formatting uses php-cs-fixer. Install it separately and make sure the executable is available from the terminal.

You can change the executable path in VS Code settings:

{
  "phpIntelliSense.phpCsFixerPath": "php-cs-fixer"
}

Requirements

  • Visual Studio Code 1.74.0 or newer.
  • php-cs-fixer is optional and needed only for formatting.

Troubleshooting

If you see an error like php.exe --version or php.exe is not recognized, it usually comes from another installed PHP language-server extension. This extension does not start a PHP language server.

For formatting issues, check that php-cs-fixer is installed and the phpIntelliSense.phpCsFixerPath setting points to the correct executable.

Related extensions