6 ms·
> It's changed a lot since I first used it. Have any good examples? I haven't used the language in years, would love to see what "modern" PHP looks like. (Seri
by wiremine 12y ago
> It's changed a lot since I first used it.
Have any good examples? I haven't used the language in years, would love to see what "modern" PHP looks like. (Seriously, not trolling at all)
- speg 12y agohttp://radar.oreilly.com/2014/03/the-new-php.html http://radar.oreilly.com/2014/03/the-new-php.html I just came back to PHP myself after 4 years away and have been pleasantly surprised. A lot of it has been community driven with things like the PHP-PSR standards and Composer, in additional to all the language features that have hit since 5.3
- hrktb 12y agoApart from the language in itself, the ecosystem has matured leaps and bounds. Symfony is the poster child of the new frameworks: easy to use, flexible and powerful. I haven't used rails but I heard it's going the same direction. Sometimes I feel we're getting too close to Java territory in terms of abstraction and reliance on libraries, but that would also be a sign of maturity.
- adamors 12y agoSymfony2 is definitely not going in the direction of Rails. It was and will be Rails' opposite: built around a dependency injection container, favors configuration over convention and uses as little magic as possible.
- vjeux 12y agoI made a blog post that compares Hack and the new Javascript specifications ES6 and ES7[1]. They have a lot of features in common. [1] http://blog.vjeux.com/2014/javascript/hack-is-to-php-what-es6-is-to-javascript.html http://blog.vjeux.com/2014/javascript/hack-is-to-php-what-es...
- smacktoward 12y agoPHP the Right Way is a good place to start: http://www.phptherightway.com/ http://www.phptherightway.com/
- warmbytes 12y agoThe Laravel framework[1] is a good place to start, it's quite well designed and elegent. It requires at least PHP 5.4. [1] http://laravel.com/ http://laravel.com/
- DigitalSea 12y agoLaravel alone was enough to bring me back to PHP. It seriously has made PHP exciting again (I come from a Codeigniter and Zend background). It takes all of the things people love about Ruby on Rails and brings them to a PHP framework utilising modern features like traits alongside the fantastic selection of packages like Cashier. The even more surprising aspect of Laravel isn't how great it is, but rather the fact it was built by one guy... Other frameworks like Zend, Symfony, Codeigniter were built by teams. Of course, Laravel has contributors nowadays being an open source project, but in the early days it was mostly Taylor taking the reigns.
- debaserab2 12y agoIf you like it because it's like rails, why not just use rails? The rails ecosystem is undoubtedly stronger than laravel's, and it's a more mature framework. I don't see where laravel fits in the spectrum of PHP frameworks.
- teh_klev 12y ago>"If you like it because it's like rails, why not just use rails?" PHP is ubiquitous on shared hosting platforms, there aren't that many "shared" Rails hosters out there. Morts still use shared hosters.
- chatmasta 12y agoThis was a much more compelling argument when shared hosting was still cheaper than a VPS with root access. But now you can get a VPS from any slew of providers, like digitalocean, for $5 a month. Root access computing has never been more accessible, and shared hosting is rapidly losing any value proposition it once had. So targeting PHP purely because it's more ubiquitous on shared hosting than Rails, is making less and less sense.