PhpStorm Cookbook
eBook - ePub

PhpStorm Cookbook

  1. 254 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

PhpStorm Cookbook

About this book

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.

Trusted by 375,005 students

Access to over 1 million titles for a fair monthly price.

Study more efficiently using our study tools.

PhpStorm Cookbook


Table of Contents

PhpStorm Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Cooking with PhpStorm
Introduction
Showing/hiding views
How to do it...
How it works...
Customizing a view
How to do it...
How it works...
Accessing any project file
Getting ready
How to do it...
How it works…
Maximizing views and editors
How to do it...
Going back to the previous editor
Getting ready
How to do it...
There's more…
Going back to the previous edit location
Getting ready
How to do it...
Linking views to editors
How to do it...
Creating a key binding
How to do it...
How it works...
Creating a bookmark
How to do it...
Restoring deleted resources
Getting ready
How to do it...
How it works...
Customizing with PhpStorm
Getting ready
How to do it...
See also
Adding an include path
Getting ready
How to do it...
Excluding unwanted directories from the index
Getting ready
How to do it...
How it works…
Using code completion
Getting ready
How to do it...
How it works...
2. PHP Development
Introduction
Creating a PHP project using Composer
Getting ready
How to do it...
How it works...
Creating an empty project
Getting ready
How to do it...
How it works...
Reusing an existing project
Getting ready
How to do it...
Creating a new PHP class
Getting ready
How to do it...
How it works...
Creating a new PHP method
Getting ready
How to do it...
How it works...
Adding the getter/setter methods
Getting ready
How to do it...
How it works...
Creating delegate methods
Getting ready
How to do it...
How it works...
Surrounding code with control structures
Getting ready
How to do it...
How it works...
Finding the matching brace
Getting ready
How to do it...
How it works...
There's more...
Wrapping string
Commenting out a section of code and PHPDoc
Getting ready
How to do it...
How it works...
Creating a working set
Getting ready
How to do it...
Creating TODO tasks
Getting ready
How to do it...
How it works...
3. Refactoring and Building
Introduction
Renaming elements
How to do it...
Renaming a directory
Renaming a class
How it works...
There's more...
Renaming a method
Renaming member variables
See also...
Copying elements
How to do it...
How it works...
There's more...
Copying a class
Moving elements
How to do it...
Moving a directory
Moving a class
Moving a method
How to do it...
Moving a variable
How to do it...
Deleting elements
Getting ready
How to do it...
How it works…
Searching code in a project
Getting ready
How to do it...
How it works…
There's more...
Comparing files
Getting ready
How to do it...
How it works...
Restoring elements using comparison
Getting ready
How to do it...
How it works...
See also
Setting the run configuration
How to do it...
How it works...
There's more...
Running your code
Getting ready
How to do it...
How it works…
4. Integrating Framework
Introduction
Cooking with Symfony
Getting ready
How to do it...
How it works...
There's more...
Directory structure of Symfony
Creating a controller with Symfony
How to do it...
How it works...
Creating a model with Symfony
Getting ready
How to do it...
How it works...
Creating a view with Symfony
Getting ready
How to do it...
How it works...
Creating a model with the Yii framework
How to do it...
How it works...
Creating a controller with the Yii framework
How to do it...
How it works...
Creating a view with the Yii framework
How to do it...
How it works...
Creating a model with the Zend framework
How to do it...
How it works...
Creating a controller with the Zend framework
How it works...
Creating a view with the Zend framework
How to do it...
How it works...
There's more...
5. Testing and Debugging
Introduction
Installing PHPUnit
Getting ready
How to do it...
How it works...
Test case in PHPUnit
How to do it...
How it works...
Testing an application with PHPUnit
How to do it...
How it works...
Starting a debugging session
Getting ready
How to do it...
How it works...
Setting a breakpoint
How to do it...
How it works...
Configuring breakpoint conditions
How to do it...
How it works...
Creating exception breakpoints
How to do it...
How it works...
Stepping through your code
Getting ready
How to do it...
How it works...
Running to a line of code selected
How to do it...
How it works...
Watching expressions and variables
How to do it...
How it works...
Changing code on the fly
How to do it...
How it works...
Code coverage in PhpStorm
Getting ready
How to do it...
How it works...
There's more…
Purpose of code coverage
6. Using PhpStorm in a Team
Introduction
Getting a VCS server
Getting ready
How to do it...
How it works...
There's more...
Creating a VCS repository
Getting ready
How to do it...
How it works...
Connecting PhpStorm to a VCS repository
Getting ready
How to do it...
Storing a PhpStorm project in a VCS repository
Getting ready
How to do it...
How it works...
There's more...
Committing files to the VCS repository
Getting ready
How to do it...
How it works...
There's more...
Updating code from a VCS repository
Getting ready
How to do it...
How it works...
There's more...
Synchronizing your code with the VCS repository
Getting ready
How to do it...
How it works...
Examining the V...

Table of contents

  1. PhpStorm Cookbook

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access PhpStorm Cookbook by Mukund Chaudhary, Ankur Kumar in PDF and/or ePUB format, as well as other popular books in Computer Science & Application Development. We have over one million books available in our catalogue for you to explore.