22
Symfony2: Quick Start

Symfony2: Quick Start (by Kirill Shtimmerman) - Hack'n'Tell PHP - 2015.09.26

Embed Size (px)

Citation preview

Page 1: Symfony2: Quick Start (by Kirill Shtimmerman) - Hack'n'Tell PHP - 2015.09.26

Campaign

proposal

Symfony2: Quick Start

Page 2: Symfony2: Quick Start (by Kirill Shtimmerman) - Hack'n'Tell PHP - 2015.09.26

What is Symfony2 ?

Page 3: Symfony2: Quick Start (by Kirill Shtimmerman) - Hack'n'Tell PHP - 2015.09.26

What is Symfony2 ?

Symfony is a set of PHP Components, a Web Application framework, a Philosophy, and a Community — all working together in harmony.

Page 4: Symfony2: Quick Start (by Kirill Shtimmerman) - Hack'n'Tell PHP - 2015.09.26

What is Symfony2 ?

Symfony Framework

Symfony Components

Symfony Community

Symfony Philosophy

Page 5: Symfony2: Quick Start (by Kirill Shtimmerman) - Hack'n'Tell PHP - 2015.09.26

What is Symfony2 ?

Symfony Framework The leading PHP framework to create websites and web applications. Built on top of the Symfony Components.

Symfony Components

Symfony Community

Symfony Philosophy

Page 6: Symfony2: Quick Start (by Kirill Shtimmerman) - Hack'n'Tell PHP - 2015.09.26

What is Symfony2 ?

Symfony Framework The leading PHP framework to create websites and web applications. Built on top of the Symfony Components.

Symfony Components A set of decoupled and reusable components on which the best PHP applications are built on, such as Drupal, phpBB and eZ Publish.

Symfony Community

Symfony Philosophy

Page 7: Symfony2: Quick Start (by Kirill Shtimmerman) - Hack'n'Tell PHP - 2015.09.26

What is Symfony2 ?

Symfony Framework The leading PHP framework to create websites and web applications. Built on top of the Symfony Components.

Symfony Components A set of decoupled and reusable components on which the best PHP applications are built on, such as Drupal, phpBB and eZ Publish.

Symfony Community A huge community of Symfony fans committed to take PHP to the next level.

Symfony Philosophy

Page 8: Symfony2: Quick Start (by Kirill Shtimmerman) - Hack'n'Tell PHP - 2015.09.26

What is Symfony2 ?

Symfony Framework The leading PHP framework to create websites and web applications. Built on top of the Symfony Components.

Symfony Components A set of decoupled and reusable components on which the best PHP applications are built on, such as Drupal, phpBB and eZ Publish.

Symfony Community A huge community of Symfony fans committed to take PHP to the next level.

Symfony Philosophy Embracing and promoting professionalism, best practices, standardization and interoperability of applications.

Page 9: Symfony2: Quick Start (by Kirill Shtimmerman) - Hack'n'Tell PHP - 2015.09.26

Symfony 2 Framework

Page 10: Symfony2: Quick Start (by Kirill Shtimmerman) - Hack'n'Tell PHP - 2015.09.26

Is Symfony2 an MVC framework?

Symfony2 is an HTTP framework; it is a Request/Response framework. That's the big deal. The fundamental principles of Symfony2 are centered around the HTTP specification.

“ Fabien Potencier

Page 11: Symfony2: Quick Start (by Kirill Shtimmerman) - Hack'n'Tell PHP - 2015.09.26

Symfony2 architecture is based on two key subsystems: - Event Dispatcher - Dependency Injection Container (DIC)

How it works?

Page 12: Symfony2: Quick Start (by Kirill Shtimmerman) - Hack'n'Tell PHP - 2015.09.26

Event Dispatcher

Page 13: Symfony2: Quick Start (by Kirill Shtimmerman) - Hack'n'Tell PHP - 2015.09.26

Request/Response flow

Page 14: Symfony2: Quick Start (by Kirill Shtimmerman) - Hack'n'Tell PHP - 2015.09.26

Dispatch the Event

Page 15: Symfony2: Quick Start (by Kirill Shtimmerman) - Hack'n'Tell PHP - 2015.09.26

Dependency Injection Container

Page 16: Symfony2: Quick Start (by Kirill Shtimmerman) - Hack'n'Tell PHP - 2015.09.26

What is DI?

In software engineering, dependency injection is a software design pattern that implements inversion of control for resolving dependencies. Dependency injection means giving an object its instance variables.

Page 17: Symfony2: Quick Start (by Kirill Shtimmerman) - Hack'n'Tell PHP - 2015.09.26

Constructor Injection

Service class definition

Service config definition

Page 18: Symfony2: Quick Start (by Kirill Shtimmerman) - Hack'n'Tell PHP - 2015.09.26

Setter Injection

Service class definition

Service config definition

Page 19: Symfony2: Quick Start (by Kirill Shtimmerman) - Hack'n'Tell PHP - 2015.09.26

Symfony Standard Edition

Page 20: Symfony2: Quick Start (by Kirill Shtimmerman) - Hack'n'Tell PHP - 2015.09.26

l  l  l  l  SensioFrameworkExtraBundle – templates, routing, annotations l  DoctrineBundle – integration with Doctrine ORM l  TwigBundle – integration with Twig l  SecurityBundle – security component integration l  SwiftmailerBundle – bridge to swiftmailer library l  MonologBundle - logging l  AsseticBundle – asset processing l 

Symfony Standard package

Page 21: Symfony2: Quick Start (by Kirill Shtimmerman) - Hack'n'Tell PHP - 2015.09.26

¿ Questions ?

Page 22: Symfony2: Quick Start (by Kirill Shtimmerman) - Hack'n'Tell PHP - 2015.09.26

THANK YOU