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.

PHP 8 releases and the features they introduced
ReleaseIntroduced
PHP 8.0Attributes, Just-in-time compilation (JIT), Union types, Named arguments, match expressions
PHP 8.1Enumerations, Readonly properties, Fibers, First-class callable syntax
PHP 8.2Readonly classes
PHP 8.3Typed class constants
PHP 8.4Property hooks, Asymmetric visibility
PHP 8.5Pipe operator
PHP 8.6Partial 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.

PHP branches and their support dates
BranchState todayActive support untilSecurity fixes until
PHP 8.2Security fixes onlyEnded31 December 2026
PHP 8.3Security fixes onlyEnded31 December 2027
PHP 8.4Active support31 December 202631 December 2028
PHP 8.5Active support31 December 202731 December 2029
PHP 8.6Active support31 December 202831 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.

Caddyfile
: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.