Skip to content

Latest commit

 

History

History
63 lines (51 loc) · 4.38 KB

overview.md

File metadata and controls

63 lines (51 loc) · 4.38 KB
eyebrow SDK · Overview
lede The esp32 SDK builds the real PHP engine into firmware for ESP32-S3 and ESP32-P4 boards. phpbm drives it; you write PHP and pick packages.
see_also
href meta
./getting-started/first-firmware.md
Guide
href meta
./boards/supported-boards.md
Boards
href meta label
source
php-esp32-sdk on GitHub
prev
label href
No previous page
#
next
label href
Your first firmware
./getting-started/first-firmware.md

Overview

php-esp32-sdk (SDK name esp32) runs the unmodified PHP engine on ESP32-S3 and ESP32-P4 boards. It is not a program you run: it is the part of the toolchain that knows the chip. It carries the board descriptions, the recipe that builds PHP for ESP-IDF, the runtimes and storages, and a PHP driver that phpbm calls to build, flash, sync and monitor.

How the pieces fit

Piece Role
phpbm The command-line tool on your computer. It downloads the SDK, checks your project against it and calls its driver. See the phpbm docs.
SDK (esp32) Boards, chips, PHP 8.3 to 8.6 build recipes, runtimes, storages, networks, options, the ESP-IDF host project and the driver.
Your project A Composer project: composer.json with extra.baremetal and the PHP sources in project-src/.
Packages The features: extensions (ext-*), drivers, and php-baremetal/php-<name> packages that switch on a PHP extension. Listed in the registry.
conductor The Composer plugin that installs the packages into .phpbm/packages/, adds the HAL for the SDK's platform and writes the manifest phpbm reads.

The project names the SDK (esp32@^2.0), a board, a runtime and a storage. The SDK turns that into a firmware image built with ESP-IDF v6.1.1.

What it provides

Chips ESP32-S3 (esp32s3), ESP32-P4 (esp32p4)
PHP 8.3, 8.4, 8.5 and 8.6; the minor comes from config.platform.php in composer.json (PHP versions and extensions)
Boards 6 in the SDK (Espressif and generic boards), the Arduino Nano ESP32 in the board package php-baremetal/boards-arduino, 2 Freenove boards in the board package php-baremetal/boards-freenove, the Seeed Studio XIAO ESP32-S3 in the board package php-baremetal/boards-seeed, 9 Waveshare boards in the board package php-baremetal/boards-waveshare (Supported boards)
Runtimes init-loop, event-driven, web-server (Runtimes)
Storages embedded (sources in flash, read-only), microsd (Storage)
Networks wifi, w5500 (SPI Ethernet), emac (on-chip Ethernet), wifi-c6 (Wi-Fi through a companion C6) (Network)
Options network, on-error, restart-delay, firmware-reserve, optimization, power-save, request-timeout; runtimes add loop-interval, port and init (Options)

Memory, flash layout and the partition table are in Memory, flash and partitions; fonts for ext-display are in Fonts; the toolchain phpbm installs for the SDK is in Toolchain.

Requirements

  • A supported board with external PSRAM: every board of the SDK and of its board packages has it, and the firmware is sized for it.
  • A USB cable to the board's serial port.
  • phpbm, the conductor, PHP 8.4 or later and Composer on your computer, plus Python 3.10 or later and about 6 GB of disk for ESP-IDF. Installation is described in the phpbm docs.

Where next