Live data from Hacker News

Lumen – A micro-framework by Laravel

laravel-news.com

101–110 of 116 posts

Re: Lumen – A micro-framework by Laravel

#101
post #94

Earlier quoted context omitted.

No. http://www.reddit.com/r/PHP/comments/2zhg6z/how_true_is_this... Read that and tell me that it is Ok..And see how that comment has been downvoted. That is PHP community for you. In 2015.

It is ok. That's how the language is designed so that arrays cover both hash-map use cases and traditional numerically indexed array use cases. The behavior is well documented and in this specific example, using a == instead of a === would cause the desired result. The poster of that comment should RTFM.

>The poster of that comment should RTFM...

I am not sure I should go read the manual before setting a string key in an array to make sure that the specific string does not falls under some kind of special treatment. When normal people see that they can set string keys on something, they would assume that it work for all strings regardless of their content.

And regarding PHP manual, it does not even have fundamental stuff right. This comment is from an ex php core developer.

http://www.reddit.com/r/lolphp/comments/2md8c0/new_safe_cast...

>using a == instead of a === would cause the desired result

Except using == will result in a hundred other weird behaviors that have caused numerous many bugs and security vulnerabilities, that every one uses === with out exception..

Re: Lumen – A micro-framework by Laravel

#102
post #70

PHP frameworks have come a long way, and so has the language. The big thing that stands out, is that three of the best frameworks in the space (Laravel, Symfony and Slim) work together and feel a friendly/healthy sense of competition. They are reusing each others components and building a much more promising future for PHP.

Which project reuses laravel components?

Laravel is built on Symfony components, and much of Laravel can be used outside of Laravel.

Re: Lumen – A micro-framework by Laravel

#103

PHP frameworks have come a long way, and so has the language. The big thing that stands out, is that three of the best frameworks in the space (Laravel, Symfony and Slim) work together and feel a friendly/healthy sense of competition. They are reusing each others components and building a much more promising future for PHP.

Drupal 8 is based on Symfony -- things are really moving in the right direction. Personally, I was a huge fan of Zend Framework + Doctrine, but these frameworks are all mature and great to use.... almost as good as Rails (lol, OK, OK, don't mention Ruby within earshot of PHP fans ;) [edit] down voted for my opinion! Argh my tiny karma is depleted -- damn you ruby, damn you to hell!

Drupal is becoming more and more insane with each release (especially 6 -> 7). The database structure is really getting out of hand. It's becoming harder and harder to deal with the performance issues.

Re: Lumen – A micro-framework by Laravel

#104
post #68

I've just created an issue [1] in our FrameworkBenchmarks project to solicit an implementation of our tests on Lumen. If anyone here is willing to contribute such an implementation, it would be greatly appreciated. The promise of performance caught my eye! Incidentally, Round 10 is arriving soon. [1] https://github.com/TechEmpower/FrameworkBenchmarks/issues/15...

I hope they add React-PHP.

Re: Lumen – A micro-framework by Laravel

#105
post #72

Earlier quoted context omitted.

I completely agree. I've used Slim in lieu of Laravel for a number of small API projects. I'm excited about porting them over to Lumen.

Have you ever tried Flight, http://flightphp.com ? It has a smaller footprint than Slim but still has the ability to drop in PHP components. Disclaimer, I'm the author of Flight.

We (https://commando.io) use Flight for our API and love it. Super minimal, but provides all the functionality we require. The ability to map custom functions into the Flight namespace is great.

Re: Lumen – A micro-framework by Laravel

#107

Earlier quoted context omitted.

We use Drupal.

Well, there you go.

Are you suggesting that off-the-shelf frameworks/CMSes are somehow inferior to writing everything from scratch? That seems pretty myopic. We gain a lot from using Drupal.

Re: Lumen – A micro-framework by Laravel

#109

Earlier quoted context omitted.

You mean that you think it's not hip to use FTP? Because people definitely still do this.

No, I mean that using FTP is the wrong/insecure/slow way to do it. SFTP at a minimum, please.

Do you always twist your words or just sometimes

Re: Lumen – A micro-framework by Laravel

#110
post #97
post #91

I've just created a project with lumen to have a look at it and lumen and all its vendor packages (with --no-dev and without tests) contain 1522 files and 102449 lines of code – according to cloc. Am I doing something wrong or why does it call itself a "micro-framework". A newly created Slim project contains 7417 lines of code.

How many lines of code should a micro framework have?

It should be near other PHP micro-frameworks:

- BulletPHP: 3946 lines of PHP code

- Slim: 7329 lines of PHP code

- limonade: 3669 lines of PHP code

- Lumen: 95'220 lines of PHP code

You can't call it a micro framework if it's more than ten times bigger than all the other ones.

Post reply on HN