Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Clean Code in PHP
Clean Code in PHP

Clean Code in PHP: Expert tips and best practices to write beautiful, human-friendly, and maintainable PHP

eBook
€15.99 €22.99
Paperback
€27.99
Audiobook
€34.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with Audiobook?

Product feature icon Download a zip folder containing audio files (MP3) and a supplementary PDF
Product feature icon Access this title in our online player
Product feature icon DRM FREE - Listen whenever, wherever and however you want

Key benefits

  • Easily navigate to key clean code principles specific to PHP development with this hands-on guide
  • Learn the how and why of writing clean code through practical examples
  • Skip the superfluous knowledge and grasp everything that’s relevant to the real-world development environment

Description

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.

Who is this book for?

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 you will learn

  • 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

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Oct 31, 2022
Length: 6hrs 10mins
Edition : 1st
Language : English
ISBN-13 : 9781837636341
Languages :
Tools :

What do you get with Audiobook?

Product feature icon Download a zip folder containing audio files (MP3) and a supplementary PDF
Product feature icon Access this title in our online player
Product feature icon DRM FREE - Listen whenever, wherever and however you want

Product Details

Publication date : Oct 31, 2022
Length: 6hrs 10mins
Edition : 1st
Language : English
ISBN-13 : 9781837636341
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 102.97
The Art of Modern PHP 8
€32.99
PHP 8 Programming Tips, Tricks and Best Practices
€41.99
Clean Code in PHP
€27.99
Total 102.97 Stars icon

Table of Contents

17 Chapters
Part 1 – Introducing Clean Code Chevron down icon Chevron up icon
Chapter 1: What Is Clean Code and Why Should You Care? Chevron down icon Chevron up icon
Chapter 2: Who Gets to Decide What “Good Practices” Are? Chevron down icon Chevron up icon
Chapter 3: Code, Don’t Do Stunts Chevron down icon Chevron up icon
Chapter 4: It is about More Than Just Code Chevron down icon Chevron up icon
Chapter 5: Optimizing Your Time and Separating Responsibilities Chevron down icon Chevron up icon
Chapter 6: PHP is Evolving – Deprecations and Revolutions Chevron down icon Chevron up icon
Part 2 – Maintaining Code Quality Chevron down icon Chevron up icon
Chapter 7: Code Quality Tools Chevron down icon Chevron up icon
Chapter 8: Code Quality Metrics Chevron down icon Chevron up icon
Chapter 9: Organizing PHP Quality Tools Chevron down icon Chevron up icon
Chapter 10: Automated Testing Chevron down icon Chevron up icon
Chapter 11: Continuous Integration Chevron down icon Chevron up icon
Chapter 12: Working in a Team Chevron down icon Chevron up icon
Chapter 13: Creating Effective Documentation Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Full star icon 5
(4 Ratings)
5 star 100%
4 star 0%
3 star 0%
2 star 0%
1 star 0%
Robert Ortega Feb 22, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
El libro es excelente, cubre temas importantes. Recomendado
Feefo Verified review Feefo
Laurin Davis Dec 30, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
As a developer with over 20 years’ experience in PHP, I tend to read technical guides with critical eye. The authors seem to have a firm grasp of all facets of the development process, and error on side of being overly thorough, to ensure all readers understand the concepts upon which a clean code foundation is built. With many practical examples and specific direction on how to implement the principles described, this book would be very helpful if you want to either up your game as a developer, want to ensure that you are covering all points with your own process, or are looking for a resource to support your coaching and mentoring of your team.
Amazon Verified review Amazon
Michael Sypes Nov 28, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book will not teach you how to code, but how to think about what you code, which is at least as important. If you are new to programming, you need this information as much as the more common "code examples" books out there.The first part of the book explains the mindset needed to write code that not only functions in a computer, but is readily understood by other humans. Their time is more valuable than server time. While there are a few code examples expressing important points, the book excels at explaining and encouraging "best practices:" What they are, and why they are.The second part of the book provides continued guidance for actually implementing these ideas in practical ways with general directions for installing and configuring popular tools for making the production of clean code simpler and more streamlined, as well as evaluating the quality of your code.If you're new to programming (<3 years) this book is a must. Not just for you, but for your colleagues, present and future. They'll be glad you read it. If you've been programming longer than that, they should be preaching to choir, but you'll more than likely gain valuable insight into the whys and wherefores of what you're (hopefully) doing already, and may pick up a few additional pointers on tooling.
Amazon Verified review Amazon
anxiousguy Nov 26, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
As a long-time PHP programmer (since version 4) that's always on the lookout to improve his craft, I get excited to see the tool of my trade is still being written about.To expand on the answer to the titular question, I'd like to offer some insight into the contents of the book. Wasn't everything already covered in other books from a plethora of publishers that came out in the last two decades? Is there something more to be said about PHP, more than 20 years after its initial release? Certainly!PHP was created as a practical, easy-to-use language. It always had an extremely low barrier to entry and that was one of the biggest reasons it gained popularity and adoption in such large numbers. Naturally, many introductory and reference books followed, to ride the way of popularity and help people get on board even quicker.As the language progressed (and the community along with it) and matured, everybody adopted a different style and an opinion on how to use the language in a clean, concise, and collaboratively acceptable manner. Unfortunately, resources and literature on those learnings didn't follow suit. That created a void that Windler and Daubois are addressing with this book.By building upon industry standards and already accepted good practices, authors have created a book that puts you, as a PHP programmer, in the driver's seat - navigating you and giving you advice on how to do it the right way.To write clean, and, as the front page says, human-friendly code in today's world, one needs more than just a knowledge of PHP's syntax. That's where this book excels. It will give you not just an overview, but also an explanation and how-to on many things built around the language.You'll learn about code quality and metrics (and the tools), tests, and what I enjoyed the most - working in a team and writing effective documentation.PHP is alive and well, and publications like this one are proof that it will stay so for the time to come. If you're just starting out or if you're a PHP veteran, there are things here that'll help you level up your game!
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an audiobook? Chevron down icon Chevron up icon

Where there is an audiobook version of a title available, you can buy it from the book details for that title. Your audiobook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalized audiobook download file.

Clicking the link will download the audiobook in a ZIP file. Unzip the ZIP file to your desired location to access the audiobook’s .mp3 files. You may play these .mp3 files on any supported player or device of your choice.

Please Note: Packt audiobooks are non-returnable and non-refundable.

Packt audiobook and Licensing: When you buy an audiobook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it, we have tried to balance the need for the audiobook to be usable for you the listener with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your audiobook for your own use onto any machine
  • You may not pass copies of the audiobook on to anyone else

How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, audiobook, eBook, or Bundle (Print+eBook) please follow the below steps:

  1. Register on our website using your email address and password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title.
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Card, or PayPal)

Where can I access support around an audiobook? Chevron down icon Chevron up icon

  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us

What are the benefits of audiobooks? Chevron down icon Chevron up icon

  • You can get the information you need immediately
  • You can easily take them with you on a laptop or mobile device
  • You can download them an unlimited number of times
  • There is no password protection
  • They save resources and space
  • You can multitask while listening to audiobooks
  • What is an audiobook? Chevron down icon Chevron up icon

    An audiobook, also known as a talking book, is a recorded version of a book where the content is read aloud.