php-baremetal sim — PHP on an emulated ESP32-S3
Write PHP 8.5, press Run and watch an emulated ESP32-S3 blink LEDs, read buttons and talk I²C. Nothing to install, nothing to flash.
How it works
- Write index.php: setup() runs once, loop() runs forever.
- Add packages to composer.json from the php-baremetal registry: extensions, drivers, PHP extensions.
- Press Run: the server builds the php-baremetal firmware with phpbm and the emulated chip boots it.
Examples
Based on Velxio by David Montero Crespo (AGPLv3). Source of this site: php-baremetal/php-baremetal-sim.