DEVELOPBY UNEXPECTED MAKER

Develop

Languages, development tools and ready-made projects for your next build.

If this is your first time using an Unexpected Maker development board, please check out the Getting Started guide → first.

Languages / platforms

Choose your language and development tools. Runtime support varies by chip; follow the linked project’s hardware requirements and board setup.

PHP

Run the PHP engine on ESP32-S3/P4 with external PSRAM and 8 MB or more flash.

Choose your MCU

1

Install phpflash

PHP on ESP32 runs the PHP engine on an ESP32-S3 with external PSRAM and 8 MB or more flash. The phpflash tool builds and flashes it. Download the phpflash release for your computer and put it on your path.

2

Set up and create a project

Install the build tools and firmware sources once, then create a project:

phpflash system-setup
phpflash init my-project
cd my-project

Your PHP code goes in project-src/index.php.

3

Enter download mode

Connect the board with a USB data cable and close any serial monitor. Enter download mode before flashing.

1Hold BOOT

Keep BOOT pressed.

2Tap RESET

Press and release RESET while still holding BOOT.

3Release BOOT

Select the download-mode port on your computer.

There is no LED signal to confirm download mode. Check your computer’s serial-port list instead.

4

Build, flash and monitor

Build the firmware, flash it and watch the serial output:

phpflash build
phpflash flash
phpflash monitor

When flashing finishes, press RESET to start the new firmware.

Deployable projects

Ready-made firmware and connected applications for lighting, sensors and home automation. Follow each project’s supported hardware and configuration guide.