Masterclass by les-tilleuls.coop

fren
Chargement de la formation
HomeOur trainingsDiscover Symfony 5
Discover Symfony 5

Discover Symfony 5

Symfony is a powerful, Open Source framework that enables to develop complex applications as per the web best practices, in an efficient and sustainable manner. Used by key accounts such as Deezer, Dailymotion, Blablacar or Spotify, it is the reference tool for building structured, robust and scalable applications. Thanks to this beginner’s Symfony training course, smoothly learn the basics, get an overview of its functionalities and mechanisms together with our experts.

Program


1 - PHP 7 and beyond

  • Classes and objects
  • Constructor and destructor
  • Property and methods
  • Heritage
  • Visibility
  • Interface
  • Namespaces
  • Traits
  • Exceptions

2 - Discovering Symfony 5

  • Components
  • Component usage
  • List of components
  • The Full Stack framework
  • The micro-framework
  • Symfony Flex
  • Creating a new project
  • Directory structure
  • The built-in Web server
  • The concept of environment
  • The bundles
  • Searching for bundles
  • Installing a bundle
  • Enabling a bundle
  • Configuring a bundle
  • Using a bundle

3 - Debugging your code

  • Installing the debugging tools
  • The "Web Debug Toolbar"
  • PSR-3 and the built-in logger
  • Installing and configuring Monolog
  • Exceptions and “stack trace”
  • The "Var Dumper" component

4 - Application configuration

  • The environnment variables
  • The .env files
  • The different configuration formats (YAML, XML, PHP, annotations)
  • Best practices
  • The framework configuration
  • The router configuration
  • Other configurable elements
  • Overriding part of a bundle

5 - Twig template engine

  • Template
  • Controllers
  • Twig, PHP or JavaScript for the view layer?
  • Syntax: basics, tags, filters, functions
  • Template heritage
  • Template inclusion
  • Controller inclusion

6 - About controllers

  • Manipulating the HTTP request
  • Redirection (template, internal redirection)
  • Throwing a 404 error
  • Setting and accessing cookies
  • The user session
  • The flash bag and how to use it
  • Twig: the app variable

7 - Forms

  • The form component
  • Storing data
  • Displaying the form
  • Rendering prototyping
  • Processing the form (email sending)
  • Validating the data
  • Reusable form
  • Bootstrap theme

8 - Translations

  • The translation component
  • Choosing the default language
  • Translating Twig views
  • Extracting the strings for translation in XLIFF
  • Plurals and placeholders
  • From a controller