Jump to ratings and reviews
Rate this book

Functional PHP

Rate this book
A functional approach encourages code reuse, greatly simplifies testing, and results in code that is concise and easy to understand. This book will demonstrate how PHP can also be used as a functional language, letting you learn about various function techniques to write maintainable and readable code.

After a quick introduction to functional programming, we will dive right in with code examples so you can get the most of what you’ve just learned. We will go further with monads, memoization, and property-based testing. You will learn how to make use of modularity of function while writing functional PHP code.

Through the tips and best practices in this book, you’ll be able to do more with less code and reduce bugs in your applications. Not only will you be able to boost your performance, but you will also find out how to eliminate common loop problems. By the end of the book, you will know a wide variety of new techniques that you can use on any new or legacy codebase.

322 pages, Kindle Edition

Published February 14, 2017

2 people are currently reading
10 people want to read

About the author

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
1 (20%)
4 stars
3 (60%)
3 stars
0 (0%)
2 stars
1 (20%)
1 star
0 (0%)
Displaying 1 - 3 of 3 reviews
379 reviews10 followers
October 19, 2017
The first part is brilliant. The explanations are clear, the examples very good and the learning curve almost perfect.
When getting into Monoids and Monads it becomes harder to follow, but still quite good.

The part about practical monads, especially Reader, Writer and Io monads, is disappointingly superficial, with barely any example and, as a result, very hard to understand.

I glanced over the Laravel/Symfony integration and completely ignored Wordpress/Drupal, and didn't go too deep into the testing part (it's mostly quite logical).

If it weren't for the monads chapters, it would have deserved 5 stars.
Profile Image for Carlos Ramos.
Author 3 books8 followers
February 26, 2018
A very good introduction to functional programming in PHP and, in my case, to the world of functional programming.
I will not say this book was an easy read, because functional programming itself is a complex topic, but I believe the author made a really good job at describing the principles about this paradigm and a way that it can be approached in the PHP language.
A must-read for any programmer wanting to learn functional programming in PHP.
Displaying 1 - 3 of 3 reviews

Can't find what you're looking for?

Get help and learn more about the design.