HomeCoursesLearn Functional Programming in PHP
AI-powered learning
Save

Learn Functional Programming in PHP

Gain insights into functional programming in PHP. Learn about pure functions, immutable data, and monads. Explore error handling and apply principles through practical projects.

4.4
76 Lessons
25h
Join 2.9 million developers at
Join 2.9 million developers at
LEARNING OBJECTIVES
  • A basic understanding of the core concepts of the functional programming paradigm including function composition, immutability, and referential transparency
  • A working knowledge of functors and monads—handling I/O and neatly processing errors without exceptions
  • An ability to parallelize tasks in PHP using RabbitMQ and PCNTL
  • Hands-on experience in writing applications

Learning Roadmap

76 Lessons7 Quizzes18 Challenges

3.

Core Concepts: Functional Programming in PHP

Core Concepts: Functional Programming in PHP

15 Lessons

15 Lessons

Examine core functional programming concepts in PHP, emphasizing functions, immutability, and referential transparency.

4.

Composition and Helper Functions

Composition and Helper Functions

9 Lessons

9 Lessons

Apply your skills to composing functions, using higher-order functions, and optimizing data processing.

5.

Error Handling in Functional Programming

Error Handling in Functional Programming

8 Lessons

8 Lessons

Explore robust error handling techniques in PHP using monads and functional patterns.

6.

Functors in PHP

Functors in PHP

9 Lessons

9 Lessons

Focus on the practical use of functors and monads in PHP programming.

7.

Parallelization of Tasks in PHP

Parallelization of Tasks in PHP

8 Lessons

8 Lessons

Master the steps to parallelize tasks in PHP with threading, multiprocessing, and message brokering.

8.

Recursion, Pattern Matching, and Property Testing

Recursion, Pattern Matching, and Property Testing

7 Lessons

7 Lessons

Get familiar with recursion, pattern matching, and property testing in PHP.

9.

Phonebook Application — A Simple Project

Phonebook Application — A Simple Project

5 Lessons

5 Lessons

Walk through building a PHP phonebook using functional programming principles and Composer.

11.

Appendix

Appendix

3 Lessons

3 Lessons

Grasp the fundamentals of required installations, additional materials, and key terminology in functional programming.
Certificate of Completion
Showcase your accomplishment by sharing your certificate of completion.
Author NameLearn Functional Programming inPHP
Developed by MAANG Engineers
ABOUT THIS COURSE
Functional programming is a paradigm that emphasizes expressing program logic as compositions of pure functions. PHP is a good fit for functional programming as functions are first-class citizens in its userland. This course introduces you to the core concepts of functional programming, like pure functions, immutable data structures, and referential transparency. From there, you'll explore ways to handle errors with default values and callbacks while also exploring sum types such as Either or Maybe. Next, you'll look at functors before diving deep into monads, including IO, State, Reader, and List. By the end of this course, you'll have a keen understanding of how to apply these principles in practice through a worked-out project. Not only will you know another way to program, but you’ll also feel confident enough to apply these ideas to your projects in PHP.
ABOUT THE AUTHOR

Lochemem Bruno Michael

Every Educative resource is designed by our team of ex-MAANG software engineers and PhD computer science educators — subject matter experts who've shipped production code at scale and taught the theory behind it. No videos, no fluff.

Learn more about Lochemem

Trusted by 2.9 million developers working at companies

These are high-quality courses. Trust me the price is worth it for the content quality. Educative came at the right time in my career. I'm understanding topics better than with any book or online video tutorial I've done. Truly made for developers. Thanks

A

Anthony Walker

@_webarchitect_

Just finished my first full #ML course: Machine learning for Software Engineers from Educative, Inc. ... Highly recommend!

E

Evan Dunbar

ML Engineer

You guys are the gold standard of crash-courses... Narrow enough that it doesn't need years of study or a full blown book to get the gist, but broad enough that an afternoon of Googling doesn't cut it.

S

Software Developer

Carlos Matias La Borde

I spend my days and nights on Educative. It is indispensable. It is such a unique and reader-friendly site

S

Souvik Kundu

Front-end Developer

Your courses are simply awesome, the depth they go into and the breadth of coverage is so good that I don't have to refer to 10 different websites looking for interview topics and content.

V

Vinay Krishnaiah

Software Developer

Built for 10x Developers

No Passive Learning
Learn by building with project-based lessons and in-browser code editor
Learn by Doing
Personalized Roadmaps
The platform adapts to your strengths & skills gaps as you go
Learn by Doing
Future-proof Your Career
Get hands-on with in-demand skills
Learn by Doing
AI Code Mentor
Write better code with AI feedback, smart debugging, and "Ask AI"
Learn by Doing
Learn by Doing
MAANG+ Interview Prep
AI Mock Interviews simulate every technical loop at top companies
Learn by Doing