Building This Site in Plain PHP (On Purpose)
No framework, no build step, no 300-megabyte node_modules. Why I built cssec on boring, dependency-free PHP — and what that bought me.
cssec runs on plain PHP 8.3 and MySQL. No framework. No Composer dependencies. No bundler, no transpiler, no node_modules. People find that choice surprising in 2026, so here's the reasoning.
Dependencies are a cost, not a free lunch
Every package you pull in is code you didn't write, don't fully understand, and are now responsible for keeping patched. The supply-chain incidents of the last few years all share a shape: a trusted dependency, deep in a tree nobody audits, turns hostile. For a personal site that I want to still run in five years with minimal maintenance, the most valuable property is boring. Code with no dependencies can't have its dependencies compromised.
What "no framework" actually costs
Less than you'd think. The whole thing is:
- A ~40-line router that maps methods and URL patterns to handlers.
- A thin PDO wrapper for the database.
- A few hundred lines of helpers — CSRF, rate limiting, a safe Markdown renderer.
- Server-rendered PHP templates.
That's it. There's no magic I can't step through in a debugger, and the entire request lifecycle fits in my head.
The security posture I wanted
Building it myself meant I could make deliberate choices at every layer instead of trusting defaults:
- A strict Content-Security-Policy with no inline scripts or styles — which, yes, meant extra work (even the progress bars avoid inline
style), but it closes a whole class of XSS. - A Markdown renderer that escapes first and never passes raw HTML through, so user-supplied content can't inject markup.
- The site runs as its own locked-down system user with a dedicated PHP-FPM pool,
open_basedir, and dangerous functions disabled — so even a hypothetical bug is boxed in. - The database account has only the four verbs it needs: SELECT, INSERT, UPDATE, DELETE.
The build step is: there isn't one
I edit a file, I reload the page. Deploys are a file copy. There is no CI pipeline that can break, no lockfile that can drift, no framework upgrade that rewrites my app every two years. For a site whose job is to last and stay readable, that simplicity is the feature.
Would I recommend it for everything?
No. A big team, a complex app with real-time features, a product that needs to move fast with many hands — frameworks earn their keep there. But for a content site owned by one person who values longevity and control over velocity, boring plain PHP was exactly right. Sometimes the senior move is to use less.