Open php in browser

I am using Linux Mint and none of the ‘open’ or ‘view’ in browser packages are working. I am using Atom for php devleopment. How can I open my php files with the project folder url in the browser? For example, I am working a file called “test.php”. I want to open it in either Brave or Firefox with the url : http://localhost/php/test.php . What package will allow me to do that?