
Clean Code in PHP: Expert tips and best practices to write beautiful, human-friendly, and maintainable PHP
Category
Author
Publication
Packt Publishing
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.
About the Author
Alexandre Daubois is a Symfony Developer at SensioLabs, the company that created Symfony. --This text refers to the paperback edition.
- 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
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.
- What is Clean Code and Why Should You Care
- Who Gets to Decide What "Good Practices" Are?
- Code, Don't Do Stunts
- It's about More Than Just Code
- Optimizing Your Time and Separating Responsibilities
- PHP is Evolving- Deprecations, Evolutions, and PSR
- Code Quality Tools
- Code Quality Metrics
- Organizing PHP Quality Tools
- Automated Testing
- Continuous Integration
- Working in a Team
- Creating Effective Documentation