11.5. Summary

In this chapter you built a shell script to deploy basic directories and files to help make starting a new project easier. The skeleton files can be modified as your needs change over time. But more importantly, you also wrote reusable code, which eases development of other shell scripts in the future.

The CommandLine class encapsulates static methods to accept user input in the form of arguments, a configuration file or direct input in response to prompts. These prompts may even offer default values to the user making the script more user-friendly.

In the next chapter I'll discuss some common security concerns you should keep in mind when writing code and what you can do to protect your applications—definitely an important topic!

Get PHP and MySQL®: Create-Modify-Reuse now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.