Book Image

Clean Code in PHP

By : Carsten Windler, Alexandre Daubois
5 (1)
Book Image

Clean Code in PHP

5 (1)
By: Carsten Windler, Alexandre Daubois

Overview of this book

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 PHP book is cleanly split to help you navigate through coding practices and theories to understand and adopt the nuances of the clean code paradigm. In addition to covering best practices, tooling for code quality, and PHP design patterns, this book also presents tips and techniques for working on large-scale PHP apps with a team and writing effective documentation for your PHP projects. By the end of this book, you’ll be able to write human-friendly PHP code, which will fuel your PHP career growth and set you apart from the competition.
Table of Contents (18 chapters)
1
Part 1 – Introducing Clean Code
8
Part 2 – Maintaining Code Quality

What this book covers

Chapter 1, What Is Clean Code and Why Should You Care?, introduces the main subject of the book.

Chapter 2, Who Gets to Decide What "Good Practices" Are?, explains how those “rules” are decided.

Chapter 3, Code, Don’t Do Stunts, shows why you should consider being pragmatic rather than trying to show off skills.

Chapter 4, It Is About More Than Just Code, explains why a clean code perimeter is greater than just writing source code.

Chapter 5, Optimizing Your Time and Separating Responsibilities, explains how to become more productive by creating new habits.

Chapter 6, PHP Is Evolving – Deprecations and Revolutions, provides a quick overview of the most awaited features introduced in PHP, helping to write clean code.

Chapter 7, Code Quality Tools, teaches you about tools that will help you write clean, maintainable code.

Chapter 8, Code Quality Metrics, looks at all the metrics you need to know to assess your code quality.

Chapter 9, Organizing PHP Quality Tools, shows you how to keep your tools organized.

Chapter 10, Automated Testing, introduces you to automated testing and explains why you should do it.

Chapter 11, Continuous Integration, explores how to maintain code quality consistently and over time.

Chapter 12, Working in a Team, introduces you to the best practices for working in a team of developers.

Chapter 13, Creating Effective Documentation, demonstrates how to create useful and living documentation.