What are the tradeoffs of using a heavy framework like Laravel versus building a 'frameworkless' or 'vanilla' PHP application?
Last updated
A framework gives you solved concerns (routing, ORM, auth, CSRF), shared conventions, and secure defaults, at the cost of bootstrapping overhead, a learning curve, and lock-in.
Vanilla PHP offers minimal footprint and full control, but you must rebuild and secure everything yourself, and maintainability suffers as the app grows.
A middle ground is composing libraries via
Composer(e.g. Slim or standalone Symfony components).