A simple, basic and quick project to test and embed svelte components inside a php site.
Also, using phroute and caching for the controllers.
Main versions used so far :
No SvelteKit !
The goal is to use Svelte for the front, and keep PHP for the back. Svelte has to be multi-components, that could be use in PHP views.
There is two main building stages for this :
$ /usr/bin/time --verbose --output=./benchmark-vite.time.txt make build-vite
$ /usr/bin/time --verbose --output=./benchmark-rollup.time.txt make build-rollup
Some headache with make, as the project was done under wsl. That's why winshell is hard coded. Not a big deal to change for other os.
Got some troubles with /bin/sh
and aliases to windows system, while everything works fine in command line...
The server runs the PHP internal server. Only for testing usage !!!
It means also there is not security at all on the server architecture. www/
directory should be the only document root of the site.