Learn Functional Programming in PHP

to be added ...

Intermediate

76 Lessons

25h

Certificate of Completion

to be added ...

AI-POWERED

Explanations

AI-POWERED

Explanations

This course includes

106 Playgrounds
18 Challenges
7 Quizzes

This course includes

106 Playgrounds
18 Challenges
7 Quizzes

Course Overview

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,...Show More

TAKEAWAY SKILLS

Functional Programming

Functors

Monads

Recursion

Mutability

What You'll Learn

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

What You'll Learn

A basic understanding of the core concepts of the functional programming paradigm including function composition, immutability, and referential transparency

See more

Course Content

1

Getting Started

2

An Introduction to Functional Programming in PHP

3

Core Concepts: Functional Programming in PHP

4

Composition and Helper Functions

5

Error Handling in Functional Programming

6

Functors in PHP

9 Lessons

7

Parallelization of Tasks in PHP

8 Lessons

8

Recursion, Pattern Matching, and Property Testing

7 Lessons

9

Phonebook Application — A Simple Project

5 Lessons

10

Conclusion

1 Lesson

11

Appendix

3 Lessons

Trusted by 1.4 million developers working at companies

Anthony Walker

@_webarchitect_

Emma Bostian 🐞

@EmmaBostian

Evan Dunbar

ML Engineer

Carlos Matias La Borde

Software Developer

Souvik Kundu

Front-end Developer

Vinay Krishnaiah

Software Developer

Eric Downs

Musician/Entrepeneur

Kenan Eyvazov

DevOps Engineer

Anthony Walker

@_webarchitect_

Emma Bostian 🐞

@EmmaBostian

Hands-on Learning Powered by AI

See how Educative uses AI to make your learning more immersive than ever before.

Instant Code Feedback

Evaluate and debug your code with the click of a button. Get real-time feedback on test cases, including time and space complexity of your solutions.

AI-Powered Mock Interviews

Adaptive Learning

Explain with AI

AI Code Mentor

Looking for something else?

FOR TEAMS

Interested in this course for your business or team?

Unlock this course (and 1,000+ more) for your entire org with DevPath