Aller au contenu
AFUP AFUP Day 2025 Baromètre Planète PHP PUFA
 

Stack: a PHP interface for framework-agnostic code sharing

Description

This talk will explore the evolution of HTTP abstractions. We will take a look
at inetd at the TCP level, CGI and FCGI at the HTTP level, language level
abstractions like Rack for Ruby and WSGI for Python. Finally we will arrive at
the Symfony2 HttpKernelInterface. The PHP community can take many ideas from
Rack. We should be building composable stacks of re-usable middlewares, for better cooperation between open-source projects and cleaner decoupled architectures in large-scale PHP applications.
Learn about unix philosophy, understand where PHP's CGI-like I/O mechanism
($_SERVER, header, echo) comes from, how it can be improved, how the HTTP
boundary allows for truly framework-agnostic code sharing, and discover Stack: an attempt to do just that!

This talk will explore the evolution of HTTP abstractions.

We will take a look at inetd at the TCP level, CGI and FCGI at the HTTP level, language levelabstractions like Rack for Ruby and WSGI for Python. Finally we will arrive at the Symfony2 HttpKernelInterface. The PHP community can take many ideas from Rack. We should be building composable stacks of re-usable middlewares, for better cooperation between open-source projects and cleaner decoupled architectures in large-scale PHP applications.


Learn about unix philosophy, understand where PHP's CGI-like I/O mechanism($_SERVER, header, echo) comes from, how it can be improved, how the HTTPboundary allows for truly framework-agnostic code sharing, and discover Stack: an attempt to do just that!

Conférence donnée lors du Forum 2013, ayant eu lieu les 21 et 22 novembre 2013.

Informations complémentaires

Vidéo

Le speaker

Igor WIEDLER

Igor Wiedler has been fixing bugs in open source software since 2006. Currently he is improving the PHP ecosystem by working on Symfony2, Silex and Composer. Location: Winterthur, Switzerland.

Commentaires

Excellent talk with just the right amount of history ! Thanks !
Thierry Marianne, le 21/11/2013
Would make a fantastic man-in-the-middle attacks tool!
Anonyme, le 21/11/2013
Very funny and interesting talk !
Mickaël Andrieu, le 21/11/2013
Thanks
Cédric Lécuret, le 22/11/2013
Really interesting talk and software, thanks.
Anonyme, le 22/11/2013
Just an excellent presentation, thanks Igor! :)
Patrick Allaert, le 25/11/2013
Excellent talk. The preliminary parts were quite long but helpful to understand Stack.
Anonyme, le 02/12/2013
Really nice talk!
Benjamin 'Ternel' Clay, le 03/12/2013