26 février au 1 mars 2013
Montréal, Canada

Practical Symfony2

The "Practical Symfony2" workshop will help you get started with the Symfony2 full stack framework. From the installation to more advanced features like security and HTTP caching, you will learn how to develop web applications with Symfony2.

The first day will focus on the basic concepts including framework installation, bundles creation, HTTP request handling, routing, session management and templating with Twig.

The second day will focus on some more advanced tools like HTTP caching, service container, authentication, functional testing, forms and validation.

Covered Topics

  1. Symfony Basics
    • Installing Symfony
    • Discovering the architecture
    • Creating and activating bundles
    • HTTP Request handling
    • Passing variables to the view
    • Triggering redirects and 404 errors
    • Reading the user's request
    • Rendering views with Twig template engine
    • Managing the application logic in Controllers
    • Encapsulating the business logic into the Model layer
    • Rendering pages with the View layer and templates
    • Configurating routes in YAML, XML, PHP or annotations
    • Managing cookies and session
  2. Dependency Injection & Service Container
    • Introduction to dependency injection principle
    • Configuring the service container
    • Creating services from an XML description
    • Configuration best practices
  3. Functional testing with PHPUnit
    • Installing PHPUnit
    • Writing simple functional testing files
    • Executing an automated tests suite
    • Generating and analyzing code coverage reports
  4. Dealing with Forms & Validation
    • Creating and processing basic forms
    • Adding validation rules
    • Prototyping forms rendering with Twig
    • Processing forms
  5. Authentication & Authorization
    • Adding a form based authentication
    • Managing users in a database
    • Using roles and account status to restrict pages
  6. HTTP Caching with ESI
    • Introduction to HTTP caching
    • Expiration versus Validation
    • Enabling the Symfony Reverse Proxy Cache
    • Caching pieces of the application with Edge Side Includes
  7. Doctrine Integration
    • Configuring the database connection
    • Generating entity models with the command line
    • Querying the database through repository objects
    • Persisting entities to the database
    • Writing custom SQL queries with the Doctrine Query Builder

Software requirements to attend

Bring your personal laptop with the following software configuration already setup:

  • PHP > 5.3.4 or PHP 5.4.x
  • XDebug
  • MySQL with PDO driver for PHP
  • PHPUnit > 3.7

Hugo Hamon

KODERO

Hugo Hamon is a PHP and Symfony certified developer. He worked nine years for SensioLabs, the creators of Symfony, as a Web developer, head of training and software architect. He's now a full time freelance PHP & Symfony consultant at his own company KODERO.

Read More

Commandité par

Média