Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

matt_panton's avatar

How to use vue-cli with php

This may sound like a really silly question but I'm struggling to figure out how to run php on a vue project created with vue-cli (webpack template). When I run npm run dev it will serve the index.html file and auto-inject the built js file into the page, I believe it is served on a node server so if I include a .php file in the project it just doesn't work.

Any help would be much appreciated.

0 likes
1 reply

Please or to participate in this conversation.