Free Sample
+ Collection

PhpStorm Cookbook

Mukund Chaudhary, Ankur Kumar

Discover over 80 recipes to learn how to build and test PHP applications efficiently using the PhpStorm IDE
RRP $26.99
RRP $44.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781782173878
Paperback254 pages

About This Book

  • Learn to plan, construct, test, and run your applications with ease using PHPStorm
  • Improve the speed and efficiency of web application development using the PHPStorm IDE
  • Collaborate tasks across time and space using CVS repository and learn expert level coding standards inspection for PHP in PHPStorm

Who This Book Is For

If you are a competent PHP developer who knows the basics of PHPStorm and intends to gain better knowledge of PHPStorm by learning and implementing pro-level practices, techniques, and solutions, then this book is for you. It is assumed that you already have a working installation of the software setup.

Table of Contents

Chapter 1: Cooking with PhpStorm
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
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
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
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
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
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
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
Creating a library plugin
Refining the plugin
Configuring the plugin with PhpStorm
Code hinting for the plugin
Chapter 9: Code Quality Analysis
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

In Detail

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.


Read More

Recommended for You

Instant PhpStorm Starter
$ 14.99