Course : PHP 5: Web Development with Symfony 2

Practical course - 3d - 21h00 - Ref. PYM
Price : 2150 CHF E.T.

PHP 5: Web Development with Symfony 2






INTER
IN-HOUSE
CUSTOM

In person or remote class
Available in English on request

Ref. PYM
  3d - 21h00
2150 CHF E.T.







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.


Publication date : 01/25/2024


Dates and locations

Last places available
Guaranteed date, in person or remotely
Guaranteed session
From 8 to 10 June 2026
FR
Remote class
Registration
From 8 to 10 June 2026
EN
Remote class
Registration
From 7 to 9 December 2026
FR
Remote class
Registration
From 7 to 9 December 2026
EN
Remote class
Registration

REMOTE CLASS
2026 : 8 June, 8 June, 7 Dec., 7 Dec.