Skip to content
php-baremetal REGISTRY
Publish a package

php-baremetal/ext-hello

bm-ext MIT

Demo extension: bm_hello() only, no dependencies.

needs no platform HAL

IDE stubs @ 1.1.0

The PHP declarations of the functions, classes and constants this package adds, with their docblocks, so PhpStorm and Intelephense can complete and type-check your firmware code.

You don't need to download them: on every composer install and composer update, conductor copies them into vendor/php-baremetal/ide-stubs/, which IDEs index without configuration. They are never loaded at runtime.

php ide/ext-hello.stub
<?php
// php-baremetal/ext-hello 1.1.0 — IDE helper, not loaded at runtime.

namespace {
    /**
     * Returns the fixed greeting "hello from ext-hello package"; it has no state and no side effects.
     *
     * Use it to check that a project builds its packages in.
     *
     * @return string The greeting "hello from ext-hello package".
     * @throws \ArgumentCountError When called with any argument.
     */
    function bm_hello(): string {}
}
Download ext-hello.php