August 25, 2022 https://tauri.app/ is an exciting alternative to Electron for building cross-platform desktop applications. While not as mature as Electron and still missing some features, it offers a fresh approach via its lightweight bundle sizes and superior performance.
Next I'll explain the basic concept for 2-way communication between Tauri and a PHP app via serialized JSON data.
To compile a PHP project simply navigate to the project at the command line and run box compile.
To keep it simple, I'll create a basic PHP project which takes a string argument when invoked, and responds with a JSON encoded string.