SF5PACK | Web Development with Symfony 5
- This four-day course dedicated to Symfony is the perfect training to master all the fundamental concepts and the most advanced tools of Symfony 5. At the end of this workshop, we guarantee you will be fully autonomous on the Symfony 5 framework and more!
-
Prerequisites
Mastering PHP essentials -
Goals
This intensive four-day training combines both the « SF5START / Getting Started with Symfony 5 » and « SF5MASTER / Mastering Symfony 5 » courses and covers all the fundamental topics of Symfony 5. You'll start with the basics such as installing Symfony, navigating the directory structure, and generating your very first dynamic web pages with Twig. Then, you will dive more in-depth into more advanced topics and tools. Like forms and data validation, authentication and authorizations, dependency injection, automated testing, and HTTP caching. This training is delivered by our Symfony expert and contributor instructors, who enjoy sharing their experience, best practices as well as tips and tricks to help you be more efficient and autonomous with Symfony 5.
Full program
Introduction
- Overview of the Symfony project, including license, releases, roadmap, guidelines with Symfony framework and useful components as example of doable things.
- Work environment and Symfony command line tool
- Installation of a Symfony project
First steps with Symfony
- How to handle a Request - Response flow
- Create your first web page
- Fine-tune your application routes with parameters and requirements
- Best practises when using controllers and their helpers
Introduction to functional tests
- Explanations about automated tests and functional tests
- Get ready with PHPUnit to run automated tests
- Write your first test to check a status code over a web page
- Use a data provider to provide URLs to be checked
Templating with Twig
- Introduction to Twig
- Learn Twig’s basic syntax
- Use the Dot syntax helper in your templates
- Use Twig to loop over data from a controller and test some conditions to design your web page
- Use layout techniques with inheritance and template inclusions to reduce your template
- Best solutions to get help with the Symfony console and the web profiler
- Create dynamic URLs in your templates to access another web page or link an asset
Web assets with Webpack Encore
- Short introduction to Webpack Encore and Yarn
- Installation and configuration of the required bundle
- Optimize your assets with Webpack Encore
Introduction to Doctrine
- Introduction to the Doctrine ORM and configuration of your project to access the database
- Create your own entities and their mapping with the Symfony maker
- Create and apply migrations to manage the state of your database at anytime
- Handle relations between 2 entities
- Store data in the database by using a controller or a Doctrine fixture for automated tests purpose and
- Retrieve data from the database by using built-in or custom queries
Forms
- Introduction to Symfony forms
- Create your own form with custom types
- Handle submitted data
- Use Symfony built-in constraints to get validated data
Services
- Introduction to dependency injection and Symfony services
- Use the best way to get the list of available services to deal with
- Use the autowiring to inject dependencies on a constructor, a setter or a property
- Check custom configuration of your services
- Services and environment variables
Console
- About console commands, and how to create interactive commands, batch commands…
- Write your own commands
- Use helpers from SymfonyStyle to get life easier
- Declare and handle new options and arguments in your command
Security
- Introduction to Authentication and Authorization in a Symfony project
- Create your own authenticator with Guard
- Check the users’ roles to let them access a given resource
- Create custom voters to handle rare situations requiring a PHP check
Events
- Introduction to events and how to dispatch them in a Symfony project
- Create subscribers to declare listeners
- Important built-in events
- Try an alternative configuration to declare listeners without subscribers
-
Duration
4 day(s)
-
Level
Beginner
-
Available languages
French, English, German, Spanish -
Available countries
Worldwide, France, Germany, Spain, United Kingdom, United States
From €1,492.50
16 upcoming sessions
-
From 26/04
to 29/04/21Paris
France€1,990.00 -
From 03/05
to 06/05/21Online
Europe/Paris€1,791.00 -
From 25/05
to 28/05/21Paris
France€1,990.00 -
From 07/06
to 10/06/21Online
Europe/Paris€1,791.00 -
From 21/06
to 24/06/21Paris
France€1,990.00 -
From 05/07
to 08/07/21Online
Europe/Paris€1,791.00 -
From 26/07
to 29/07/21Paris
France€1,990.00 -
From 09/08
to 12/08/21Online
Europe/Paris€1,791.00 -
From 23/08
to 26/08/21Paris
France€1,990.00 -
From 13/09
to 16/09/21Online
Europe/Paris€1,791.00 -
From 27/09
to 30/09/21Paris
France€1,990.00 -
From 11/10
to 14/10/21Online
Europe/Paris€1,791.00 -
From 25/10
to 28/10/21Paris
France€1,990.00 -
From 02/11
to 05/11/21Online
Europe/Paris€1,791.00 -
From 22/11
to 25/11/21Paris
France€1,990.00 -
From 06/12
to 09/12/21Paris
France€1,990.00
You are not available at this periods? We organize tailored training courses: contact us for more informations!