Below are two instances of the block “Simple PHP Block Demo” which has been created entirely using PHP. The purpose of this block is to demonstration PHP-only registration of a custom WordPress block, a feature allowed only beginning with the release of WordPress 7.0 in early 2026.
The GitHub repository for this block contains more details about implementation and installation. An installable zip file containing the code for this block can be downloaded here.