消除多余抽象层,赋予 PHP 原生 C 的执行效率。
运行时级 SSE 支持,完美适配 AI 对话长连接场景。
拥抱 MCP 协议,让 PHP 轻松驾驭 AI 工具调用。
@[php_class]
struct Article {
pub mut:
title string
}
@[php_method]
pub fn (a &Article) get_title() string {
return '[VPhp] ${a.title}'
} $art = new Article("Hello AI");
echo $art->get_title();
// Output: [VPhp] Hello AI