My Favorite PHP books
Tags: php, books
Published: 2018-09-23 15:31:51

---
title: My Favorite PHP books
published: true
description: In this post, I share some of my favorite PHP books that I consider a must read for any PHP developer.
tags: php, books
canonical_url: https://brunopaz.dev/blog/my-favorite-php-books
---

Hello.
In this post, I share some of my favorite PHP books that I consider a must read for any PHP developer.

## [PHP The Right way](https://leanpub.com/phptherightway)

![Imgur](https://i.imgur.com/ErA6wYc.png)

There’s a lot of outdated information on the Web that leads new PHP users astray, propagating bad practices and insecure code. This book is an easy-to-read, quick reference for PHP popular coding standards, links to authoritative tutorials around the Web and what the contributors consider to be best practices at the present time.

This book aims to introduce new PHP developers to some topics which they may not discover until it is too late, and aims to give seasoned pros some fresh ideas on those topics they’ve been doing for years without ever reconsidering.

If you are new to PHP, reading this book is one of the first things you should do.

## [The Clean Architecture in PHP](https://leanpub.com/cleanphp)

![Imgur](https://i.imgur.com/znksK8n.png)

In this book, Kristopher Wilson, cover the Clean Architecture, coined by Uncle Bob, and how to implement it in PHP, as well as the concepts of SOLID design, various design patterns, and a look at various architectures.

If you want to know how to structure your applications in order to be Testable, Refactorable and Easy to work and mantain, this book is for you.

Definitely a must read.

## [Domain-Driven Design in PHP](https://leanpub.com/ddd-in-php)

![Imgur](https://i.imgur.com/2VIIM00.png)

I finished reading this book last week and it was really good.

This one focused on how to implement Domain Driven Design in PHP.

It will help you understand how to organize your code using DDD and concepts like Entities, Value Objects, Aggregates, Repositories and more.

This book has lots of code examples that will help understanding the concepts.

Even if you dont want to follow a full DDD Approach, there are great concepts in this book that will help you better organizing your application code.


## [Scaling PHP Apps](https://www.scalingphpbook.com/)

![Imgur](https://i.imgur.com/tKCMH2t.png)

You can make the best application following "Clean Code" or "DDD" approach, but if you cant deploy it live and scale, it will be useless.

This book is more focused on the operational side of PHP and it will explain great techniques, for getting the most of PHP and LEMP stack, from optimizing the application itself to the Webserver, Database, Caching etc.


## [Build APIs You Won't Hate](https://leanpub.com/build-apis-you-wont-hate)

![Imgur](https://i.imgur.com/EzhLquD.png)

While this book is not specific for PHP, Its a very important topic for any Web Development work. Phil Sturgeon talks about the best practices to build a REST API, from more basic stuff like how to structure your endpoints to advanced concepts like HATEOAS.

As a bonus, all the code examples are written in PHP.


# Conclusion

Thats it. These are my favorites. [This](https://leanpub.com/mlaphp) and [This](https://leanpub.com/the-essentials-of-object-oriented-php) also look interesting, but I have only talked about books I have read.

Any other book you would recommend? Feel free to comment.