Course : PHP 5: Web Development with Symfony 2

PHP 5: Web Development with Symfony 2

Download in PDF format Share this course by email 2

Download in PDF format Share this course by email 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
Price : 2070 € E.T.
  3d - 21h00




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

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.

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.

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.

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.

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.

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.

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.


Dates and locations
Select your location or opt for the remote class then choose your date.
Remote class