Functional Programming in PHP, 2nd Edition
- Length: 162 pages
- Edition: 2
- Language: English
- Publisher: php[architect]
- Publication Date: 2016
- ISBN-10: 1940111463
- ISBN-13: 9781940111469
Functional Programming in PHP will show you how to leverage these new language features by understanding functional programming principles. With over twice as much content as its predecessor, this second edition expands upon its predecessor with updated code examples and coverage of advances in PHP 7 and Hack. Plenty of examples are provided in each chapter to illustrate each concept as it’s introduced and to show how to implement it with PHP. You’ll learn how to use map/reduce, currying, composition, and more. You’ll see what external libraries are available and new language features are proposed to extend PHP’s functional programming capabilities.
What’s in the book?
- Twice the content of the first edition
- Updated for PHP 7 and HHVM
- Tips for implementation in the real world
- Tooling, libraries and evented programing
- Pipelines, pattern matching and flat map
- Monads, applicatives and functors
- λ functions, composition and currying
Table of Contents
Chapter 1 Introduction
Chapter 2 What Is Functional Programming?
Chapter 3 Language Features
Chapter 4 Helpful Libraries
Chapter 5 Hhvm’S Hack
Chapter 6 Patterns
Chapter 7 Implementing The Theory
Chapter 8 Event Driven Programming
Chapter 9 Hazards Of Functional Programming In Php
Chapter 10 Advances In Php
Chapter 11 Conclusion
Appendix A: Additional Notes
Appendix B: Resources