- 1 Introduction and Environment Setup The 'Why' Before the 'How': Why Choose Symfony?Setting Up Your Local PHP and Composer EnvironmentCreating Your First Symfony Project with Symfony CLIDirectory Structure: Finding Your Way Around
- 2 Routing and Controllers: The Core Request Loop Controllers: The Brains of Your ApplicationRouting: Mapping URLs to Actions via PHP AttributesMastering the HttpFoundation: Request and Response ObjectsGenerating URLs and Managing Redirects
- 3 Views and the Twig Templating Engine Introduction to Twig: Syntax and Basic OutputTemplate Inheritance: Building a DRY User InterfaceControl Structures: Ifs, Loops, and Custom FiltersManaging CSS, JS, and Images with the Asset Component
- 4 Database Mastery with Doctrine ORM Understanding ORM and Configuring Doctrine ConnectionsEntities: Mapping PHP Classes to Database TablesDatabase Migrations: Version Control for Your SchemaRepositories: Fetching and Querying Your Data +1
- 5 Form Handling and Data Validation Creating Form Classes and Rendering them in TwigHandling Form Submissions and Processing RequestsThe Validator Component: Enforcing Data Rules with ConstraintsFile Uploads: Handling Images and Documents Securely
- 6 The Service Container and Dependency Injection Demystifying Dependency Injection in SymfonyAutowiring and Autoconfiguration: How the Magic WorksCreating and Registering Custom Reusable ServicesInjecting Configuration Parameters into Your Services
- 7 Security: Authentication and Authorization Configuring the Security Bundle and FirewallsSetting up User Providers and Password HashingBuilding Login Forms and Handling LogoutAuthorization: Roles, Access Control, and Security Voters
- 8 Building APIs and Data Serialization Designing RESTful Endpoints with Symfony ControllersThe Serializer Component: Converting Objects to JSONHandling Incoming JSON Requests and DeserializationA Brief Introduction to API Platform
- 9 The Event Dispatcher and Application Hooks Understanding the Event-Driven ArchitectureTapping into Built-in Kernel EventsCreating and Dispatching Custom Application EventsEvent Subscribers vs. Event Listeners: Best Practices
- 10 Background Jobs with the Messenger Component Why Async? The Motivation Behind Message QueuesCreating Messages and Message HandlersConfiguring Transports: Routing Messages to RabbitMQ or RedisRunning Workers and Handling Failed Messages
- 11 Testing Your Symfony Application PHPUnit Basics and the Symfony Test PackWriting Unit Tests for Services and Business LogicApplication Tests: Simulating HTTP Requests and Web CrawlingDatabase Testing Strategies with DAMA Doctrine TestBundle
- 12 Deployment and Production Readiness Managing Environment Variables and the Secrets VaultCaching Strategies and Performance TuningLogging and Monitoring with MonologStep-by-Step Deployment Best Practices