PHP Tools for Visual Studio

Making PHP a first-class citizen in Visual Studio

What’s new?

Latest update (Download) of PHP Tools for Visual Studio brings seamless analysis of source code within PHP projects. In addition to IntelliSense improvements, this feature gives you smart code validation which underlines unused variables, type mismatches, dead code and other suspicious constructs in your code.

php code analysis

Get social with us


Code Editor

  • Syntax coloring, Customizable Fonts&Colors read more
  • Smart Indentation
  • Document Format, Selection Format, Format on Paste, Format on closing brace and semicolon
  • Bookmarks
  • Code collapsing, #region/#endregion collapsing
  • Brace Matching, Matching symbol highlighting
  • Smart brace completion (Visual Studio 2013 and later)
  • Comment/Uncomment code
  • Full Unicode support and line ending configuration
  • PHP 5.5 support
  • Peek to Definition
  • Custom additional file extensions, e.g .php5, .phpt
  • PHPDoc support, autogenerating on /**, smart indentation
  • Find/Search replacement within projects and solutions. Supports regular expressions and wildcards.


  • Integrated PHP manual, Go to Help (F1)
  • Complete help support using PHP manual and PHPDoc comments
  • Word Completion (Ctrl+Space)
  • Go To Definition (F12)
  • Function Assistance showing parameters, default values and description
  • Tool Tip Assistance showing summary on mouse hover
  • Dynamic context-aware IntelliSense for PHP
  • Autogenerated view for PHP manual functions, classes


  • Xdebug support, Multi-session debugging, Remote debugging
  • PHP, JavaScript and .NET debugging at once
  • Automatic installation of PHP from Web Platform Installer
  • Supports built-in PHP server, IIS Express and custom server
  • Breakpoints, Conditional breakpoints
  • Step Into, Step Over, Step Out
  • Quick Watch support, Add To Watch
  • Edit values at run-time
  • Watch, Autos, Locals, Immediate Window
  • Call Stack Window
  • Text View, HTML View, XML View of variables value

Read more

Team Collaboration

  • Support for built-in version control providers
  • PHP Projects version controlling
  • Team Foundation Server, Git, SVN, and more
  • Seamless integration with the project system
  • Source Control Explorer
  • Work Items
  • Check-in History

HTML Editor in PHP files

  • Support for HTML, JavaScript and CSS in PHP files
  • Code colorization
  • Code collapsing
  • IntelliSense
  • Formatting, Smart Indentation, Real-time code validation
  • HTML schema validation
  • Support for add-ins like Web Essentials
  • Design View, Split View, Code View

Read more

Code Snippets (Ctrl+K,S and Ctrl+K,X)

  • Commonly used code fragments as snippets
  • Integrated in IntelliSense (Tab)
  • Automatically formatted snippets
  • Snippets with editable spans
  • Context-aware editable spans completion
  • Custom code snippets

Navigation Features

  • Class View organized by namespaces
  • Object Browser
  • Go to PHP manual page (F1)
  • Navigate To (Ctrl+,)
  • Navigation Bar with Classes and Functions within the script
  • Go To Definition (F12)

Error List

  • Realtime error detection
  • Underlines errors & warnings in code
  • Project-wide error list
  • Checks for Syntax errors
  • Checks for Semantic errors & warnings

PHPUnit Test Explorer

  • Listing all test methods within project
  • Debugging tests
  • Shows test result, duration, assertion or exception stack trace
  • Grouping tests by project, group, class or outcome
  • Running all tests or selected tests only
  • Seamless Test Explorer integration (Visual Studio 2012 and later)
  • PHPUnit included, no configuration needed
  • PHPUnit classes and methods IntelliSense
  • PHPUnit configuration support with editor read more
PHPUnit Test Explorer

Project System

  • Multiple projects withing solution
  • Run or Debug multiple projects at once
  • Configurable environment
  • Project referencing
  • Configurable project run options
  • standard MSBuild project system
  • Item templates, Project templates
  • NuGet packages support read more

Composer integration

  • Viewing and managing installed composer packages in Solution Explorer
  • Browsing and installing new composer packages in the GUI
  • Composer output pane in the IDE
  • Composer in MsBuild process

Read more


  • Publish PHP project to file system, FTP, FTPS, SFTP
  • Publish before run
  • Incremental publish
  • Quick publish of selected files and directories
  • Support for opening FTP Web Site and uploading files On Save