Back to course

Directory Structure Explained

Symfony 0 to Hero: The Complete 2026 Guide

Understanding the Folders

  • bin/: Contains the console executable.
  • config/: All your YAML/PHP configuration files.
  • public/: The document root (index.php, CSS, JS).
  • src/: Your PHP code (Controllers, Entities).
  • templates/: Your Twig templates.
  • var/: Cache and logs.
  • vendor/: Third-party libraries installed by Composer.