This is the code repository for Clean Code in PHP, published by Packt.
Expert tips and practices to write beautiful, human-friendly, and maintainable PHP
PHP is a beginner-friendly language, but also one that is rife with complaints of bad code, yet no clean code books are specific to PHP. Enter Clean Code in PHP. This book is a one-stop guide to learning the theory and best practices of clean code specific to real-world PHP app development environments.
This book covers the following exciting features:
- Build a solid foundation in clean coding to craft human-readable code
- Understand metrics to determine the quality of your code
- Get to grips with the basics of automated tests
- Implement continuous integration for your PHP applications
- Get an overview of software design patterns to help you write reusable code
- Gain an understanding of coding guidelines and practices for working in teams
If you feel this book is for you, get your copy today!
All of the code is organized into folders. For example, Chapter07.
The code will look like the following:
<?php
class Example
{
public function doSomething() bool
{
return true;
}
}
Following is what you need for this book: This book is for early-career PHP developers who wish to avoid writing messy code by learning how to write understandable and maintainable code that sets them apart from rest. The book assumes familiarity with PHP coding and principles, but no knowledge of advanced principles will be necessary.
With the following software and hardware list you can run all code files present in the book (Chapter 1-13).
Chapter | Software/Hardware required | OS required |
---|---|---|
1-13 | PHP 8.0 and above | Windows Mac OS X and Linux |
We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.
Carsten Windler is a Lead PHP engineer at Plan A.
Alexandre Daubois is a Symfony Developer at SensioLabs, the company that created Symfony.