Languages
PHP
The language behind WordPress and much of the web we maintain.
PHP is a mature, server-side programming language that powers WordPress and a large share of all websites. It runs on the server to generate pages, handle forms and talk to databases. HDC works in PHP for WordPress builds, plugin and theme customisation, and the legacy systems many clients already run, keeping those sites fast, secure and properly maintained.
Where it shines
- Powers WordPress, which runs a large share of all websites, huge real-world reach
- Mature and stable, with decades of tooling, hosting support and documentation
- Runs on cheap, widely available hosting, easy and inexpensive to deploy
- Modern PHP (8.x) is genuinely fast and a pleasure to work in
- Vast ecosystem of plugins, themes and frameworks like Laravel and WordPress
- Ideal for content sites where non-technical teams need to edit daily
Trade-offs to weigh
- Server-rendered by default, so heavy WordPress sites need real care to stay fast
- Plugin-heavy WordPress installs can become a security and maintenance burden
- Older PHP codebases vary wildly in quality and can carry technical debt
- Not our default for brand-new, speed-critical marketing sites, Astro usually wins there
What PHP is
PHP is a server-side programming language created in 1995 and refined over nearly three decades. Unlike JavaScript, which runs in the visitor’s browser, PHP runs on the server: it generates the HTML for a page, processes form submissions, and talks to databases before anything is sent to the visitor. It’s the quiet workhorse behind a huge slice of the web.
Its most important role today is powering WordPress, the content management system that runs a large share of all the world’s websites. PHP also underpins major frameworks like Laravel and platforms such as Drupal and Magento. Modern PHP, the 8.x series, is fast, well-structured and actively maintained, a long way from the language’s reputation in its early years.
How HDC uses PHP
PHP is how we work with the WordPress and legacy systems many clients already rely on. In practice that means:
- We build and customise WordPress sites, themes, plugins and functionality, for clients whose teams need to edit content themselves every day.
- We replace bloated plugins with lean custom PHP where it makes a site faster, safer and easier to maintain.
- We take over and modernise existing PHP sites we didn’t build: auditing them, fixing performance and security issues, and bringing them up to a maintainable standard.
- We can run WordPress as a headless CMS behind a fast Astro front end, so editors keep the familiar dashboard while visitors get a near-instant site.
Throughout, we pair PHP with MySQL for data and Cloudflare for caching and security.
Why we apply it
Most trades and local businesses don’t start from a blank page, they already have a website, and very often it’s WordPress. Pretending that doesn’t exist, and pushing every client toward a from-scratch rebuild, would be neither honest nor good value. PHP is what lets us meet a business where it is: improve the site they’ve got, keep the content and editing workflow their team already knows, and remove the cost and risk of throwing everything away.
It also matters for choice. Because we genuinely work in PHP, we can recommend WordPress when it’s the right fit, daily content editing by a non-technical team, instead of forcing a tool we’d rather use.
How PHP fits our stack
PHP is our platform for content-managed and legacy sites, sitting alongside the rest of our stack rather than competing with it. It runs hand in hand with WordPress as the CMS and MySQL as the database, with Cloudflare in front for caching and protection. Where a client wants the editing comfort of WordPress but the speed of a modern static site, we put Astro in front of it as a headless front end and let JavaScript handle any browser-side interactivity PHP can’t. That combination means we can serve clients on WordPress and clients on a fast custom build from one coherent toolset.
When PHP isn’t the right tool
We’re honest about fit. For a brand-new marketing or brochure site where raw speed and SEO are the priority, we’ll usually build on Astro rather than a traditional PHP/WordPress stack, there’s no database to slow things down and far less to secure. PHP and WordPress come into their own when a non-technical team needs to publish and edit content constantly, or when a client already has a PHP system worth preserving. We pick the tool the situation calls for, not the one that’s most familiar.
Worked example
Modernising a WordPress site without starting over
Imagine a local business with a WordPress site their team has filled with years of content and knows how to edit, but which has grown slow and clunky. Rather than throw it all away, we work in PHP to clean up the theme, replace bloated plugins with lean custom code, tighten security and put Cloudflare caching in front. The team carries on editing exactly as before, but the site loads faster, ranks better and is far less likely to be hacked. They keep what works and lose what doesn't, without the cost and disruption of a full rebuild. (Illustrative, every build is scoped to your goals.)
Better together
How PHP fits with the rest of our stack
WordPress
The PHP platform we use it with most
Learn moreMySQL
The database PHP and WordPress typically run on
Learn moreAstro
Can sit in front of WordPress as a fast front end
Learn moreJavaScript
Handles browser-side interactivity PHP can't
Learn moreCloudflare
Caches and secures the PHP sites we host
Learn morePHP: your questions answered
Is PHP outdated?
No, that's a common myth. Modern PHP (version 8 and up) is fast, well-supported and actively developed, and it still powers a huge portion of the web through WordPress, Laravel and more. Plenty of older PHP code is dated, but the language itself is very much current.
Do I need PHP if my site is on WordPress?
Effectively yes, WordPress is built in PHP, so any real customisation of themes, plugins or functionality happens in PHP under the bonnet. You don't need to know it yourself, but whoever maintains the site does, which is where we come in.
Is a PHP/WordPress site secure?
It can be, with the right care. Most WordPress security problems come from out-of-date plugins and weak hosting, not PHP itself. We keep installs lean, patched and behind Cloudflare, which removes the most common attack routes and keeps the site safe.
Why does HDC use PHP?
Because so much of the web, including WordPress, runs on it, and many clients already have sites and systems built in it. We use PHP to build, customise and maintain WordPress sites and to keep existing PHP systems running well, rather than forcing a client into an expensive rebuild they don't need.
Should my new site be built in PHP or something else?
It depends. If you need a non-technical team editing content daily, WordPress on PHP is often the right call. If it's a fast marketing or brochure site, we'll usually build on Astro for speed and SEO, sometimes with WordPress behind it as a headless CMS, giving you the best of both.
Can you take over an existing PHP site you didn't build?
Yes. A lot of our PHP work is exactly that, inheriting a WordPress or custom PHP site, auditing it, fixing what's slow or insecure, and bringing it up to a standard where it performs and can be maintained safely going forward.
Want PHP working for your business?
Tell us what you're trying to achieve, we'll show you, honestly, whether it's the right tool and how we'd apply it.
Enquire now