For this chapter, you only need a bare minimum of tools to already be set up. The chances are high that you already have them installed if you have ever worked with PHP code before:
- A local installation of a recent PHP version (PHP 8.0 or higher is recommended).
- A code editor – often called an Integrated Development Environment (IDE).
- Composer, either installed as binary or globally. Please check https://getcomposer.org/ if you are not familiar with Composer yet.
Please note that for the rest of this book, all examples are based on a Linux environment such as Ubuntu or macOS. If you are using Windows for development, you will most likely need to make some adjustments, as described here: https://www.php.net/manual/en/install.windows.commandline.php.
The code files for this chapter can be found here: https://github.com/PacktPublishing/Clean-Code-in-PHP