Examples
6/28/26Less than 1 minute
Examples
Run the examples from the project root:
php examples/all-components.php # Full demo with 6 tabs showing all widgets
php examples/menu.php # Declarative vs imperative menu APIs
php examples/webview.php # WebView with sidebar, JS ↔ PHP bridgeall-components.php
Demonstrates every widget in this package across 6 tabs:
- Fields — all input field types
- Custom — ToggleSwitch, StatusIndicator, CircleProgressBar
- Dialogs — MessageBox, DialogConfirm, DialogPrompt, Toast
- Pickers — Color, Font, Date, Time pickers
- Table — Tabular data with TableView
- WebView — TreeView and CodeEditor
Test Files
Additional test scripts in examples/ for individual features:
| Script | Feature |
|---|---|
test-fields.php | Field component tests |
test-widgets.php | Custom widget tests |
test-pickers.php | Picker dialog tests |
test-circle-progress.php | Circle progress bar |
test-treeview.php | TreeView widget |
test-codeeditor.php | CodeEditor widget |
test-tray.php | System tray |
test-context-menu.php | Context menu (area and standard) |
test-global-hotkey.php | Global hotkey registration |
toast-test.php | Toast notification |
test-system-info.php | System information |
test-log.php | Log viewer |
test-process-util.php | Process utility |
test-svg.php | SVG rendering |
test-debug-bridge.php | Bridge debugging |
test-set-icon.php | App icon setting |