Symfony 4 Setup - MiguelFieira/AMO-HANDBOEK GitHub Wiki

Symfony is a PHP framework for web applications and a set of reusable PHP components. Symfony is used by thousands of web applications (including BlaBlaCar.com and Spotify.com) and most of the popular PHP projects (including Drupal and Magento).

Project Setup

Before we start make sure XAMPP is running Apache & MySQL!!!

Xampp


1. Start by navigating "C:\xampp\htdocs" in your terminal of preference ("CMD is recommended").

composer create-project symfony/website-skeleton:4.4.* my-project

// This will install a skeleton project of Symfony in htdocs

2. Open your code editor of preference and open the terminal in the editor ("VSCode or PhpStorm is recommended")

3. Navigate to your new project we just created "C:\xampp\htdocs\my-project"

composer require symfony/web-server-bundle --dev

// This will install a local web-server for this project.

4. To start the local web server make sure to install the web-server-bundle ("step 3") first!

php bin/console server:run

// This will start your local web environment

Result

Result // This should be the result if you did everything correctly.

Continue with adding a Controller

⚠️ **GitHub.com Fallback** ⚠️