Find what you need.
Quick-start in three minutes, or jump straight to the full package list. Every package is versioned per release; the version selector lives in the docs right-rail.
A few minutes to a running board.
Install the tool, scaffold a project, write your index.php,
flash it. Everything else is a refinement of these steps.
phpflash init my-project
cd my-project
phpflash build
phpflash flash
<?php
function setup(): void {
gpio_mode(2, GPIO_OUTPUT);
}
function loop(): void { gpio_write(2, 1); delay(500); }
Package · version · page.
The hub is a thin index over many independent repositories. Every package picks its own release cadence, and every release ships its own docs tree.
Packages
Each package is one composer-installable library. Find them on the packages page; the docs sidebar shows source provenance, type, GitHub stats and the latest release.
Versions
Each package keeps a master branch tracking trunk plus tagged releases like 0.15.0. The version selector lives in the docs right rail.
Pages
Inside a version, docs are CommonMark with a small set of DMD directives for callouts, code blocks, tabs and steps. The CHANGELOG ships with each tag.
Start here.
The firmware and the tool — start with either.
Esp32 Firmware
php-esp32
php-esp32 is the firmware that brings real PHP to the ESP32 family. It cross-compiles the unmodified PHP/Zend engine from php.net for the microcontroller — not a subset, not a reimplementation — so your index.php executes bare-metal on the chip. It runs today on the ESP32‑P4 (RISC‑V) and ESP32‑S3 (Xtensa), in an Arduino-style init-loop or as an HTTP web server.
Latest
v0.18.x
Flash Tool
flash-tool
The command-line front end for php-esp32 - a single static binary that scaffolds, builds, flashes and monitors your bare-metal PHP project and identifies the connected board. It hard-codes no hardware: boards, chip families and build options are read from the firmware, so it grows with the port. ESP32 today.
Latest
v0.10.x