Course : PHP 5: Web Development with Symfony 2

PHP 5: Web Development with Symfony 2




In this course, you'll learn how to develop PHP Web applications with the Symfony 2 framework. Among other things, you'll see how to install the framework, create forms and templates, organize your applications via an MVC architecture, work with persistent data, and make access secure.


INTER
IN-HOUSE
CUSTOM

Practical course in person or remote class

Ref. PYM
  3d - 21h00
Price : Contact us




In this course, you'll learn how to develop PHP Web applications with the Symfony 2 framework. Among other things, you'll see how to install the framework, create forms and templates, organize your applications via an MVC architecture, work with persistent data, and make access secure.



Intended audience
PHP developers and project managers.

Prerequisites
Good knowledge of PHP. Basic knowledge of Object-Oriented Programming

Course schedule

1
Overview of the Symfony 2 framework

  • Object-oriented programming refreshers
  • Global overview of Symfony 2.
  • Main concepts, MVC architecture.
  • Installing Symfony 2.
  • Project architecture: Application, bundles, etc.
  • Processing an HTTP query with Symfony 2.
Hands-on work
Examples with Symfony 2.

2
Starting with the Symfony 2 framework

  • Configuring the application and overriding.
  • Command line tools.
  • Code debugging tools: Web Debug Toolbar, etc.
  • Autoloading classes.
Hands-on work
Getting started in the environment. Description of the Web application that will serve as a red line.

3
The “controller layer” and URL management

  • Defining a “controller” and its “actions”.
  • Mapping the controllers to the routing system.
  • Accessing information from the http query.
  • Redirecting to another page, displaying a 404 error page.
  • Routing mechanism and URL management.
  • Injecting dependencies and service containers.
Hands-on work
Setting up the application's controller. Handling query and session information. Implementing the redirect.

4
The “view layer” and the Twig template engine

  • Using templates. Twig template engine.
  • Inheriting templates. Inclusion in templates.
  • Modular templates. Helpers.
Hands-on work
Creating and using templates. Setting up the application's View layer.

5
The Model layer

  • Defining the model and database.
  • Overview of Doctrine 2 (DBAL and ORM).
  • Management of persistent objects.
  • Object querying, accessors, relationships, and associations.
  • Code reworking and business objects.
Hands-on work
Setting up the application's Model layer.

6
Forms and approving them

  • Creating a simple form.
  • Displaying a form in templates.
  • Heightened security with tokens (SCRF).
  • Approving forms.
Hands-on work
Creating forms Adding pages to the red line application. Setting up approval.

7
Going further with the Symfony 2 framework

  • Security, access control, and authentication.
  • Automated tests with PHPUnit.
  • E-mail solution.
  • Web services (SOAP and Rest).
  • Adding new macros, Twig functions.
Hands-on work
Implementation and tests.


Customer reviews
5 / 5
Customer reviews are based on end-of-course evaluations. The score is calculated from all evaluations within the past year. Only reviews with a textual comment are displayed.


Dates and locations

From 23 to 25 June 2025
FR
Remote class
Registration
From 15 to 17 September 2025
FR
Remote class
Registration
From 24 to 26 November 2025
FR
Remote class
Registration