- PHP Code Editor
- Language Features Support
- PHP Refactoring
- Code Completion
- Code Formatting
- Code (Re)arranger
- PHPDoc Support
- Parameter Hints
- Code Quality Analysis
- PHP Code Sniffer & Mess Detector
- Twig, Blade & Smarty Templates
- Phar Packages
- Smart Duplicated Code Detector
- Callback References
- Namespaces
- Efficient Project Analysis and Navigation
- Dataflow Analysis
- Easy Code Navigation & Search
- Features
- Smart PHP Code Editor
- Code Quality Analysis
- Easy Code Navigation & Search
- Debugging, Testing and Profiling
- Debugging
- Testing
- Profiling
- HTML/CSS/JavaScript Editor
- HTML and CSS Editor
- JavaScript Editor
- New Technologies
- Development Environment
- VCS
- Databases & SQL
- Other Features
PHP Code Editor
PhpStorm features a rich and intelligent code editor for PHP that actually «gets» your code and deeply understands its structure, supporting PHP 5.3, 5.4, 5.5, 5.6, 7.0, 7.1 for modern and legacy projects. The IDE provides smart code completion, syntax highlighting, extended code formatting configuration, on-the-fly error checking, code folding, supports language mixtures and more.
Language Features Support
The latest PHP 7 is supported including support of anonymous classes, return type declarations, null coalesce operator, group use declarations, context sensitive lexer, and more. PHP 7.1 compatibility inspections will help update your project to the latest PHP version. PHP 5.3, 5.4, 5.5, 5.6, and 7.0 are supported as well.
PHP Refactoring
The Rename and Move refactorings work for files, functions, constants, classes, properties, methods, parameters, and local and global variables. Make global project changes easily and safely. Local changes are made instantly in-place.
The following refactorings are also available: Extract Variable / Constant / Field / Method / Interface, Inline variable, Push members Up / Pull members Down, Change signature, Move class to another namespace, Move static member, Make Static refactoring.
Code Completion
Automatic code completion (invoked on typing) finalizes classes, methods, variable names, and PHP keywords, plus commonly used names for fields and variables depending on their type. Code completion also supports array indexes in PHP code.
Code Formatting
Code formatter with code style configuration and other features help you write neat code that’s easy to maintain. PhpStorm contains built-in code formatting that is compliant with PSR1/PSR2, Symfony2, Zend, Drupal & other standards.
Code (Re)arranger
Code (re)arranger is a powerful tool to control the structure of your existing and generated code. For example, you can specify methods to be ordered after fields or keep dependent methods together.
PHPDoc Support
PhpStorm editor respects PHPDoc in your code and provides appropriate code completion suggestions based on annotations. When you edit PHPDoc for your code, variable names and types are auto-completed from the corresponding code blocks. PHP code refactorings also consider PHPDocs to keep them up to date.
Parameter Hints
With Parameter hints in PhpStorm, code becomes more readable and easier to understand. Parameter hints are showed for literals and nulls used as method arguments, helping you better understand the semantics of specific methods.
Code Quality Analysis
Hundreds of code inspections verify your code as you type and inspect the whole project for possible errors or code smells.
Quick-fixes for most inspections make it easy to fix or improve the code instantly. Alt+Enter shows appropriate options for each inspection.
PHP Code Sniffer & Mess Detector
Check your code on the fly with PHP Code Sniffer (phpcs) and PHP Mess Detector (phpmd), just by opening a PHP file. The check is triggered every time you change something in the file, so it’s extremely easy to fix problems reported by PHP Code Sniffer & PHP Mess Detector.
Twig, Blade & Smarty Templates
Use the Twig, Blade or Smarty template engine to take advantage of productivity features when working with template files: configurable syntax highlighting for different constructs; syntax errors highlighting; functions and attributes completion; automatic insertion of paired braces, quotes and closing tags; and more.
Phar Packages
PhpStorm transparently recognizes Phar-packaged code.
Smart Duplicated Code Detector
Added for all major supported languages including PHP, HTML and CSS. Use Code | Locate Duplicates to start your quest against copy/paste coding. You’ll be presented with a list of candidates for refactoring — and with the help of refactorings it’s easy to keep your code DRY.
Callback References
Code editor understands callback references within string literals, and provides advanced assistance such as usages search and rename refactoring.
Namespaces
PhpStorm provides smart handling of namespaces, with Auto-Import, Optimize Imports, folding for imports, and more.
Efficient Project Analysis and Navigation
Its thorough source code analysis allows PhpStorm to provide sophisticated code completion even for unannotated code, for example when the function return type is deducted from its body and return statements or class property types (and declarations) are extracted from the constructor code.
File structure view and class, method and call hierarchy views allow for faster code review and navigation.
Dataflow Analysis
Dataflow Analysis helps you understand you project code better, interpret complicated parts of code, find bottlenecks in the source code, and more.
Easy Code Navigation & Search
Go to class / file / symbol — crucial operations for fast project navigation. Use wild-cards and abbreviations to locate needed items faster.
Go to declaration — navigates to where the function, variable or label in question is declared with a simple hotkey or Ctrl+Click / ⌘Click.
Find Usages — helps you locate usages of any symbol (e.g., class, method, field, etc.) in your code, in the current file or in the whole project.
Features
PhpStorm is a PHP IDE that actually ‘gets’ your code. It supports PHP 5.3-8.1, provides on-the-fly error prevention, best autocompletion & code refactoring, zero configuration debugging, and an extended HTML, CSS, and JavaScript editor.
Smart PHP Code Editor
The IDE provides smart code completion, syntax highlighting, extended code formatting configuration, on-the-fly error checking, code folding, supports language mixtures and more. Automated refactorings that treat your code with care, helping to make global project settings easily and safely.
Code Quality Analysis
Hundreds of code inspections verify your code as you type and inspect the whole project for possible errors or code smells. Quick-fixes for most inspections make it easy to fix or improve the code instantly. Alt+Enter shows appropriate options for each inspection.
Easy Code Navigation & Search
PhpStorm helps you get around your code more efficiently and save time when working with large projects. Jump to a method, function or variable definition in just one click, or search for its usages.
Debugging, Testing and Profiling
PhpStorm provides powerful built-in tools for debugging, testing and profiling your applications.
Debugging
Zero-configuration debugging makes it really easy to debug your PHP applications. Besides, PhpStorm provides numerous options for debugging your PHP code with Visual Debugger, so you can: inspect variables and user-defined watches, set breakpoints and evaluate an expression in runtime, debug remote applications, debug a page in multiple sessions simultaneously, and more.
Testing
You can develop PHPUnit tests right in PhpStorm and run them instantly from a directory, file or class, by using the context menu options. Code Coverage from PHPUnit shows how much of your code is covered with tests.
Profiling
You can profile your applications with Xdebug or Zend Debugger and check aggregated reports in PhpStorm.
HTML/CSS/JavaScript Editor
PhpStorm includes all the features of WebStorm related to HTML, CSS and JavaScript.
HTML and CSS Editor
All the cutting edge web development technologies are supported including HTML 5, CSS, SASS,SCSS, LESS, CoffeeScript, ECMAScript Harmony, Jade templates, etc. Live Edit gives you an opportunity to see all the changes instantly in the browser without refreshing the page.
JavaScript Editor
The smartest JavaScript Editor is bundled with the IDE, offering code completion, validation and quick fixes, refactorings, JSDoc type annotations support, JavaScript debugging and unit testing, support for JavaScript Frameworks, and more.
New Technologies
PhpStorm provides a streamlined experience for the full development cycle with new languages such as TypeScript, CoffeeScript, and Dart.
Development Environment
PhpStorm is built on top of the open-source IntelliJ Platform, which we at JetBrains have been developing and perfecting for over 15 years. Enjoy the fine-tuned, highly customizable experience it provides to fit your development workflow.
VCS
PhpStorm provides a unified UI for working with many popular Version Control Systems, ensuring a consistent user experience across git, GitHub, SVN, Mercurial, and Perforce.
Databases & SQL
PhpStorm provides tools and code assistance features for working with databases and SQL in your projects. Connect to databases, edit schemas and table data, run queries, and even analyze schemas with UML diagrams. SQL code can be injected to other languages or edited in SQL Editor, with syntax highlighting, smart code completion, on-the-fly code analysis, code formatting and navigation available.
Other Features
Perform many routine tasks right from the IDE with support for Vagrant support, Docker, Composer, and more.