Jump to content

PhpStorm

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Mikhail Vink (talk | contribs) at 19:29, 19 February 2013 (Images added). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

JetBrains PhpStorm
Developer(s)JetBrains s.r.o.
Initial release2009; 15 years ago (2009)
Stable release
5.0.4 / October 30, 2012; 11 years ago (2012-10-30)
Preview release
6.0 EAP / November 19, 2012; 11 years ago (2012-11-19)
Written inJava
Operating systemMicrosoft Windows, Mac OS X, Linux
Available inEnglish
TypePHP IDE
LicenseProprietary
Websitewww.jetbrains.com/phpstorm/

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

PhpStorm provides an intelligent[2] 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 (modern and legacy projects), including namespaces, closures, traits and short array syntax. It includes a full-fledged SQL editor with editable query results.[3][4]

PhpStorm is built on the 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.

Key Features

File:Code-completion.png
Code Completion Example in PhpStorm
File:JetBrainsPhpStormDebugging.png
Zero-configuration web application debugging with Xdebug in PhpStorm. Darcula color scheme
File:JetBrainsPhpStormVCSExample.png
Version Control Systems Integration
File:JetBrainsPhpStormDataSource.png
Viewing Data Source Structure in PhpStorm

PHP editor

  • PhpStorm provides a rich and intelligent code editor for PHP with syntax highlighting, extended code formatting configuration, on-the-fly error checking, and smart code completion.[5]
  • PHP 5.3 & 5.4 support, including 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).
  • PHPDoc support. The IDE provides appropriate code completion suggestions based on @property, @method and @var annotations.
  • Duplicated Code Detector.
  • PHP Code Sniffer (phpcs) that checks code on the fly.
  • Refactorings (Rename, Introduce Variable, Introduce Constant, Introduce Field, Inline Variable).
  • Smarty 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 & Yii frameworks.
  • PHAR-packaged code recognition.

Smart Development Environment

  • SQL and Databases support (Live database schema refactoring, Generation of schema migration scripts, Export query result to file or clipboard, Editing of stored procedures, etc.).
  • Remote deployment over FTP, SFTP, FTPS, etc. with automatic synchronization.
  • Version control systems integration (Git, Subversion, Mercurial, Perforce, CVS, TFS) allowing you to perform actions (commit, merge, diff, etc) right from the IDE.
  • Local History (tracks any changes in the code locally).
  • PHP UML (UML class diagrams for PHP code with refactorings invoked right from the diagram).
  • Phing support (provides autocompletion, checks standard tags, properties, target names, path attribute values in build files).
  • Bug/Issue tracker integration.

Debugging and Testing

  • 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.
  • Profiler integration: Scripts can be profiled right from the PhpStorm with either xDebug and Zend Debugger. An aggregated report is available, and the user can jump from the execution statistics directly to the function in PHP code.
  • PHPUnit integration (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 & HTML/XHTML/CSS features

(All features available in WebStorm are included in PhpStorm)

  • 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

JetBrains also offers a polyglot IDE, IntelliJ IDEA, which supports the same functionality as PhpStorm by plugins.

Licensing and Updates Policy

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

External links

References

  1. ^ Erez Zukerman (2012-01-12). "Slick PhpStorm Makes Editing JavaScript and PHP Fun". PCWorld. Retrieved 2013-02-19.
  2. ^ Erez Zukerman (2012-01-19). "PhpStorm Review". PC Advisor. Retrieved 2013-02-19.
  3. ^ Darryl K. Taft (2012-09-13). "JetBrains PhpStorm 5.0 Provides New PHP Framework Support". Eweek. Retrieved 2013-02-19.
  4. ^ Adrian Bridgwater (2012-09-18). "JetBrains PhpStorm 5.0 Aligns To Symfony2 and Yii". Dr.Dobbs. Retrieved 2013-02-19.
  5. ^ Bruno Skvorc (2012-08-13). "PhpStorm – Review and Give Away". PHP Master. Retrieved 2013-02-19.