Hacker News new | ask | show | jobs
by pagnol 3021 days ago
> For one, no mention of testing here (or really hardly anywhere in PHP-land), [...]

In a different life I had to maintain a website based on the Drupal CMS and also one based on the then-popular Laravel PHP framework, and in both environments testing was common and well-supported. As much as I dislike PHP, such a blanket statement does not hold up.

3 comments

Behat is easily one of my favorite test frameworks and PHP, at least since 5.6, is somewhat of a sensible language now.

If you have to build the kind of site that needs to do the things that WordPress does, it's a great choice.

PHP, unfortunately, is never going to get away from the reputation that it earned and some of the choices it's stuck with, but it's a perfectly adequate language to develop web software with and the tooling these days is pretty good.

It's not my choice to use, but I'm happy to use it in a modern context.

Yeah, I think you'll see PHPUnit in Symfony projects pretty typically as well. Also Guzzle.
Laravel’s popularity seems to be at an all-time high, whereas Rails seems to have declined. But I may not have a full picture, and there could be regional differences.

In your experience, what are better web server languages and frameworks?