Comment

Comment by donnikitos

Laravel’s plugin is tightly coupled to Laravel’s build system (Blade, mix manifest, etc.). vite-plugin-php is framework-agnostic — it works with plain PHP or any other custom setup. In comparison: you do not need custom instructions to load assets, supported by Vite or it's plugins. It basically brings the normal Vite dev experience (HMR, asset resolution) to PHP projects.

The PHP-component system is a simpler way to work with partials and without an additional templating language liek Blade — think of it like JSX, but for PHP. You use JSX like syntax, then it compiles down to normal PHP calls.

parent donnikitos 1 year ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton