17 ms·
I'm not familiar with StackPHP but how agnostic is it? The first middleware listed (HttpCache) relies heavily on Symfony.
by mtbcoder 12y ago
I'm not familiar with StackPHP but how agnostic is it? The first middleware listed (HttpCache) relies heavily on Symfony.
- alexbilbie 12y agoIt relies on a single Symfony component which has become the standard for almost every HTTP package. You don't need to download the entire Symfony framework
- mtbcoder 12y agoRight, but that's a large, core Symfony component, not a small library. It essentially dictates how you handle fundamental tasks (such as routing) and immediately starts you off doing things the "Symfony way".
- Gigablah 12y agoEh, it doesn't dictate how you handle routing. I think you're misunderstanding the dependency here: what StackPHP depends on is the HttpKernel interface. Basically the function signature for a HTTP request handler. It does tie you into the Symfony Request object, but otherwise there are no other dependencies.