Plugin for the XP Compiler which adds a static initializer syntax for PHP. This is compiled to __static() functions recognized by the XP class loading mechanism.
namespace com\example\brotli;
class Streams {
static {
stream_wrapper_register('brotli', self::class);
}
// ...
}After installing the XP Compiler into your project, also include this plugin.
$ composer require xp-framework/compiler
# ...
$ composer require xp-lang/xp-static
# ...No further action is required.

