a glymse of symfony 2
DESCRIPTION
An Introduction to SymfonyTRANSCRIPT
A Glimpse of
Muhammadali Shaduli www.shaduli.com
ü 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
What is 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.
Really, What is it ?
² Wri@en for PHP 5.3 .
² Anonymous Functions and Closures
² Late Static Binding
² Standalone Components
² Born from a company called SensioLabs
Does not reinvent the wheel
² Doctrine
² PHPUnit
² SwiftMailer
² Twig
The Components
² 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
What is Symfony 2 framework ?
Project Structure
Application Flow
Routes
² blog_show can be anything
² pa@ern – uri to match
² defaults – controller shortcut
Controllers
² Goal is to always return HNpResponse Object
Views
² Very extensible
Doctrine (Models)
How do we use it ?
Looking up entities
Many More… ² Services
² Dependency Injection
² Console Commands
² Security
² Forms
² Unit Testing
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