Slide 1

Slide 1 text

A  Glimpse  of Muhammadali Shaduli www.shaduli.com

Slide 2

Slide 2 text

ü  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

Slide 3

Slide 3 text

What  is  Symfony  2  ?

Slide 4

Slide 4 text

ü  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.

Slide 5

Slide 5 text

Really,  What  is  it  ?

Slide 6

Slide 6 text

² Wri@en  for  PHP  5.3  . ² Anonymous  Functions  and  Closures ² Late  Static  Binding ² Standalone  Components ² Born  from  a  company  called  SensioLabs

Slide 7

Slide 7 text

Does  not  reinvent  the   wheel

Slide 8

Slide 8 text

² Doctrine ² PHPUnit ² SwiftMailer ² Twig

Slide 9

Slide 9 text

The  Components

Slide 10

Slide 10 text

²  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  

Slide 11

Slide 11 text

What  is  Symfony  2   framework  ?

Slide 12

Slide 12 text

Project  Structure

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

Application  Flow

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

Routes

Slide 17

Slide 17 text

² blog_show  can  be  anything ² pa@ern  –  uri  to  match ² defaults  –  controller  shortcut

Slide 18

Slide 18 text

Controllers

Slide 19

Slide 19 text

² Goal  is  to  always  return  HNpResponse  Object

Slide 20

Slide 20 text

Views

Slide 21

Slide 21 text

² Very  extensible

Slide 22

Slide 22 text

Doctrine  (Models)

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

How  do  we  use  it  ?

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

Looking  up  entities

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

Many  More… ² Services ² Dependency  Injection ² Console  Commands ² Security ² Forms ² Unit  Testing

Slide 29

Slide 29 text

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

Slide 30

Slide 30 text

No content