Engineering 5 min read Updated
Plain PHP or a framework? An honest comparison
In short
Neither option is the safe default; the right choice depends on the size of the project, the team, the expected lifetime and the work you will own.
Few people truly choose a framework for a new PHP project. Habit usually decides: the team reaches for whatever it used last time. The outcome, though, turns on only a few things: codebase size, team size, expected lifetime, security work, upgrades and hosting. There is no winner here. You will find where each path fits, and what it will cost you in a few years.
What the two options actually mean
“Plain PHP” here means an application without a full framework. The team writes its own routing and templates, and adds small libraries only where it needs them. A framework such as Laravel or Symfony brings routing, database access, validation, security components and, above all, conventions about where things live in the project. In practice the line is a spectrum rather than a switch. Many projects take a few components from a framework and leave the rest. Many framework projects, in turn, contain hand-written code.
When plain PHP is enough
- The project is small. A few pages, a few integrations and one developer who can hold the whole codebase in mind.
- It must last and change little. Fewer dependencies mean fewer upgrades forced by someone else’s release schedule.
- Hosting is limited. The PHP runtime is the only requirement. That suits shared hosting, or a server where Composer and modern tooling cannot run.
- The pages are simple and you measure them. Skipping the framework bootstrap can make a simple page faster. Only measurement shows whether that matters. A well-built framework application is often fast enough.
You still cannot escape one duty: upgrading PHP itself. The PHP project publishes a support calendar. Branch 8.4 has active support until 31 December 2026, branch 8.5 until 31 December 2027, and the latest branch 8.6 (released 19 November 2026) until 31 December 2028 with security fixes until 31 December 2030. Moving to a supported branch is a task you plan yourself for an application without a framework.
When to reach for a framework
- More than one person works on the code. Shared conventions let a newcomer find controllers, models and tests where they expect them.
- The domain is large. Roles, queues, scheduled jobs, notifications and migrations recur in most business applications, and a framework has solved them.
- You want ready-made protections. Password hashing, CSRF protection, parameterised queries and output escaping are mature and well tested in a framework. Plain PHP can reach the same level, but you must write, test and maintain each protection yourself.
- You rely on the ecosystem. Packages, documentation and a larger pool of people who already know the tools.
What each path really costs
Plain PHP hides its costs. You write session handling, form validation, migrations and login yourself, and you must revisit each piece whenever a new class of vulnerability appears. A framework’s costs are more visible: upgrades between major versions, a learning curve and a larger dependency tree to keep an eye on. Neither path is free of maintenance, and both require you to watch security advisories.
Support windows matter on both paths. The table gives the published dates for the versions mentioned here.
| Platform and version | Bug fixes until | Security fixes until |
|---|---|---|
| PHP 8.4 | 31 December 2026 (active support) | 31 December 2028 |
| PHP 8.5 | 31 December 2027 (active support) | 31 December 2029 |
| PHP 8.6 (released 19 November 2026) | 31 December 2028 (active support) | 31 December 2030 |
| Laravel 13 (released 17 March 2026) | Third quarter of 2027 | 17 March 2028 |
| Symfony 7.4 LTS (released November 2025) | November 2028 | November 2029 |
Laravel gives each major release eighteen months of bug fixes and two years of security fixes. Laravel 13 requires PHP 8.3 or later. The deadlines are real, as the previous release shows: Laravel 12 stopped receiving bug fixes on 13 August 2026, and its security fixes run until 24 February 2027. Minor and patch releases should never contain breaking changes, and a new major version arrives roughly once a year. That regularity makes upgrades plannable. It does not make them optional.
Decision table
Use the table as a checklist, not a verdict. When most rows point one way, the choice is usually clear. When they split, write down which factor matters most to you and let that decide.
| Factor | Plain PHP tends to fit | A framework tends to fit |
|---|---|---|
| Size | Few screens, few integrations | Many models, roles and background jobs |
| Team | One or two developers who know the code | Several developers, people who change over time |
| Lifetime | Long-lived tool with little change | Product that grows and gets re-planned |
| Hosting | PHP only, no Composer or deployment tooling | Host that runs Composer and a supported PHP version |
| Security work | Small attack surface the team reviews itself | Team prefers vetted, shared protections |
| Upgrades | PHP upgrades only | PHP upgrades plus framework major versions |
How to decide without ideology
- Write down how long the project should last, how many people will work on it, and what it must do over the next twelve months.
- If you are unsure, build the same small slice both ways and compare the code you would have to maintain.
- List the security tasks you will keep in each option, such as session handling, dependency updates and form protection.
- Return to the choice at a clear milestone, for example when a second developer joins or the number of integrations doubles.
And before you choose any technology, check that the product is worth building: what to check before the first line of code.
Support dates were read from the cited pages on 24 November 2026. Vendors revise these policies, so check the current pages before a decision.
If a PHP project is already on your desk and you want a second view of the choice, describe it through the enquiry form.
Common questions
- When is plain PHP a better fit than a framework?
- Plain PHP fits small applications with few screens and integrations, one or two developers who know the codebase, a long lifetime with few changes, or restricted hosting where Composer and deployment tooling cannot run.
- Does plain PHP remove upgrade and security work?
- No. You still have to plan upgrades of PHP itself according to its support calendar, and you must write, test and maintain protections such as session handling, CSRF defence, parameterised queries and output escaping yourself.
- How long are PHP and major framework releases supported?
- According to policies checked on 14 November 2026, PHP 8.5 has active support until 31 December 2027 and security fixes until 31 December 2029, Laravel gives 18 months of bug fixes and 2 years of security fixes per major version, and Symfony 7.4 LTS receives security fixes until November 2029.
Sources
- Supported Versions, PHP Group (php.net). Accessed 14 November 2026
- Release Notes: support policy, Laravel. Accessed 14 November 2026
- Symfony Releases and maintenance policy, Symfony project (SensioLabs). Accessed 14 November 2026
Further reading
-
Planning a PHP version upgrade
Plan an upgrade around the support dates and the changes that affect your code, and keep a way back to the previous version.
-
SQLite or MySQL for a small product
Choose SQLite when one application on one host reads and writes the data and writers can take turns; choose MySQL when many machines or simultaneous writers share it.
-
Sessions and cookies done safely
Protect session cookies with explicit attributes, a new ID at login and timeouts enforced on the server.
Have an idea that should exist? Or a working product that needs more customers, a new website or a complete rework? Bring us anything. Apply with your idea