From the course: Symfony 6 Essential Training

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Symfony project structure

Symfony project structure - Symfony Tutorial

From the course: Symfony 6 Essential Training

Symfony project structure

- [Instructor] Symfony, like most frameworks, has an opinion on how to structure your projects. Let's take a look at the default file structure. There are two ways to get an idea of file structure. On the Symfony Framework best practices page there is a list of the default structure. And while this is helpful, I will take exception with the statement self-explanatory. That's okay. There's a second option that I think is easier anyway. Symfony has a demo application that uses best practices, as well as shows how the directory structure is used. I'll set that up. Start by running Symfony CLI for a new project with a demo flag. I'll open this in the IDE and poke around. Starting from the top, I have assets. As expected, this is where our JS and CSS live. The bin directory is tiny. It's just two helper files for running Symfony console and PHP unit. Next, data. This project has an SQL Lite DB, migration is empty. If I…

Contents