a glymse of symfony 2

30
A Glimpse of Muhammadali Shaduli www.shaduli.com

Upload: shaduli

Post on 15-Jan-2015

157 views

Category:

Technology


3 download

DESCRIPTION

An Introduction to Symfony

TRANSCRIPT

Page 1: A Glymse of Symfony 2

A  Glimpse  of

Muhammadali Shaduli www.shaduli.com

Page 2: A Glymse of Symfony 2

ü  PHP  Developer  since  2003. ü  Symfony  Developer  since  2008 ü  Open  source  Consultant ü  Trainer ü  Lead  Developer  at  Como  Group  Asia  Pacific  Pte.  Ltd. ü  A  loving  Husband  and  Father  

About  Me

Page 3: A Glymse of Symfony 2

What  is  Symfony  2  ?

Page 4: A Glymse of Symfony 2

ü  Symfony2  is  a  PHP  Web  Development  framework.

ü  Symfony2  is  a  reusable  set  of  standalone,  decoupled,  and  cohesive  PHP  components  that  solve  common  web  development  problems.

ü  Then,  based  on  these  components,  Symfony2  is  also  a  full-­‐‑stack  web  framework.

Page 5: A Glymse of Symfony 2

Really,  What  is  it  ?

Page 6: A Glymse of Symfony 2

² Wri@en  for  PHP  5.3  .

² Anonymous  Functions  and  Closures

² Late  Static  Binding

² Standalone  Components

² Born  from  a  company  called  SensioLabs

Page 7: A Glymse of Symfony 2

Does  not  reinvent  the  wheel

Page 8: A Glymse of Symfony 2

² Doctrine

² PHPUnit

² SwiftMailer

² Twig

Page 9: A Glymse of Symfony 2

The  Components

Page 10: A Glymse of Symfony 2

²  BrowserKit   ²  ClassLoader   ²  Config   ²  Console   ²  CssSelector   ²  Debug           ²  DependencyInjection ²  DomCrawler   ²  EventDispatcher   ²  Filesystem   ²  Finder   ²  Form         ²  H@pFoundation   ²  H@pKernel  

²  Locale   ²  Intl   ²  Icu   ²  OptionsResolver   ²  Process   ²  PropertyAccess   ²  Routing   ²  Security   ²  Serializer   ²  Stopwatch   ²  Templating   ²  Translation   ²  Validator         ²  Yaml  

Page 11: A Glymse of Symfony 2

What  is  Symfony  2  framework  ?

Page 12: A Glymse of Symfony 2

Project  Structure

Page 13: A Glymse of Symfony 2
Page 14: A Glymse of Symfony 2

Application  Flow

Page 15: A Glymse of Symfony 2
Page 16: A Glymse of Symfony 2

Routes

Page 17: A Glymse of Symfony 2

² blog_show  can  be  anything

² pa@ern  –  uri  to  match

² defaults  –  controller  shortcut

Page 18: A Glymse of Symfony 2

Controllers

Page 19: A Glymse of Symfony 2

² Goal  is  to  always  return  HNpResponse  Object

Page 20: A Glymse of Symfony 2

Views

Page 21: A Glymse of Symfony 2

² Very  extensible

Page 22: A Glymse of Symfony 2

Doctrine  (Models)

Page 23: A Glymse of Symfony 2
Page 24: A Glymse of Symfony 2

How  do  we  use  it  ?

Page 25: A Glymse of Symfony 2
Page 26: A Glymse of Symfony 2

Looking  up  entities

Page 27: A Glymse of Symfony 2
Page 28: A Glymse of Symfony 2

Many  More… ² Services

² Dependency  Injection

² Console  Commands

² Security

² Forms

² Unit  Testing

Page 29: A Glymse of Symfony 2

Training  Sessions ² Object  Oriented  PHP ² HTTP ² Symfony  2  Architecture ² Standardization ² Bundle  Best  Practices ² Controllers ² Routing ² Twig ² Forms ² Validation ² Dependency  Injection ² Security ² HTTP  Caching ² Command  Line  Interface ² Automated  Testing ² Error  Management  and  Debugging

Page 30: A Glymse of Symfony 2