PhpStorm

From Wikipedia, the free encyclopedia
Jump to: navigation, search
JetBrains PhpStorm
JetBrainsPhpStormLogo.png
JetBrainsPhpStormScreenshot.png
Developer(s) JetBrains s.r.o.
Initial release 2009; 5 years ago (2009)
Stable release 7.1.3 / February 25, 2014; 6 months ago (2014-02-25)
Preview release 8.0 EAP / July 15, 2014; 2 months ago (2014-07-15)
Development status Active
Written in Java
Operating system Microsoft Windows, Mac OS X, Linux
Available in English
Type PHP IDE
License Proprietary
Website www.jetbrains.com/phpstorm/

JetBrains PhpStorm is a commercial, cross-platform IDE for PHP[1] built on JetBrains' IntelliJ IDEA platform.

PhpStorm provides an editor for PHP, HTML and JavaScript with on-the-fly code analysis, error prevention and automated refactorings for PHP and JavaScript code. PhpStorm's code completion supports PHP 5.3, 5.4 & 5.5 (modern and legacy projects), including generators, coroutines, the finally keyword, list in foreach, namespaces, closures, traits and short array syntax. It includes a full-fledged SQL editor with editable query results.[2][3]

PhpStorm is built on IntelliJ IDEA, which is written in Java. Users can extend the IDE by installing plugins created for the IntelliJ Platform or write their own plugins.

All features available in WebStorm are included in PhpStorm,[4] which adds support for PHP and databases.[5] WebStorm ships with pre-installed JavaScript plugins (such as for Node.js), which are available for PhpStorm as well at no cost.[6]

Key features[edit]

Zero-configuration web application debugging with Xdebug in PhpStorm. Darcula color scheme
Viewing Data Source Structure and other SQL and Databases related features in PhpStorm

PHP editor[edit]

  • PhpStorm provides a rich code editor[7] for PHP with syntax highlighting, extended code formatting configuration, on-the-fly error checking, and code completion.
  • PHP 5.3, 5.4 & 5.5 support, including generators, coroutines, the finally keyword, list in foreach, using empty() on the result of function calls and other expressions, traits, closures, class member access on instantiation, short array syntax, array dereferencing on function call, binary literals, expressions in static calls, etc. It can be used for both modern and legacy PHP-based projects.
  • Code autocompletion finalizes classes, methods, variable names, and PHP keywords, plus commonly used names for fields and variables depending on their type.
  • Coding style Support (PSR1/PSR2, Drupal, Symfony2, Zend).
  • PHPDoc support. The IDE provides code completion suggestions based on @property, @method and @var annotations.
  • Duplicated Code Detector.
  • PHP Code Sniffer (phpcs) that checks for code smells on the fly.
  • Refactorings (Rename, Introduce Variable, Introduce Constant, Introduce Field, Inline Variable, Move Static Member, Extract Interface).
  • Smarty and Twig templates editing (Syntax errors highlighting; Smarty functions and attributes completion; automatic insertion of paired braces, quotes and closing tags; and more).
  • MVC view for Symfony2 and Yii frameworks.
  • PHAR support.

Development environment[edit]

Debugging and testing[edit]

  • Easy-to-configure visual debugger (Xdebug, Zend Debugger) for inspecting context-relevant local variables and user-defined watches, including arrays and complex objects, and editing values on the fly.
  • Scripts can be profiled right from PhpStorm with either XDebug or Zend Debugger. An aggregated report is available, and the user can jump from the execution statistics directly to the function in PHP code.
  • PHPUnit tests can be developed in PhpStorm and run instantly from a directory, file or class using the context menu options) with code coverage.

JavaScript, CSS and HTML features[edit]

  • Code completion for JavaScript, HTML and CSS (for tags, keywords, labels, variables, parameters and functions).
  • HTML5 support.
  • Live Edit: changes in the code can be immediately viewed in the browser without reloading the page.
  • CSS/SASS/SCSS/LESS support (code completion, error highlighting, validation, etc.).
  • Zen Coding.
  • Code navigation and usages search (Go to declaration/symbol, Find Usages).
  • ECMAScript Harmony Support.
  • JavaScript refactoring (Rename, Extract Variable/Function, Inline Variable/Function, Move/Copy, Safe delete, Extract embedded script into file).
  • JavaScript debugger and unit testing.

IntelliJ IDEA PHP support[edit]

The Ultimate Edition of JetBrains polyglot IDE IntelliJ IDEA supports the same functionality as PhpStorm by plugins.

Licensing and updates policy[edit]

PhpStorm license is permanent and includes one year of free product upgrades since the purchase date, including major version upgrades.

The following types of licenses are available for PhpStorm:

  • Personal License (paid, for individual developers)
  • Commercial License (paid, for companies and organisations)
  • Academic License (paid, for students and teachers)
  • Classroom License (free, for trainers and educational institutions)
  • Open Source Project License (free, for open source projects)

See also[edit]

References[edit]

  1. ^ Erez Zukerman (2012-01-12). "Slick PhpStorm Makes Editing JavaScript and PHP Fun". PCWorld. Retrieved 2013-02-19. 
  2. ^ Darryl K. Taft (2012-09-13). "JetBrains PhpStorm 5.0 Provides New PHP Framework Support". Eweek. Retrieved 2013-02-19. 
  3. ^ Adrian Bridgwater (2012-09-18). "JetBrains PhpStorm 5.0 Aligns To Symfony2 and Yii". Dr.Dobbs. Retrieved 2013-02-19. 
  4. ^ "PhpStorm vs WebStorm". 
  5. ^ "PhpStorm". Retrieved 2013-04-21. "PhpStorm includes all the functionality of WebStorm (HTML/CSS Editor, JavaScript Editor) and adds full-fledged support for PHP and Databases/SQL." 
  6. ^ "Which IDE do I need?". PhpStorm FAQ. Retrieved 2013-04-21. 
  7. ^ Bruno Skvorc (2012-08-13). "PhpStorm – Review and Give Away". PHP Master. Retrieved 2013-02-19. 

External links[edit]