Book Image

PhpStorm Cookbook

By : Mukund Chaudhary
Book Image

PhpStorm Cookbook

By: Mukund Chaudhary

Overview of this book

Table of Contents (16 chapters)
PhpStorm Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Creating a library plugin


Have you ever thought about what makes up a library? A library is a collection of useful methods just as a book library is a collection of useful books. So is the case with an application library contains numerous useful methods and elements. The emphasis is on the word useful to stress the importance of not having redundant methods and elements in the library. A redundant piece of code requires documentation. When the company spends resources (essentially money), it will never want to have entities that have less usage. What is the reason for this? The principles of economics—the primary objective of any company is to maximize profit. No matter what!

Getting ready

However, not to worry, you do not need to be a Nobel Prize winner in Economics to stop putting redundant elements in the library. Just stay calm and stay wise. Cooking a plugin involves a number of engineering decisions to be made. Some of the decisions can be:

  • Decide what is that which makes you write...