Skip to content
php-baremetalPublic

About

Demo extension: bm_hello() only, no dependencies.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

ext-hello

The minimal example extension of php-baremetal. It adds one function, bm_hello(), to the PHP that runs on your board, and nothing else: no hardware, no HAL, no options. Require it to check that a project builds the packages it asks for, or read it as the smallest possible bm-ext package: one C file and a composer.json.

ext-hello is pure: it has no HAL, so it works on every platform.

Install

In a project created with phpbm init:

composer require php-baremetal/ext-hello

Example

<?php
echo bm_hello(), "\n";   // hello from ext-hello package

Documentation

License

MIT.

About

Demo extension: bm_hello() only, no dependencies.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages