Live data from Hacker News

Lumen – A micro-framework by Laravel

laravel-news.com

21–30 of 116 posts

Re: Lumen – A micro-framework by Laravel

#23
post #14

Earlier quoted context omitted.

Anyone still hating on PHP in 2015 is doing it wrong.

Saying "it's the wrong tool for the job" and hating on it are two different things.

And you said anyone using PHP in 2015 is doing it wrong, which given that you don't know what "the job" someone might be using it for, seems to head over to the "hating on it" territory.

PHP in 2015 means great frameworks like Symfony/Laravel, high performance with HHVM (and soon PHP7), good package management with Composer, etc. It has made great strides.

Re: Lumen – A micro-framework by Laravel

#24
post #7

The drop in functionality right into the full framework is fantastic. Really like the ability to write API's with much less overhead, which was a factor that came into play for me recently. Nicely done Mr. Otwell.

This is a serious advantage to other frameworks if this principal holds true. I think anyone working in PHP has had their tails burnt a little too often with all the framework churn.

Re: Lumen – A micro-framework by Laravel

#25

If Lumen can use all Laravel its components, can't Laravel use Lumen its routing engine or whatever makes it that fast? What's the key difference that Lumen is considered "fast and micro" over a standard Laravel installation?

The routing engine is NikiC's excellent FastRoute: https://github.com/nikic/FastRoute

My understanding is that the majority of the advertised speed increase has to do with lazy initialization of the request/response stuff and the need to expressly ask for things like session support.

e: Here's an explanation from reddit, http://www.reddit.com/r/PHP/comments/32kajb/lumen_php_microf...

Re: Lumen – A micro-framework by Laravel

#27

Looks really interesting. PHP may not be the "hip" language to use (although it's getting better), but it's so popular and accessible that disregarding it as a legitimate option for new projects is myopic.

I've talked to people doing large-scale deployments in PHP that complain about things like memory-leaks, etc in the language, so I'm not entirely convinced that PHP is really an excellent language (and runtime) that just happens to get a bad rap.

Re: Lumen – A micro-framework by Laravel

#28

How painless is deploying a Lumen/Laravel application? I used to use PHP back in 2006 and I remember deploying was as easy as pushing a .php file via FTP. Has the experience remained the same? PHP was incredibly simple to deploy.

Yes, and even more so with https://envoyer.io/ - according to the website a Laravel product.

Re: Lumen – A micro-framework by Laravel

#29
post #7

The drop in functionality right into the full framework is fantastic. Really like the ability to write API's with much less overhead, which was a factor that came into play for me recently. Nicely done Mr. Otwell.

This is definitely a very cool feature and makes this a very good candidate for MVP's or prototypes. I'm not a huge Laravel fan, but this feature alone might sway my decision.

Re: Lumen – A micro-framework by Laravel

#30

If Lumen can use all Laravel its components, can't Laravel use Lumen its routing engine or whatever makes it that fast? What's the key difference that Lumen is considered "fast and micro" over a standard Laravel installation?

The routing engine is NikiC's excellent FastRoute: https://github.com/nikic/FastRoute My understanding is that the majority of the advertised speed increase has to do with lazy initialization of the request/response stuff and the need to expressly ask for things like session support. e: Here's an explanation from reddit, http://www.reddit.com/r/PHP/comments/32kajb/lumen_php_microf...

Pretty much.

Laravel's strength is that it is batteries included but for some stuff this can be a weakness, API's where that 30-40ms load time matters for example.

I've spent a couple of years working with and on laravel projects and mostly I like it a great deal but it is a sledgehammer when sometimes you need a ballpein.

Post reply on HN