Skip to content
Technology

PHP vs React: why I chose the "outdated" technology for my business

Everyone's talking about React, Next.js and modern frameworks. I deliberately chose PHP and plain HTML for my site. Here's why I think it's the smarter choice for 90% of business websites.

~75%
of the web runs PHP
~300KB
average React bundle
<1s
PHP page load
30 yrs
PHP has existed since 1995

Every time I post something about PHP on LinkedIn, the same comments roll in. "Does anyone still use that?" "Move to React." "PHP is dead." Then I look at the statistics and see that PHP powers three quarters of the entire web, including WordPress, Facebook's infrastructure and Wikipedia.

It's ironic that the same people who say PHP is dead visit sites running on it every single day. But let's move past anecdotes and look at the concrete reasons why I deliberately chose PHP and static HTML over React for webdesignbytomi.com.

Context: what my website needs to do

Before we compare technologies, it's important to understand the context. My website needs to:

  • Present information about services and packages
  • Allow visitors to get in touch via a form and chat
  • Publish blog posts (like this one)
  • Rank on Google for local searches
  • Load quickly on all devices

None of these things require a complex JavaScript application. There's no real-time dashboard, no drag-and-drop editor, no hundreds of interactive components. It's essentially a digital brochure with a contact form and a blog.

And that's the key point of this entire article: your technology choice must match the problem you're solving, not the trend you saw on Twitter.

Fun fact: Facebook is written in PHP (specifically in Hack, which evolved from PHP), and React was created... at Facebook. So PHP is good enough for the company that created React.

Page load speed: where PHP dominates

This is perhaps the most important argument for presentation websites. Let's look at what happens when a visitor opens a page built on different technologies.

PHP/static HTML approach

The user sends a request. The server immediately returns the finished HTML. The browser renders it. End of story. My website loads in under one second, and the total size of all resources is about 150 KB including images.

React approach (SPA)

The user sends a request. The server returns an empty HTML page with a single <div id="root">. The browser downloads the JavaScript bundle (typically 300-500 KB just for the framework). The JavaScript executes. React renders components into the DOM. Only then does the user see content. And if it needs data from an API, that's another round of waiting.

Real-world difference: While a React page is still loading and parsing JavaScript, my PHP site is already fully interactive. On a mobile connection, that difference can be 2-4 seconds. Google measures Core Web Vitals and penalises slow pages in rankings.

What about Next.js and SSR?

React advocates will say: use Next.js, it has server-side rendering. And they're right, Next.js solves many problems of a classic React SPA. But think about it: you've taken React (a client-side framework), added server-side rendering (which PHP has done from the very beginning), and now you have a more complex system that does the same thing PHP does out of the box. Plus you need a Node.js server, a build pipeline and significantly more expertise to maintain it.

SEO: Google loves what it can read

For a site that MUST rank on Google, this is the key question. When the Google crawler arrives at a PHP page, it immediately sees all the content. Schema.org markup, meta tags, heading structure, text. Everything is there from the first moment.

When it hits a React SPA? It sees an empty <div> and has to run JavaScript to read the content. Google can render JavaScript, but it requires extra resources and isn't always reliable. Some pages wait days for indexing because Google's render budget is limited.

For a website that needs to rank for web design related searches, why would I even risk client-side rendering?

Fun fact: Googlebot has a "render budget" for each page. If your JavaScript takes too long or fails, Google simply indexes the empty content. With static HTML that risk doesn't exist because the content is immediately visible.

Hosting costs: the maths is clear

My entire stack runs on a VPS for 4.5 euros a month, with Caddy and PHP 8.4. This server hosts both this website and several other projects. Annual cost: about 55 euros.

By comparison, a Node.js application requires a process manager (PM2 or similar), more memory and more careful process management. Platforms like Vercel or Netlify offer free tiers, but with limitations. For serious traffic, prices quickly rise to 20-50 euros a month or more.

For a small business thinking about costs, PHP hosting is simply cheaper. And with hosting and domain included in my packages, clients have no additional expenses at all.

Complexity and dependency hell

This is an argument that rarely comes up in marketing articles, but anyone who's worked with the Node.js ecosystem knows exactly what I'm talking about.

The average React project has hundreds, sometimes thousands of dependency packages. Each of them can have security vulnerabilities, incompatibilities or simply stop being maintained. Try opening a two-year-old React project and running npm install. There's a good chance you'll hit deprecation warnings, security vulnerabilities and peer dependency conflicts.

// Typical output after npm install on an older project: 47 packages are looking for funding 12 vulnerabilities (3 moderate, 7 high, 2 critical) npm warn deprecated inflight@1.0.6 npm warn deprecated rimraf@3.0.2 npm warn deprecated glob@7.2.3

A PHP file written in 2020? You copy it to the server and it works. No build step, no package manager, no transpilation. That's a massive advantage for long-term maintenance.

From experience: I deliver websites to clients that work for years without any code interventions. No dependency updates, no versions to track, no "breaking changes" in new framework releases. Upload the file, it works. Period.

Want a website that works for years without complications?

Clean code, fast loading, no unnecessary frameworks. See what I offer.

When SHOULD you use React?

To be fair, React is a fantastic tool for certain types of projects. It would be dishonest to say PHP can do everything React can. It can't. React shines in situations that demand:

Complex web applications

Dashboards with real-time updating graphs, tools like Figma or Canva where users interactively edit content, chat applications with real-time messaging. For projects like these, React is an excellent choice because it manages complex application state in an elegant way.

SaaS products

If you're building a product with user accounts, multiple views, data filtering and sorting, React and its component approach makes sense. Trello, Notion, Slack - these are all applications where React shines.

Projects with large teams

If 10+ developers are working on a project, React's component model helps organise the code. Each developer works on their own component, tests it in isolation and integrates it into the whole. For a solo developer or small team, that advantage is less relevant.

When is PHP/static HTML the better choice?

For the majority of projects I encounter in practice. Specifically:

  • Business presentation websites - the main purpose is to inform, not to interact
  • Portfolio websites - they need to be fast and visually appealing, not complex
  • Landing pages - the goal is conversion, and every millisecond of load time reduces the rate
  • Blogs and content marketing - text, images, SEO. PHP handles this perfectly
  • Local businesses - local SEO is critical, and server-side rendering has an advantage there
  • Projects with a limited budget - cheaper hosting, faster development, less maintenance

When I look at the different types of business websites I build, none of them require React. A hair salon doesn't need a virtual DOM. An accounting office doesn't need state management. A car repair shop doesn't need hydration.

Direct comparison: PHP vs React

Here's a concrete comparison in the context of a small business website - not a web application.

CriterionPHP/HTMLReact
First load speed✓ faster✕ slower
SEO out of the box✕ needs SSR
Hosting cost✓ 4-10/mo✕ 10-30/mo
Development time✓ faster✕ 30-50% longer
Code maintenance✓ minimal✕ regular
Dependency risk✓ none✕ high
Complex interactions✕ limited✓ excellent
Real-time features✕ needs extra work✓ natural
Large dev teams~ ok✓ better
SPA user experience

The result is clear: for a presentation website, PHP wins in every category that matters. React wins in categories that a presentation website doesn't use.

The argument that's rarely heard

There's one reason why many developers recommend React for every project, and it's rarely discussed openly: React is more popular on the job market.

A developer who builds your project in React gains React experience for their CV. A developer who builds it in PHP gains... PHP experience, which doesn't look as shiny on the job market. That doesn't mean the React developer is consciously making the wrong decision. It's simply human nature to choose tools that bring multiple benefits.

But your goal as a business owner isn't to employ a developer. Your goal is to have a website that attracts clients, loads fast and costs a reasonable amount to maintain. And for that goal, simpler technology is almost always better.

Fun fact: WordPress (which is built on PHP) powers around 43% of all websites on the internet. Add other PHP frameworks (Laravel, Symfony) and static sites, and you reach roughly 75% of the total web. React powers impressive applications, but in terms of market share it's not even close.

My approach: the right tool for the right job

There is no "best" technology. There is the right technology for a given problem. And when a client comes to me needing a business website, my answer is always the same: clean HTML, CSS and minimal JavaScript, with PHP on the backend for the contact form, chat and dynamic features.

The result? Websites that load in under one second, score 90+ on Google PageSpeed, work flawlessly on every device and cost a fraction of the price to host and maintain compared to an equivalent React application.

And if someone tells you that WordPress or React must be used for your small business or company website, ask them why. If the answer includes words like "modern", "trendy" or "everyone uses it", think again.

Bottom line: React is fantastic for what it was made for - complex web applications. But for a small business presentation website? That's like using a truck to carry one bag of groceries from the store. It works, but there's a better way.

Frequently asked questions

No. PHP powers roughly 75% of all websites in the world, including WordPress, Facebook and Wikipedia. PHP 8.3+ brings JIT compilation, union types, named arguments and excellent performance. "Outdated" is a myth spread by those who don't know modern PHP.
React is excellent for complex web applications with heavy interactivity, such as dashboards, SaaS products, chat applications or editing tools. For presentation websites, blogs and landing pages, PHP or static HTML is a better, faster and cheaper choice.
Static HTML and server-side PHP have a clear SEO advantage. Google sees all content immediately without waiting for JavaScript rendering. A React SPA requires extra work (SSR or Next.js) to be SEO-friendly, which increases complexity and cost.
PHP hosting is significantly cheaper. A quality VPS for a PHP site costs 4-10 euros per month. A React/Node.js application typically requires 10-30 euros per month, and platforms like Vercel or Netlify can cost even more at higher traffic volumes.
Yes, and that's actually the recommended approach for most projects. You can have PHP or static HTML for the majority of the site and add React only for specific interactive components that truly need it. That way you get a fast site without losing interactivity where you need it.
Because React is popular on the job market and developers want to use it for their portfolios. That's understandable, but it doesn't mean React is the right tool for every project. For a small business website, React adds unnecessary complexity, higher costs and longer development time without any tangible benefit.

Need a website without unnecessary complexity?

I'll build you a fast, SEO-optimized site in clean code. No frameworks, no complications.