Home>Courses>Learn Functional Programming in PHP

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.

Intermediate

76 Lessons

25h

Certificate of Completion

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

Explanations

AI-POWERED

Explanations

This course includes

106 Playgrounds
18 Challenges
7 Quizzes
Course Overview
What You'll Learn
Course Content
Recommendations

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
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 co...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
A basic understanding of the core concepts of the functional programming paradigm including function composition, immutability, and referential transparency

Show more

Course Content

1.

Getting Started

1 Lessons

Get familiar with core functional programming concepts and advanced techniques in PHP.

9.

Phonebook Application — A Simple Project

5 Lessons

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

10.

Conclusion

1 Lessons

Examine the key takeaways, valuable resources, and invite community feedback.

11.

Appendix

3 Lessons

Grasp the fundamentals of required installations, additional materials, and key terminology in functional programming.

Trusted by 2.5 million developers working at companies

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

Free Resources

FOR TEAMS

Interested in this course for your business or team?

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