Official registry bm-* packages only
Every part
for PHP
firmware.
Extensions, device drivers, platform HALs and PHP engine extensions for php-baremetal. See what each package pulls in, and which platform it builds on.
Not a general-purpose Composer repository: projects list it with
"canonical": true and require the
conductor plugin.
phpbm init sets both up.
$ composer global require php-baremetal/phpbm$ composer global require php-baremetal/conductor$ phpbm sdk:install esp32
Once per machine
$ phpbm init$ composer require php-baremetal/ext-gpio$ phpbm build$ phpbm flash
In each firmware project
Does it build
on your platform?
Extensions ask for a slot; each platform fills it with a HAL. A gold pad is a published HAL, an empty one is a HAL waiting to be written. Boards come from each SDK and from board packages.
| Needs (slot) | ESP32 |
|---|---|
| events-hal for esp32-i2c-hal, ext-display, ext-events, ext-wifi | esp32-events-hal |
| gpio-hal for ext-gpio | esp32-gpio-hal |
| i2c-hal for ext-i2c, touch-gt911 | esp32-i2c-hal |
| ledstrip-hal for ext-led | esp32-ledstrip-hal |
| spi-hal for ext-spi | esp32-spi-hal |
| store-hal for ext-store | esp32-store-hal |
| sys-hal for ext-sys | esp32-sys-hal |
| web-hal for ext-web | esp32-web-hal |
| wifi-hal for ext-wifi | esp32-wifi-hal |
| Packages that build | 43 of 43 |
HAL published missing: a HAL is welcome
Pick what your
firmware needs.
Every platform gets a verdict, and anything missing is named.
Or pick packages one by one, libraries and PHP extensions tooPick at least one extension to see a verdict.
The project is
its composer.json.
The registry is canonical, so every php-baremetal/* package comes from
here and never from Packagist. conductor stays in require, with
allow-plugins: without it nothing binds the HALs.
{
"name": "acme/blink",
"type": "project",
"repositories": [
{
"type": "composer",
"url": "https://repository.php-baremetal.com",
"canonical": true
}
],
"require": {
"php-baremetal/conductor": "^1.0",
"php-baremetal/ext-sys": "^1.0",
"php-baremetal/ext-gpio": "^1.0"
},
"config": {
"allow-plugins": { "php-baremetal/conductor": true },
"platform": { "php": "8.5.11" }
},
"extra": {
"baremetal": {
"sdk": "esp32@^2.0",
"board": "waveshare-esp32-s3-zero-n8r8",
"runtime": "init-loop",
"storage": "embedded"
}
}
}