Re:Toro - a php micro-router with great examples
by citricsquid on Thursday August 23, 2012 @03:32PM
(#4424409)
Related: A similar project (a simple php router) called Klein exists (https://github.com/chriso/klein.php) which is really great. Does anyone have experience with both and can explain which is better?
[ Parent
| on HN ]
Re:Toro - a php micro-router with great examples
by ChiperSoft on Thursday August 23, 2012 @05:05PM
(#4424833)
I love Klein, but this looks WAY easier to work with and much more specific. Klein includes a bunch of stuff for request and response handling, output buffers and views and stuff. Toro appears to completely leave all that to the implementer, which is very nice if you've already got code to handle those things.
Re:Toro - a php micro-router with great examples
by tlack on Thursday August 23, 2012 @05:26PM
(#4424941)
Thanks for posting this. I hadn't seen Klein before and the simplicity and minimalism of the API really appeals to me. I'm using Slim so far and it has some serious drawbacks (no namespaced routes, no response()->write(json), overly complicated view system)