View
210
Download
8
Category
Preview:
Citation preview
Presenter: Tanmaya Biswal, Mindfire SolutionsDate: 03/02/2015
Agenda
Presenter: Tanmaya Biswal, Mindfire Solutions
Why PhpStorm ?What’s new in PhpStorm 8 ?Frameworks Support Code FormattingCode Quality AnalysisEasy Code Navigation & Search Easy XDebuggingJavaScript DebuggingHTML & CSS Editor supportVersion Control Support Working with Remote PHP Interpreters Tips and TricksLive templateHow to Install PhpStorm ?
Why PhpStorm ?
Smart PHP Code Editor Code Quality Analysis Development Environment HTML/CSS/JavaScript Editor Debugging and Testing Cross-platform Experience
Presenter: Tanmaya Biswal, Mindfire Solutions
Popularity
Presenter: Tanmaya Biswal, Mindfire Solutions
What’s new in PhpStorm 8 ?
Laravel’s Blade templates BDD for PHP using Behat Full WordPress support Remote PHP interpreters Advanced AngularJS support IDE Improvements
Multiple Carets and Selections Work with individual files without creating a project
Presenter: Tanmaya Biswal, Mindfire Solutions
Frameworks Support The existing support of template engines and
command-line tools is boosted with a more high-level feature: an MVC view for Symfony2 & Yii frameworks.
Plugins are also available bringing various framework-specific features, such as code completion, navigation, type inference and other IDE best practices for various PHP frameworks (Symfony, Drupal, Magento, Zend etc.).
Presenter: Tanmaya Biswal, Mindfire Solutions
Code Formatting Code formatter with code style configuration and
other features help you write neat code that's easy to support.(Project Settings | Editor | Code Style | PHP)
PhpStorm contains built-in PSR1/PSR2, Symfony2, Zend, Drupal & other standards compliant code formatting.
Presenter: Tanmaya Biswal, Mindfire Solutions
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.
Ex: PHP Code Sniffer & Mess Detector Smart Duplicated Code Detector
Presenter: Tanmaya Biswal, Mindfire Solutions
Easy Code Navigation & Search
Navigate to Class: Ctrl+N (CMD+O on Mac OS X) Navigate to File: Ctrl+Shift+N (Shift+Cmd+O on
Mac OS X) Navigate to Symbol: Ctrl+Shift+Alt+N
(Alt+CMD+O on Mac OS X) Search Everywhere: (Double Shift) Navigate to Declaration: Ctrl+Click (CMD+Click
on Mac OS X) Next / Previous Method: Alt+Down / Up Recent Files: Ctrl+E (or CMD+E on Mac OS X) Navigate to Last Edit Location:
Ctrl+Shift+Backspace (Shift+CMD+Delete on Mac OS X)
Go to Implementation: Ctrl+Alt+B (Alt+CMD+B on Mac OS X)
Highlight Usages in File: Ctrl+Shift+F7 (Shift+CMD+F7 on Mac OS X)
Find Usages: (Shift+U)
Presenter: Tanmaya Biswal, Mindfire Solutions
Easy XDebugging Download and install the Xdebug Enabling XDebug integration with the PHP engine
[xdebug] zend_extension="/usr/lib/php5/20121212/xdebug.
so" xdebug.remote_enable=1 xdebug.remote_autostart=1 xdebug.default_enable=1 xdebug.remote_handler=dbgp xdebug.remote_mode=req xdebug.remote_host=localhost xdebug.remote_port=9000 xdebug.idekey="PHPSTORM" Presenter: Tanmaya Biswal, Mindfire
Solutions
JavaScript Debugging Install the JetBrains Chrome extension Set a Breakpoints Start a Debugging Session Debugging! Stepping through Code
Presenter: Tanmaya Biswal, Mindfire Solutions
HTML editor support
1. Editing HTML using PhpStorm2. Open in Browser3. Working with Live Edit HTML is quite verbose. To write HTML code
faster and more efficient, PhpStorm lets us use Emmet, which provides a shorthand for lots of things.
For example, we can type p>lorem and hit TAB to expand into a paragraph with Lorem Ipsum text.
A more advanced example would be div#container>div.span4*3>img.thumbnail+p>lorem which expands into a container div with a grid system in which each cell contains an image and a paragraph.
Presenter: Tanmaya Biswal, Mindfire Solutions
CSS editor supportJust like when editing PHP code, PhpStorm comes with a rich editor
for CSS. It comes with code completion, formatting, intentions, navigation and so on.
Presenter: Tanmaya Biswal, Mindfire Solutions
CSS editor support(cont..)PhpStorm comes with several intentions for CSS as well. There are a lot of
them, for example to change colors, expanding CSS, extracting images, replacing quotes, or to optimize properties:
Presenter: Tanmaya Biswal, Mindfire Solutions
CSS editor support(cont..)Using the Show Applied Styles for Tag context menu on any HTML
tag, we can see which styles are effectively applied to a DOM element and where the various CSS properties originate from.
Presenter: Tanmaya Biswal, Mindfire Solutions
Version Control Support It supports:SVN, CVS, GIT, Mercurial
From the VCS menu, we can: Commit and update a file/directory or an entire project. Work with changelists. Diff and rollback (revert) changes. View revision history for file/directory. Configure of common version control system settings. Open the Advanced Version Control tool window, with multiple
dedicated tabs for viewing History, Status, Update Info and so on.
Presenter: Tanmaya Biswal, Mindfire Solutions
Working with Remote PHP Interpreters
Presenter: Tanmaya Biswal, Mindfire Solutions
Tips and Tricks PhpStorm allows creating a tempopary text file or a piece of code,
and then just throw it away, when it's not needed any more.(Alt+Ctrl+Shift+Insert)
Find code occurrences to change.(Alt+Ctrl+Shift+J) Delete one line.(Ctrl+Y) Duplicate one line. (Ctrl+D) The Database tool window provides access to basic info about the
database objects. (Ctrl+Q) Code completion for sql query. You can quickly view the image referenced at caret by using the
Quick Definition (Ctrl+Shift+I). The underlying image will be opened in a popup instead of a separate editor tab.
Format your Code(Alt+Ctrl+Shift+L) Local history of a file(Ctrl+Shift+J) Rename your css selectors from html file.(Shift+F6) Bookmark.(F11)
Presenter: Tanmaya Biswal, Mindfire Solutions
Live Templates (Snippets) we will see what Live Templates (Snippets) are and how they can be
used to insert frequently-used snippets into our source code quickly.
Presenter: Tanmaya Biswal, Mindfire Solutions
How to Install PhpStorm ?
Follow the below links: https://confluence.jetbrains.com/display/PhpStorm/PhpStorm+Early
+Access+Program https://www.jetbrains.com/phpstorm/help/system-requirements-
and-installation.html https://www.youtube.com/watch?v=-wamR3WJt8I
References https://confluence.jetbrains.com/display/PhpStorm/Tutorials http://blog.jetbrains.com/ruby/2014/03/whats-mining-multiple-
cursors-and-selection/ https://confluence.jetbrains.com/display/PhpStorm/CSS+Editor+in+
PhpStorm https://www.jetbrains.com/phpstorm/documentation/phpstorm-
video-tutorials.jsp https://confluence.jetbrains.com/display/PhpStorm/Version+Control
+Systems+Support+in+PhpStorm
Presenter: Tanmaya Biswal, Mindfire Solutions
Any Questions ??
Presenter: Tanmaya Biswal, Mindfire Solutions
Thank You !!
Presenter: Tanmaya Biswal, Mindfire Solutions
Recommended