SF2C6 | Web Development with the Symfony Components for Drupal

  • This three days training course is the best starting point for all PHP developers who wish to get ready with Drupal 8 or simply want to improve their knowledge in object oriented web development. During these three days, you will learn how to build a full featured web application with some of the Symfony Core components and also discover some of the best web development practices. This training workshop is available online. Contact us and we'll tell you how.
  • Prerequisites

    Good knowledge of PHP language and object oriented design
  • Goals

    This training course is targeted to PHP developers who wish to improve their knowledge of PHP and object oriented programming. This is also the best starting point to get started with PHP web development on top of the Drupal 8 CMS. In only three days, take the Symfony Core components into your hands and learn how to build modern and evolutive web applications.

Full program

HTTP, Composer and Symfony

  • HTTP protocol and client / serveur interactions
  • Industrialising PHP (PSRs, coding conventions, coding styles)
  • Introduction to the Symfony framework
  • The Symfony community
  • The Symfony components
  • Introduction to Composer
  • Installing the Symfony components with Composer

The HttpFoundation Component

  • The Request object
  • The Response object
  • The Session object
  • The Cookie object
  • Reading the request parameters
  • Generating and modifying the response
  • Sending the response to the client
  • Dealing with the user's session
  • Triggering HTTP redirects

The Routing Component

  • Introduction to routing
  • The Router object
  • The RouteCollection object
  • The Route object
  • Configuring routes in the router
  • Matching routes with the router
  • Generating urls based on the routing configuration
  • Mapping parameters with a route
  • Constrainting urls parameters with requirements

The HttpKernel Component

  • The HttpKernelInterface interface
  • The HttpKernel object
  • The ControllerResolver object
  • Creating an application kernel
  • Converting the request into a response
  • Matching the current request
  • Executing a controller
  • Generating a response
  • Handling 404 error pages
  • Handling 500 error pages

The EventDispatcher Component

  • Introduction to the Observer design pattern
  • The EventDispatcher object
  • Dispatching events in the application
  • Connecting listeners to dispatched events
  • Extending the application with the event dispatcher
  • Using events and listeners to filter the request and the response

The DependencyInjection Component

  • Introduction to dependency injection
  • The service container object
  • Configuring the service container
  • Registering services into the container
  • Requesting a service to the container
  • Storing global configuration parameters in the container

Introduction to the Twig template engine

  • Installing Twig with Composer
  • Rendering a template with Twig
  • Passing variables to the Twig template
  • Using template inheritance to avoid code duplications
  • Filters, functions, macros, operators, testers and tags
  • Variables management with the dot notation
  • Creating Twig extensions
  • Duration

    3 day(s)
  • Level

  • Available languages

    French, English
  • Available countries

    France, Worldwide
From €1,690.00
No session scheduled

No session is scheduled for this course. However we organize tailored training courses: contact us for more informations!