Get the local environment set up so you can move forward with installing Symfony.
- [Instructor] So let's get started setting up our local environment. The easiest way to do it is to install a bundle that comes with PHP in the database. I'm going to do that with MAMP. I've gone ahead and download it on my desktop and you can download it here. I'm going to go ahead and double-click on the installer and just check Continue or Next on the Wizard. And now we can close Wizard and verify that PHP was installed correctly with php minus v.
And we have PHP version 7 installed. So now we're going to start up our MySQL database. Let's go to Applications, MAMP. So let's start up MAMP. Let's start our servers and now we have MySQL running. Let's confirm it by typing mysql minus user root minus p and we're going to use root for the default. And MySQL is running on our machine. So now we're going to install Composer.
Composer is a library manager for PHP. So let's open up our files, exercise files, resources, and let's open our Composer Installation file. Let's drag it into Visual Studio Code and let's just copy the commands on the command line. Now let's copy the second command. This changes the permission so we can execute Composer as an executable file and now let's move it to our user local bin so we can have Composer available anywhere.
Let's confirm it by typing Composer minus minus version. Now that we have everything installed, I'll be using Visual Studio Code as my ID, but feel free to use any ID of your choice. For Windows environments, we have a version of MAMP, but we could also install either XAMPP, WAMP, or even stand alone versions of PHP and MySQL.
- Installing Symfony
- Setting up the local environment
- Exploring the Symfony file structure
- Creating routes
- Sending parameters to a controller
- Using views
- Updating routes
- Creating templates with Twig
- Data modeling with Symfony
- Demo application deployment