Talk in English - US at ZendCon 2017
View Slides: https://slides.mwop.net/2017-10-24-Middleware-For-That/
Short URL: https://joind.in/talk/57e29 (QR-Code (opens in new window))
Ever need to add authentication to an application? Or log HTTP messages? Maybe you wanted to trim trailing slashes from URIs. Or add security features such as CORS, Content-Security-Policy, or other headers. How do you easily enable the features, or enable them only for certain contexts within your application? The PSR-7 HTTP Messages specification created an ecosystem of PHP middleware that provide solutions to these problems! We'll cover creating an Expressive application that composes middleware from a variety of ecosystems in order to demonstrate that, in the end, there's a middleware solving every problem.