tauri-vite-php

Tauri Vite Php

Tauri/Vite/Svelte demo app which illustrates 2-way communication with a PHP PHAR file

Tauri + Svelte + TS + Vite + PHP

This Tauri example app with a Vite/Svelte front-end shows how you might communicate with a PHP PHAR file.

You can find the Tauri repo here and the PHP repo here. The Tauri repo contains the index.phar binary, however, so the PHP code is mostly for reference.

Dev & build

Follow the Tauri guide to configure dev tooling.

Clone the repo and install dependencies:

npm install

Run in dev or build for prod:

# dev
cargo tauri dev

# build prod
cargo tauri build

🚨 Note that the prod bundle doesn't work yet. The app launches ok but crashes when sending the command to PHP. I suspect it's an issue with the Tauri build config not recognizing index.phar as a dependency..

Top categories

Loading Svelte Themes