AiPBX
Product Features Integrations
Install Mobile
Resources Docs FAQ & Tech Why PHP? Videos
Try Contact Sponsor on GitHub UpCloud ($250 Free Credit) YouTube GitHub

Why not Node.js and React? The honest answer

The admin portal is PHP on purpose: it is a control plane, the audio runs in C, Go and Python, and a one-command install with no build chain matters more to a PBX than the framework. Where the critics are right, and when we would change course.

Home / FAQ & Tech / Why not Node.js and React? The honest answer
DESIGN DECISION · WHY PHP

What the portal actually does

The PHP portal is the control plane: forms, tables, REST CRUD and writing the Asterisk configuration when you press Apply. It never touches a live call. SIP, RTP, WebRTC and queues run in Asterisk (C), real-time chat in Go, and the live AI voice agents and local speech models in Python and C++. The phone apps are native Kotlin and Swift. So the question is not "PHP or Node for a phone system" but "which tool is best for a settings portal", and there boring and stable wins.

What PHP gives a phone system

One command installs the whole PBX: there is no package.json, no node_modules and no bundler in the portal, and an update replaces files. The portal needs little memory (see Why PHP? for the sizing). More than 1,600 PHPUnit tests and phpstan run on every change, and the interface is plain JavaScript files served as they are, so nothing breaks because a build tool or a dependency moved on. A PBX is expected to run for years without attention; fewer moving parts is the feature.

Where the critics are right

Fewer developers want to contribute in PHP than in TypeScript, and a single-page app can feel smoother on live screens. We see both. Today the live screens use plain JavaScript and WebSockets (the chat is a separate Go service), and the portal speaks a documented REST API (OpenAPI 3.1) and signed webhooks. If a screen needs rich live state, we add a small JavaScript layer to that screen only, instead of rewriting everything.

Why we do not rewrite it

A rewrite would replace working, tested pages and the interface text in more than 20 languages with new code, and the user would get the same portal. Frameworks also change faster than a phone system should. The effort is better spent on calls, AI agents and integrations. If you prefer TypeScript, build on /api/v1: a React front-end or a connector does not need a line of PHP.

Honest note: PHP is a choice for the control plane, not a claim that it is the best language for everything. Real-time audio is never in it.
REST API v1 & Webhooks Why PHP? (Architecture) All Technologies