Is there any editor or IDE that has a live preview option for Php

-1

Does anyone know of any editor or IDE that has a live preview feature for php, in the case of a live preview that automatically displays the result in the browser, without saving the file, ie live and direct, as I type a code that already appears simultaneously I'm looking for a Php, For html, css and js the Brackets are working for me, But for Php this is giving error I've tried several editors and ides did not work It may be one that has partial live preview (which has to save the Php file)

    
asked by anonymous 30.11.2018 / 18:19

1 answer

1

Look, I also do not know one that does in real time but in a similar way you can install the Browser Sync plugin for VSCODE (actually any IDE with terminal ).

I have done with the terminal Node.Js by putting: npm install -g browser-sync

After completing the installation you can go to your open project in VSCode and press CTRL + " to open a terminal and type:

browser-sync start --proxy localhost/nomedoseuprojeto --f . server

browser-sync start: initializes;

- proxy_name : As is PHP and browser-sync uses port :3000 , you need to specify the local path of it.

- f. : arrow the current project folder to open.

Whenever you give a CTRL + S to a change, it reloads the page quickly and displays the changes. It is ideal if you are using 2 screens where one is your IDE and the other is the browser.

I hope I have helped.

Att

    
30.11.2018 / 18:48