HackerTrans
トップ新着トレンドコメント過去質問紹介求人

donnikitos

no profile record

投稿

Show HN: Modern PHP development with Vite, it's ecosystem and PHP components

github.com
4 ポイント·投稿者 donnikitos·8 か月前·2 コメント

コメント

donnikitos
·8 か月前·議論
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.