This method allows you to view your PHP project in a standalone browser session without relying on VS Code extensions to trigger localhost.
Step 1: Start the Built-in PHP Development Server
Open your terminal inside your project folder using any method above, then run:
Step 2: View the Website in Your Browser
Open Google Chrome, Safari, or any web browser and type the following local URL into the address bar at the top, then press Enter:
The browser will look inside your folder directory and automatically load the main entry file, typically named index.php or index.html.
Step 3: Monitor Real-Time Terminal Activity
As you click around your website or refresh pages in your browser, switch back to your PowerShell or Terminal window. You will see live development server logs printing every requested asset (images, stylesheets, scripts) along with HTTP status codes (such as 200 OK or 404 Not Found).
Step 4: Stopping the Local Server
When you are finished testing your website and want to shut down the server, click back into your PowerShell or Terminal window and press:
Ctrl + C
(This sends an interrupt signal to terminate the php -S background process cleanly).