Examples
5/14/26Less than 1 minute
Examples
Practical examples showing Perry PHP in action. Each example has a Live Demo (generated HTML/JS) and Docs (step-by-step guide).
| Example | Live Demo | Docs | Platforms |
|---|---|---|---|
| Calculator | Run → | Guide | macOS, Web, Windows, Android, Linux |
| Counter | Run → | Guide | All platforms |
| Todo List | Run → | Guide | macOS, Web |
| Pry — JSON Viewer | Run → | Guide | Windows (WebView2), macOS, Web |
| Showcase | Run → | — | Web, macOS, Windows |
| Feature Demo | Run → | Guide | Web, macOS, Windows, Android, Linux |
All examples are in the examples/ directory and can be run directly:
# Generate code
php examples/calculator.php web > output.html
# Build native app
php examples/calculator.php macos --build
php examples/pry.php windows --build