Why PHP is still a strong choice
PHP is easy to dismiss and hard to replace. It runs most of the web, it has changed a great deal in the 8.x series, and it is cheap to deploy almost anywhere. Every figure on this page links to its source, with the date the source shows.
Most of the web runs on it
W3Techs surveys websites and reports which server-side language each one uses, where it can tell. PHP is used by 67.8% of the websites whose server-side language it knows. The next two languages in the same survey are JavaScript at 9.1% and Ruby at 7.4%.
Within PHP sites, 69.7% run version 8, so most of that web is on the modern language. WordPress alone runs 38.3% of all websites.
For a framework this matters in practical ways: hosts support PHP by default, operations teams know how to run it, and there is a large pool of developers who can read your code.
A modern, typed language
PHP ships a release every year, and the 8.x series changed how PHP code is written. Types, enums, readonly data and attributes make intent explicit, which helps people and agents read code correctly. Taphra requires PHP 8.2 or later and uses them: attributes declare MCP tools, an enum selects the lock backend, and readonly classes carry billing results.
| Release | Introduced |
|---|---|
| PHP 8.0 | Attributes, Just-in-time compilation (JIT), Union types, Named arguments, match expressions |
| PHP 8.1 | Enumerations, Readonly properties, Fibers, First-class callable syntax |
| PHP 8.2 | Readonly classes |
| PHP 8.3 | Typed class constants |
| PHP 8.4 | Property hooks, Asymmetric visibility |
| PHP 8.5 | Pipe operator |
| PHP 8.6 | Partial function application, clamp(), SortDirection enum, Readonly property defaults |
Supported versions
Each PHP branch gets two years of active support, then two years of security fixes. Taphra 1.0 runs on PHP 8.2, 8.3 and 8.4, and CI tests all three. PHP 8.2 receives security fixes until 31 December 2026, so start new projects on 8.4.
| Branch | State today | Active support until | Security fixes until |
|---|---|---|---|
| PHP 8.2 | Security fixes only | Ended | 31 December 2026 |
| PHP 8.3 | Security fixes only | Ended | 31 December 2027 |
| PHP 8.4 | Active support | 31 December 2026 | 31 December 2028 |
| PHP 8.5 | Active support | 31 December 2027 | 31 December 2029 |
| PHP 8.6 | Active support | 31 December 2028 | 31 December 2030 |
Each request starts clean
In the classic PHP model every request gets a fresh process state and throws it away at the end. Nothing leaks from one visitor to the next, a crash affects one request, and you scale by adding processes behind a load balancer. There is no event loop to block and no shared memory to guard.
The cost is that every request boots the application again. PHP's opcache keeps compiled code in memory, and Taphra's php taphra optimize goes further: it compiles configuration, routes and translations into PHP arrays and writes an opcache preload script, so each boot does less work.
Worker mode when boot time matters
FrankenPHP is a PHP application server built on Caddy. In worker mode it boots your application once and hands each request to the warm app. The PHP Foundation announced official support for FrankenPHP in May 2025, and the project now lives in the PHP organisation on GitHub.
Taphra's skeleton includes a worker entry point, app/Static/frankenphp-worker.php. It resets per-request state such as the request ID and database connections, and it falls back to an ordinary single request under PHP-FPM, so the same code runs in both.
:8080 {
root * /var/www/my-app/app/Static
php_server {
worker frankenphp-worker.php
}
}It runs almost anywhere
A PHP app is a folder of files and a web server that knows PHP. That runs on shared hosting, a small VPS or a container platform, and moving between them rarely means rewriting code. There is no build step for the server side.
Taphra adds what you need to package it: Docker files in the starter apps and php taphra make:dockerfile to generate one for your app.
A deep package ecosystem
Composer and Packagist give PHP a mature dependency system. Packagist lists 484,382 packages and 6,151,466 versions, and has counted 218,474,335,633 installs since April 2012.
Shared standards from the PHP-FIG mean libraries fit together. Taphra builds on them: PSR-4 autoloading, PSR-7 messages, PSR-15 middleware, PSR-11 containers, PSR-3 logging and PSR-16 caches. Any library that speaks those interfaces plugs in, and Taphra's own packages work in other frameworks.