Chances are your code already uses one of the HTTP PSRs in some way. In this 'no slides, just code' session we'll take a hands on look at how HTTP Messages (PSR-7) and HTTP Handlers (PSR-15) work, and how they can be properly leveraged. HTTP messages provide a considerable advantage over global variables, and their immutability actually makes it easier to confidently modify an incoming request or an outgoing response in your web application. HTTP handlers are a common concept in micro-frameworks, and PSR-15 provides a way to create reusable framework-agnostic code. But that's not all it provides. The HTTP handler interface can be used to inject the concept of middleware into an existing application without having to introduce a new framework. Or to easily build a lightweight application without any framework. Take a guided tour through both PSRs, and find out how you can used them effectively in your current codebase.

What you'll learn from this talk:
- the value in immutable HTTP Request objects
- how to evolve an HTTP Request object
- how to extend a library's HTTP Request object
- how a middleware stack works
- how easy it is to use PSR-7 & PSR-15 without any framework

Comments

Comments are closed.

Very interesting talk and gave me some thought for my own (legacy) framework

Bas at 15:51 on 18 Jun 2021

Good talk, I hope all will start implementing PSR-7 and PSR-15.

Very good speaker

Xavier Serrat at 16:31 on 18 Jun 2021

It was a great talk to see the modularity when using PSR 15 with PSR 7. I think that PSRs needs to be explained in all PHP conferences to increase the usage in PHP applications. Thanks for your live code explanation!!

Koldo Picaza at 20:56 on 18 Jun 2021

Big fan of PSR-15, I enjoy the talk and live coding a lot, as a mate comment here, the PSR-7 15 benefits should be explained in every conference ;-D Thanks for your great work.

Mark Baker at 11:09 on 19 Jun 2021

My first thought was that this was pre-recorded; but it quickly became clear that it was a live coding exercise, which I thought was particularly impressive. Good depth of knowledge with examples of the benefits of middleware, and the live coding was a great way of demonstrating that. While the focus was on PSR7/PSR15, those benefits apply equally to middleware implementations that don't follow the FIG standards, and it's only the implementations that differ.

Good explanation, nice to see examples with live code.

Exam Dumps at 07:14 on 6 Jul 2021

<p>Get L<a href="https://www.examdumps.in/"><strong>atest Preparation Material</strong></a> to get pass your exam with brilliant marks</p>