Think Build Implement Repeat
London, UK +44 7367 067226
WhatsApp FOLLOW f in X
PHP Development

Framework, Micro-Framework or Neither

Last updated:

Frameworks earn their weight

Routing, authentication, database access, validation, templating, background jobs and testing infrastructure are all solved problems. Writing them again is expensive and produces something less secure.

The argument against frameworks is usually about performance, and for typical business applications the difference is irrelevant compared with database and network time.

Match the tool to the job

ApplicationFit
Business app with users and adminFull framework
API service, focused scopeMicro-framework
Content-driven siteCMS or full framework
A single scheduled scriptPlain PHP is fine
Long-lived system with a teamFull framework, without question

What matters in the choice

  1. How well maintained it is, and its release cadence
  2. How easily you can hire people who know it
  3. Documentation quality, which affects everything
  4. Ecosystem — what already exists for common needs
  5. Upgrade path between major versions
Hiring availability matters more than most technical criteria. A framework nobody in your market knows is a maintenance risk regardless of its merits.

Do not fight the framework

Most framework problems come from working against its conventions. If you find yourself repeatedly circumventing it, either the framework is wrong for the job or the approach is.

Following conventions makes the code predictable for the next developer, which is most of what maintainability means.

Keep business logic separate

Whatever framework you choose, the business rules should be in classes that do not depend on it. That makes them testable, portable and comprehensible independent of the web layer.

It also means a future framework change is a rewrite of the edges rather than of the system.

Frequently asked questions

Which PHP framework do you use?

Whichever fits the project and the client's existing team. The choice matters less than using one consistently and properly.

Is a framework overkill for a small application?

Rarely. Small applications grow, and retrofitting structure is harder than starting with it.

What about performance overhead?

Negligible next to database and network time in typical business applications. Optimise queries before considering the framework.

Can we change framework later?

Expensive, and much less so if business logic was kept separate from the framework. That is the main argument for the separation.

Keep reading

Inherited an application with no framework?

Adding structure incrementally is usually possible. Happy to look at what you have.

Book a free 30-minute call Get a project estimate WhatsApp us

Related services

What we build for problems like this one

Web DevelopmentCustom Software Development