You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/index.html
+55-19Lines changed: 55 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -20,10 +20,63 @@ <h1>Stack</h1>
20
20
21
21
<hr>
22
22
23
+
<divclass="why">
24
+
<h2>Why?</h2>
25
+
<p>
26
+
Right now there is no easy way to re-use HTTP-specific code in PHP. Accessing superglobals and emitting headers and data as side effects is messy and unpredictable. While frameworks are becoming more decoupled, they still have their own implementation of anything that touches HTTP.
27
+
</p>
28
+
<p>
29
+
We want to fix this.
30
+
</p>
31
+
<p>
32
+
What worked for the Ruby world with <ahref="http://rack.github.io/">Rack</a> (similar interfaces exist for Java, Python, Perl and others) can work for PHP with Stack.
33
+
</p>
34
+
</div>
35
+
36
+
<hr>
37
+
23
38
<divclass="about">
24
39
<h2>What is Stack?</h2>
25
40
<p>
26
-
Stack is a convention for composing <ahref="https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpKernel/HttpKernelInterface.php">HttpKernelInterface</a> middlewares. It evolved from a blog post titled <ahref="https://igor.io/2013/02/02/http-kernel-middlewares.html">HttpKernel middlewares</a> in which it was proposed that <code>HttpKernelInterface</code> decorators could be created to mimic functionality similar to that of <ahref="http://rack.github.io/">Rack</a> or other language-specific HTTP interfaces.
41
+
Stack is a convention for composing <ahref="https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpKernel/HttpKernelInterface.php">HttpKernelInterface</a> middlewares. Any framework based on Symfony2's HttpKernelInterface can use these middlewares. They allow an application to be extended in a generic way, simply by wrapping objects around the kernel.
42
+
</p>
43
+
</div>
44
+
45
+
<hr>
46
+
47
+
<divclass="frameworks">
48
+
<h2>Which frameworks support Stack?</h2>
49
+
<p>
50
+
The following frameworks and apps are using the HttpKernelInterface abstraction and can thus benefit from Stack:
0 commit comments