示例
2026/5/14小于 1 分钟
示例
Perry PHP 的实际应用示例。每个示例都有在线演示(生成的 HTML/JS)和文档(逐步指南)。
| 示例 | 在线演示 | 文档 | 平台 |
|---|---|---|---|
| 计算器 | 运行 → | 指南 | macOS, Web, Windows, Android, Linux |
| 计数器 | 运行 → | 指南 | 所有平台 |
| 待办列表 | 运行 → | 指南 | macOS, Web |
| Pry — JSON 查看器 | 运行 → | 指南 | Windows (WebView2), macOS, Web |
| 功能展示 | 运行 → | — | Web, macOS, Windows |
| 特性演示 | 运行 → | 指南 | Web, macOS, Windows, Android, Linux |
所有示例都在 examples/ 目录中,可直接运行:
# 生成代码
php examples/calculator.php web > output.html
# 构建原生应用
php examples/calculator.php macos --build
php examples/pry.php windows --build