xp-lang/xp-static
Composer 安装命令:
composer require xp-lang/xp-static
包简介
XP static initializer blocks
关键字:
README 文档
README
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.
Example
namespace com\example\brotli; class Streams { static { stream_wrapper_register('brotli', self::class); } // ... }
Installation
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.
See also
统计信息
- 总下载量: 1.17k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2021-12-19

