Realdolmen Education

Details

PHP Symfony2 Advanced

This course is currently not scheduled on the open calendar, but can be organized on request.

Request Course

Duration

2 day(s)

Audience

PHP developers who wish to know more about Symfony2 development.

Prerequisites

Having knowledge of PHP and basic Symfony2.

Objectives

At the end of the course, participants will have a deeper knowledge of Symfony2, and will be able to use Symfony2 in practical development.

Methods

Classroom training with hands-on exercises.

Description

If you selected this course, you probably already know about the advantages of using a PHP framework such as Symfony2. If not, we recommend that you follow the course SYM210 PHP Symfony2 Basic, to help you to get started with Symfony2. But if you want to learn a little bit more about the framework and its more advanced features, this course is for you!

In the Symfony2 Basic course, you have learned how to get started with Symfony2 development. You have seen how to install and configure the framework, you have created Controllers and Templates and you haved added Routing and Forms. But in practice, a production-ready application needs much more. This course will introduce you to the components that will help you attain the next level of Symfony2 development.

To develop more reusable code, you will benefit from using Dependency Injection. During this chapter, the course will show you how to create loosely coupled components and services, and how to combine them to create applications. The chapter on the Form framework, will continue where you left off during the basic Symfony2 course. You will learn how to combine Forms and Doctrine, how to use embedded forms, and how to theme them. As your application grows, performance may become an issue. The chapter on HTTP Cache will show you how you can improve the performance of your application. Afterwards, you will be introduced to the Testing component. While not the most interesting topic, testing can be very satisfying, as it will give you more confidence in the quality of your project. The course also includes a chapter on Security, with authentication and authorization and on Translations. The different chapters will be put into practice during hands-on exercises.

At the end of the course, you will be ready to create high quality enterprise application with Symfony2!

Contents

  • Introduction
    • Symfony2 Overview
    • Symfony2 Components
  • Dependency Injection
    • The Dependency Injection Container
    • Creating and Configuring Services
    • Parameters
    • Importing Configurations
    • Injecting Services
    • Making References Optional
    • Tags
    • Debugging Services
  • Form Framework
    • Form Review
    • Forms and Doctrine
    • Embedded Forms
    • Form Theming
    • Cross Site Request Forgery Protection
    • Using a Form without a Class
  • HTTP Cache
    • Caching Principles
    • The Cache Control Header
    • Public vs. Private Responses
    • Safe Methods
    • Caching Rules and Defaults
    • HTTP Expiration and Validation
    • Using Edge Side Includes
    • Cache Invalidation
  • Testing
    • PHPUnit
    • Unit Tests
    • Functional Tests
    • Working with the Test Client
    • The Crawler
    • Testing Configuration
  • Templating
    • Template Inheritance and Layouts
    • Tags and Helpers
    • Global Template Variables
    • Configuring the Template Service
    • Overriding Bundle and Default Templates
    • Output Escaping
    • Template Formats
  • Security
    • Authentication
    • Authorization
    • Firewalls and Access Control
    • Login Forms
    • Users and Roles
    • Logging Out
    • Stateless Authentication
    • Utilities
  • Translations
    • Internationalization
    • Configuration
    • Message Placeholders
    • Pluralization
    • Translations in Templates
    • Fallbacks
    • Translating Constraint Messages
    • Translating Database Content
  • Summary