81 points · by ericbarnes · 11y ago · 55 comments
We've been using it with Cachet (https://github.com/cachethq/cachet) for a couple of weeks. Mainly it was to make testing our API easier, the new PHPUnit extensions are so freaking amazing - it makes unit testing a dream.
Other than that, other cool features I like are the LTS, dropping of the mcrypt extension requirement and also the broadcasting feature (which is worth checking out btw)
Also this release contains some code that I've committed too, which is always a nice feeling :)
In previous versions of Laravel, encryption was handled by the
mcrypt PHP extension. However, beginning in Laravel 5.1, encryption is
handled by the openssl extension, which is more actively maintained.
This is easily my favorite aspect of the new release. Please, everyone else, follow their example and stop using mcrypt in your projects.(I personally use Mac as my host OS, because I love it, except when it comes to installing server software).
If mcrypt is such a pain for OSX users, I might offer to refactor some other frameworks' libraries to use openssl in the near future.
Why mcrypt sucks: https://paragonie.com/blog/2015/05/if-you-re-typing-word-mcr...
It's not, if you're using Homebrew (which you should be). `brew install php56-mcrypt` and you're done.
Outstanding work and the new docs are an excellent improvement.
That said I do like the things that Laravel gives you out of the box like auth and the command pattern.
Plenty are mature enough to offer this, but commercial backing must be hard to come by.
First, it's PHP. Same situation with Ruby and Python. All generally slow as a glacier (obvious exclusions being different implementations of said languages).
Developers' focus on code speed is ridiculous (is that too strong a word?) due to relative inexpensiveness of "hardware" and the "fact" (yep, fact) that code is for building value.
In most cases, that value is provided via an automated service. Speed of that automation is typically not critical (obvious exclusions being something like medical equipment or stock trading, or making people wait ridiculous seconds after clicking a button. Please don't Well Actually™ me to death with pedantry).
For me personally, I was a ZF 1.x guy; when I started a new project I chose Laravel, and it was a dream - crazy zippy (compared to ZF). But as I started to do more with it, I started to need to reduce my feature set, implement performance "features" just to retain a measure of speed.
Is 5.x faster than 4.x? Sure. Does it include batteries and the kitchen sink? You bet. Do I still prefer a faster framework like Phalcon and implement the features I miss myself? Damned skippy.
I'm not quite sure where L5's performance gets sunk so badly, but it really is a lot slower than earlier variants of the framework. About the only thing slower is Rails, really!
... and unlike Rails, Laravel hasn't had the stability and ecosystem to make those things really easy. Hopefully this LTS plan will change that a wee bit, but we'll see.
I'd be happy if you could link the benchmarks you have seen that demonstrates performance increases.
I'm used to thinking of LTS support in terms of 4-5 years. I suspect everyone else is too and Laravel is going to piss off everyone who doesn't read the fine print.
If I'm on a project where LTS matters I'd not be doing my job if I didn't read the small print.
PHP versions offer 2 years of support + 1 year of security fixes. So it doesn't really make sense for a PHP project to offer longer support.