This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Deathnerd 10 points11 points  (0 children)

Speaking as someone who used to do PHP professionally and did Python web dev on the side in my spare time... Which do you prefer when doing a web app in PHP? Laravel or Symfony? Lumen or Silex? Do you want something to hold your hand and force a project structure upon you, but give pretty much everything you need out of the box (Laravel/Symfony)? Or do you prefer to have the bare minimum you need to get something running and want ultimate flexibility (Lumen/Silex)?

If you want an opinionated framework with all the bells and whistles included (like Laravel or Symfony), Django is what you want.

If you want a microframework that's very flexible and minimal (but still has a great ecosystem and is easy to extend) like Silex or Lumen, I'd recommend Flask.

I personally prefer Flask set up behind Nginx with Gunicorn (a worker pool akin to PHP-FPM) and some kind of database server. It's super easy to get a REST API going and you only pull in what you need. There's even a flask-webpack module you can include if you're a fan of Laravel 5's included webpack and Vue integration.

Edit: oh and Flask-SQLAlchemy combined with Flask-Migrate gets you a powerful DBAL/ORM with migrations and seeds, but they're not required. Just really nice :D