PhpStorm Cookbook

Discover over 80 recipes to learn how to build and test PHP applications efficiently using the PhpStorm IDE

PhpStorm Cookbook

Mukund Chaudhary, Ankur Kumar

Discover over 80 recipes to learn how to build and test PHP applications efficiently using the PhpStorm IDE
Mapt Subscription
FREE
$29.99/m after trial
eBook
$18.90
RRP $26.99
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$18.90
$44.99
$29.99p/m after trial
RRP $26.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781782173878
Paperback254 pages

Book Description

PhpStorm is a commercial, cross-platform IDE for PHP. It provides an intelligent editor for PHP, HTML, and JavaScript with on-the-fly code analysis and automated refactoring for PHP and JavaScript code.

In this book, you will learn about accessing project files, maximizing and reordering views, and editors. Going ahead, you will learn how to access elements, search code, compare files, and integrate frameworks. After gaining in-depth knowledge of testing and debugging, you will learn about PHP development, refactoring and building applications with ease of handling, and integrating frameworks. You will also test and debug them using PhpStorm and then learn how to use Phing and plugins. By the end of this book, you will have learned all about Phing and cooking plugins.

Table of Contents

Chapter 1: Cooking with PhpStorm
Introduction
Showing/hiding views
Customizing a view
Accessing any project file
Maximizing views and editors
Going back to the previous editor
Going back to the previous edit location
Linking views to editors
Creating a key binding
Creating a bookmark
Restoring deleted resources
Customizing with PhpStorm
Adding an include path
Excluding unwanted directories from the index
Using code completion
Chapter 2: PHP Development
Introduction
Creating a PHP project using Composer
Creating an empty project
Reusing an existing project
Creating a new PHP class
Creating a new PHP method
Adding the getter/setter methods
Creating delegate methods
Surrounding code with control structures
Finding the matching brace
Commenting out a section of code and PHPDoc
Creating a working set
Creating TODO tasks
Chapter 3: Refactoring and Building
Introduction
Renaming elements
Copying elements
Moving elements
Moving a method
Moving a variable
Deleting elements
Searching code in a project
Comparing files
Restoring elements using comparison
Setting the run configuration
Running your code
Chapter 4: Integrating Framework
Introduction
Cooking with Symfony
Creating a controller with Symfony
Creating a model with Symfony
Creating a view with Symfony
Creating a model with the Yii framework
Creating a controller with the Yii framework
Creating a view with the Yii framework
Creating a model with the Zend framework
Creating a controller with the Zend framework
Creating a view with the Zend framework
Chapter 5: Testing and Debugging
Introduction
Installing PHPUnit
Test case in PHPUnit
Testing an application with PHPUnit
Starting a debugging session
Setting a breakpoint
Configuring breakpoint conditions
Creating exception breakpoints
Stepping through your code
Running to a line of code selected
Watching expressions and variables
Changing code on the fly
Code coverage in PhpStorm
Chapter 6: Using PhpStorm in a Team
Introduction
Getting a VCS server
Creating a VCS repository
Connecting PhpStorm to a VCS repository
Storing a PhpStorm project in a VCS repository
Committing files to the VCS repository
Updating code from a VCS repository
Synchronizing your code with the VCS repository
Examining the VCS repository
Checking projects out of a VCS repository
Creating code patches
Creating VCS tags or branches
Creating a task for the team
Chapter 7: PhpStorm and Phing
Introduction
Connecting Phing and PhpStorm
Catching Phing build file syntax problems
Building a PhpStorm application using Phing
Using a different build file
Doing wonders with Phing
Using the Phing build view
Chapter 8: Cooking Library Plugins
Introduction
Creating a library plugin
Refining the plugin
Configuring the plugin with PhpStorm
Code hinting for the plugin
Chapter 9: Code Quality Analysis
Introduction
Mess detector and PhpStorm
Code sniffer and PhpStorm
Locating code duplicates
Code formatting and arrangement

What You Will Learn

  • Modify or customize the views and editors quickly
  • Learn about the basics of PHP development including class, methods, and getters/setters
  • Perform refactoring of elements such as renaming, copying, and moving
  • Integrate frameworks using PhpStorm to generate Models, Views, and Controllers
  • Use a CVS repository to commit files and check out projects using PhpStorm
  • Find out more about the use of PhpStorm in a team
  • Learn about safe deployment using Phing and PhpStorm
  • Create plugins getter/setter methods, exception breakpoints, and CVS repositories

Authors

Table of Contents

Chapter 1: Cooking with PhpStorm
Introduction
Showing/hiding views
Customizing a view
Accessing any project file
Maximizing views and editors
Going back to the previous editor
Going back to the previous edit location
Linking views to editors
Creating a key binding
Creating a bookmark
Restoring deleted resources
Customizing with PhpStorm
Adding an include path
Excluding unwanted directories from the index
Using code completion
Chapter 2: PHP Development
Introduction
Creating a PHP project using Composer
Creating an empty project
Reusing an existing project
Creating a new PHP class
Creating a new PHP method
Adding the getter/setter methods
Creating delegate methods
Surrounding code with control structures
Finding the matching brace
Commenting out a section of code and PHPDoc
Creating a working set
Creating TODO tasks
Chapter 3: Refactoring and Building
Introduction
Renaming elements
Copying elements
Moving elements
Moving a method
Moving a variable
Deleting elements
Searching code in a project
Comparing files
Restoring elements using comparison
Setting the run configuration
Running your code
Chapter 4: Integrating Framework
Introduction
Cooking with Symfony
Creating a controller with Symfony
Creating a model with Symfony
Creating a view with Symfony
Creating a model with the Yii framework
Creating a controller with the Yii framework
Creating a view with the Yii framework
Creating a model with the Zend framework
Creating a controller with the Zend framework
Creating a view with the Zend framework
Chapter 5: Testing and Debugging
Introduction
Installing PHPUnit
Test case in PHPUnit
Testing an application with PHPUnit
Starting a debugging session
Setting a breakpoint
Configuring breakpoint conditions
Creating exception breakpoints
Stepping through your code
Running to a line of code selected
Watching expressions and variables
Changing code on the fly
Code coverage in PhpStorm
Chapter 6: Using PhpStorm in a Team
Introduction
Getting a VCS server
Creating a VCS repository
Connecting PhpStorm to a VCS repository
Storing a PhpStorm project in a VCS repository
Committing files to the VCS repository
Updating code from a VCS repository
Synchronizing your code with the VCS repository
Examining the VCS repository
Checking projects out of a VCS repository
Creating code patches
Creating VCS tags or branches
Creating a task for the team
Chapter 7: PhpStorm and Phing
Introduction
Connecting Phing and PhpStorm
Catching Phing build file syntax problems
Building a PhpStorm application using Phing
Using a different build file
Doing wonders with Phing
Using the Phing build view
Chapter 8: Cooking Library Plugins
Introduction
Creating a library plugin
Refining the plugin
Configuring the plugin with PhpStorm
Code hinting for the plugin
Chapter 9: Code Quality Analysis
Introduction
Mess detector and PhpStorm
Code sniffer and PhpStorm
Locating code duplicates
Code formatting and arrangement

Book Details

ISBN 139781782173878
Paperback254 pages
Read More

Read More Reviews

Recommended for You