It is 2023 and I want to develop a web app (backend) as a part of an MVP. Here's the twist: I want to:
- use boring technology
- iterate fast
- deploy with minimal cost for now
The web frameworks I have used recently (Spring, Rails, Express, Django, Flask, Elixir) coupled with Heroku, or Fly.io, or Kubernetes - they just don't cut it for me. Don't get me wrong: I have used most of the above in production and they fit and perform well, not for an MVP though. The closest I had it to my taste was with serverless (Zappa on AWS Lambda), but it felt like the framework was quite immature by the time.
Some long time ago I have been using PHP. I only have vague memories of copying files over FTP, having my site deployed instantly, and at practically no cost (hey, even with a "shared" DB). Development was fun, but I don't know if I am romanticizing it now, or if the ecosystem was actually making it simple and fast.
So, to your taste, what compares in 2023 to the romanticized experience of PHP in 2000s? Or should I just "undust" my PHP and learn Laravel?
I have a boring webhost which is sat behind Cloudflare. I push my code up to Gitlab and have a simple deployment script set up which automatically SSH's into my webhost and pulls down my latest changes.
Laravel allows to me dev locally with ease and makes common tasks like form validation, db migrations and various other things a breeze. When I'm done I merge to main, `git push` and my changes are live. It's great.
If you have some experience with PHP and have been a web developer for some time you'll have no problem picking up Laravel. I've always found the docs to be great and it's very intuitive to work with.
Some years ago I was a PHP dev, but professionally I tend to work with Node, Java and Kotlin these days. I wouldn't use any of them for personal projects though. I find I'm far more productive in Laravel and the ecosystem is mature enough that I know anything I write will be good for years. Plus, deployment is cheap and simple. I pay a fix price (around $100 a year) for my webhost and for that I get "unlimited" domains, storage and DBs. It's a bit slow on it's own, but behind Cloudflare it works great.
PHP is super underrated imo. It's perfect for small - medium sized projects on a budget!