Download - A Glymse of Symfony 2
![Page 1: A Glymse of Symfony 2](https://reader034.vdocuments.us/reader034/viewer/2022051611/54b7730a4a795985568b4638/html5/thumbnails/1.jpg)
A Glimpse of
Muhammadali Shaduli www.shaduli.com
![Page 2: A Glymse of Symfony 2](https://reader034.vdocuments.us/reader034/viewer/2022051611/54b7730a4a795985568b4638/html5/thumbnails/2.jpg)
ü 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](https://reader034.vdocuments.us/reader034/viewer/2022051611/54b7730a4a795985568b4638/html5/thumbnails/3.jpg)
What is Symfony 2 ?
![Page 4: A Glymse of Symfony 2](https://reader034.vdocuments.us/reader034/viewer/2022051611/54b7730a4a795985568b4638/html5/thumbnails/4.jpg)
ü 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](https://reader034.vdocuments.us/reader034/viewer/2022051611/54b7730a4a795985568b4638/html5/thumbnails/5.jpg)
Really, What is it ?
![Page 6: A Glymse of Symfony 2](https://reader034.vdocuments.us/reader034/viewer/2022051611/54b7730a4a795985568b4638/html5/thumbnails/6.jpg)
² 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](https://reader034.vdocuments.us/reader034/viewer/2022051611/54b7730a4a795985568b4638/html5/thumbnails/7.jpg)
Does not reinvent the wheel
![Page 8: A Glymse of Symfony 2](https://reader034.vdocuments.us/reader034/viewer/2022051611/54b7730a4a795985568b4638/html5/thumbnails/8.jpg)
² Doctrine
² PHPUnit
² SwiftMailer
² Twig
![Page 9: A Glymse of Symfony 2](https://reader034.vdocuments.us/reader034/viewer/2022051611/54b7730a4a795985568b4638/html5/thumbnails/9.jpg)
The Components
![Page 10: A Glymse of Symfony 2](https://reader034.vdocuments.us/reader034/viewer/2022051611/54b7730a4a795985568b4638/html5/thumbnails/10.jpg)
² 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](https://reader034.vdocuments.us/reader034/viewer/2022051611/54b7730a4a795985568b4638/html5/thumbnails/11.jpg)
What is Symfony 2 framework ?
![Page 12: A Glymse of Symfony 2](https://reader034.vdocuments.us/reader034/viewer/2022051611/54b7730a4a795985568b4638/html5/thumbnails/12.jpg)
Project Structure
![Page 13: A Glymse of Symfony 2](https://reader034.vdocuments.us/reader034/viewer/2022051611/54b7730a4a795985568b4638/html5/thumbnails/13.jpg)
![Page 14: A Glymse of Symfony 2](https://reader034.vdocuments.us/reader034/viewer/2022051611/54b7730a4a795985568b4638/html5/thumbnails/14.jpg)
Application Flow
![Page 15: A Glymse of Symfony 2](https://reader034.vdocuments.us/reader034/viewer/2022051611/54b7730a4a795985568b4638/html5/thumbnails/15.jpg)
![Page 16: A Glymse of Symfony 2](https://reader034.vdocuments.us/reader034/viewer/2022051611/54b7730a4a795985568b4638/html5/thumbnails/16.jpg)
Routes
![Page 17: A Glymse of Symfony 2](https://reader034.vdocuments.us/reader034/viewer/2022051611/54b7730a4a795985568b4638/html5/thumbnails/17.jpg)
² blog_show can be anything
² pa@ern – uri to match
² defaults – controller shortcut
![Page 18: A Glymse of Symfony 2](https://reader034.vdocuments.us/reader034/viewer/2022051611/54b7730a4a795985568b4638/html5/thumbnails/18.jpg)
Controllers
![Page 19: A Glymse of Symfony 2](https://reader034.vdocuments.us/reader034/viewer/2022051611/54b7730a4a795985568b4638/html5/thumbnails/19.jpg)
² Goal is to always return HNpResponse Object
![Page 20: A Glymse of Symfony 2](https://reader034.vdocuments.us/reader034/viewer/2022051611/54b7730a4a795985568b4638/html5/thumbnails/20.jpg)
Views
![Page 21: A Glymse of Symfony 2](https://reader034.vdocuments.us/reader034/viewer/2022051611/54b7730a4a795985568b4638/html5/thumbnails/21.jpg)
² Very extensible
![Page 22: A Glymse of Symfony 2](https://reader034.vdocuments.us/reader034/viewer/2022051611/54b7730a4a795985568b4638/html5/thumbnails/22.jpg)
Doctrine (Models)
![Page 23: A Glymse of Symfony 2](https://reader034.vdocuments.us/reader034/viewer/2022051611/54b7730a4a795985568b4638/html5/thumbnails/23.jpg)
![Page 24: A Glymse of Symfony 2](https://reader034.vdocuments.us/reader034/viewer/2022051611/54b7730a4a795985568b4638/html5/thumbnails/24.jpg)
How do we use it ?
![Page 25: A Glymse of Symfony 2](https://reader034.vdocuments.us/reader034/viewer/2022051611/54b7730a4a795985568b4638/html5/thumbnails/25.jpg)
![Page 26: A Glymse of Symfony 2](https://reader034.vdocuments.us/reader034/viewer/2022051611/54b7730a4a795985568b4638/html5/thumbnails/26.jpg)
Looking up entities
![Page 27: A Glymse of Symfony 2](https://reader034.vdocuments.us/reader034/viewer/2022051611/54b7730a4a795985568b4638/html5/thumbnails/27.jpg)
![Page 28: A Glymse of Symfony 2](https://reader034.vdocuments.us/reader034/viewer/2022051611/54b7730a4a795985568b4638/html5/thumbnails/28.jpg)
Many More… ² Services
² Dependency Injection
² Console Commands
² Security
² Forms
² Unit Testing
![Page 29: A Glymse of Symfony 2](https://reader034.vdocuments.us/reader034/viewer/2022051611/54b7730a4a795985568b4638/html5/thumbnails/29.jpg)
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](https://reader034.vdocuments.us/reader034/viewer/2022051611/54b7730a4a795985568b4638/html5/thumbnails/30.jpg)