
Setup Database
Open PHPMaker, go to the **Database** tab, enter connection information of your MySQL server.  Click the **Connect** button to load the database information. Tables and fields information will be loaded and displayed on the left hand side.  Generate Scripts Click the **Generate** tab and select the follows: - **Template** - The package that contains the template of the generated pages. Just use the default template shipped with PHPMaker. - **Project folder** - The folder that the generated scripts will reside.  To run PHP you need to setup a website. If you are not familiar with setting up a web server, you can use tools like [WampServer](https://www.wampserver.com/en/) or [XAMPP](https://www.apachefriends.org/index.html). These are **local web server stacks** that bundle PHP, MySQL, and Apache, allowing you to run and test your web applications on your own machine without needing a live hosting environment. If you have not set up your web server for the website at the selected project folder yet, create it first, see [Creating a Website in Wamp/XAMPP Using a Custom Folder](ampstack.html?id=creating-a-website-in-wamp-xampp-using-a-custom-folder). If you have **already** set up your website, you can check **Browse after generation** and enter **Testing URL** as the URL of your website, e.g. `http://localhost/project1`. Click the **Generate** button (or press **F9**), the generation process will begin. Note that during the process you need to download some PHP packages from the internet, so make sure your computer is online. After the web site is generated successfully, the web site should be ready to run. If **Browse after generation** is enabled, PHPMaker will open your browser, and - voila! - you'll see data from your database is displayed in your first PHP website.  After understanding how it works, you can set up your project using the various options provided by PHPMaker to fit your needs. See [Project Setup](projectsetup.html) for full details.Symfony Local Web Server
Another way to test your website in the **development** environment is to use [Symfony local web server](https://symfony.com/doc/current/setup/symfony_cli.html#symfony-cli-server). To run Symfony local web server, you need to install the [Symfony CLI](https://symfony.com/doc/current/setup/symfony_cli.html) first. The Symfony CLI includes a **local web server** designed for development. It's not intended for production use, but it provides features that improve the developer experience. To serve a Symfony project with the local server, open Powershell or command prompt and enter: Then browse the given URL or run the following command to open it in the browser: