Integrating <ul><li>symfony and Zend Framework </li></ul>PHPNW, Manchester, 10-10-2009
About me <ul><li>Stefan Koopmanschap </li></ul><ul><li>PhpBenelux secretary </li></ul><ul><li>symfony Community Manager </...
Frameworks <ul><li>Why? </li></ul><ul><li>Which? </li></ul>
symfony
Zend Framework
integrate
Zend Framework in symfony projects
Getting set up
Getting set up
A quick Twitter call away <ul><li>Blog application </li></ul><ul><li>New way of commenting: via Twitter </li></ul><ul><li>...
Send comment
Send comment
Send comment
Comment
Show comments
Show comments
Show comments
Search
Search <ul><li>index my posts </li></ul><ul><li>provide search option </li></ul>
Zend Search Lucene
Index
Index
Index
Index
Search
Index
Search
Search
Search
Recycle <ul><li>Abstract into plugins </li></ul><ul><li>Plugins are PEAR packages </li></ul><ul><li>symfony CLI can instal...
Recycle <ul><li>Zend_Mail </li></ul><ul><li>Zend_OpenId </li></ul><ul><li>Zend_Cache </li></ul><ul><li>Zend_Search_Lucene ...
symfony in Zend Framework projects
Wait, huh? <ul><li>symfony (full stack framework) </li></ul><ul><li>symfony components </li></ul>
Introducing Symfony Components <ul><li>completely decoupled components </li></ul><ul><li>initial work for symfony 1.1 </li...
YAML <ul><li>Yaml library </li></ul><ul><li>Yaml to PHP arrays </li></ul><ul><li>PHP arrays to Yaml </li></ul><ul><li>Adva...
YAML
YAML
Event Dispatcher <ul><li>Observer design pattern </li></ul><ul><li>Create events </li></ul><ul><li>Register actions </li><...
Event Dispatcher bootstrap code from http://www.survivethedeepend.com/
Event Dispatcher
Dependency Injection <ul><li>Dependency Injection container </li></ul><ul><li>Based on Spring framework </li></ul><ul><li>...
Dependency Injection Example from Ben Eberlei (he rocks!): http://www.whitewashing.de/blog/articles/118
Templating <ul><li>Common templating options </li></ul><ul><li>Object Oriented approach to views </li></ul><ul><li>Helpers...
Request Handler <ul><li>coming soon </li></ul>
More ... <ul><li>There is much more in the symfony stack </li></ul>
Integration <ul><li>No need to limit yourself </li></ul><ul><li>Pick the right base </li></ul><ul><li>Use external resourc...
Frameworks <ul><li>Zend Framework </li></ul><ul><li>Symfony Components </li></ul><ul><li>ezComponents </li></ul><ul><li>PE...
Questions?
<ul><li>http://www.leftontheweb.com </li></ul><ul><li>http://twitter.com/skoop </li></ul><ul><li>http://slideshare.net/sko...
Upcoming SlideShare
Loading in...5
×

Integrating symfony and Zend Framework (PHPNW09)

1,529

Published on

My Integrating symfony and Zend Framework talk, as done at PHPNW09 in Manchester

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,529
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Transcript of "Integrating symfony and Zend Framework (PHPNW09)"

  1. 1. Integrating <ul><li>symfony and Zend Framework </li></ul>PHPNW, Manchester, 10-10-2009
  2. 2. About me <ul><li>Stefan Koopmanschap </li></ul><ul><li>PhpBenelux secretary </li></ul><ul><li>symfony Community Manager </li></ul><ul><li>Zend Framework Contributor </li></ul>
  3. 3. Frameworks <ul><li>Why? </li></ul><ul><li>Which? </li></ul>
  4. 4. symfony
  5. 5. Zend Framework
  6. 6. integrate
  7. 7. Zend Framework in symfony projects
  8. 8. Getting set up
  9. 9. Getting set up
  10. 10. A quick Twitter call away <ul><li>Blog application </li></ul><ul><li>New way of commenting: via Twitter </li></ul><ul><li>No sfTwitter class </li></ul><ul><li>But wait, there is Zend_Service_Twitter </li></ul>
  11. 11. Send comment
  12. 12. Send comment
  13. 13. Send comment
  14. 14. Comment
  15. 15. Show comments
  16. 16. Show comments
  17. 17. Show comments
  18. 18. Search
  19. 19. Search <ul><li>index my posts </li></ul><ul><li>provide search option </li></ul>
  20. 20. Zend Search Lucene
  21. 21. Index
  22. 22. Index
  23. 23. Index
  24. 24. Index
  25. 25. Search
  26. 26. Index
  27. 27. Search
  28. 28. Search
  29. 29. Search
  30. 30. Recycle <ul><li>Abstract into plugins </li></ul><ul><li>Plugins are PEAR packages </li></ul><ul><li>symfony CLI can install plugins easily </li></ul><ul><li>Many ZF-based plugins already available </li></ul>
  31. 31. Recycle <ul><li>Zend_Mail </li></ul><ul><li>Zend_OpenId </li></ul><ul><li>Zend_Cache </li></ul><ul><li>Zend_Search_Lucene </li></ul>
  32. 32. symfony in Zend Framework projects
  33. 33. Wait, huh? <ul><li>symfony (full stack framework) </li></ul><ul><li>symfony components </li></ul>
  34. 34. Introducing Symfony Components <ul><li>completely decoupled components </li></ul><ul><li>initial work for symfony 1.1 </li></ul><ul><li>now available as seperate libraries </li></ul>
  35. 35. YAML <ul><li>Yaml library </li></ul><ul><li>Yaml to PHP arrays </li></ul><ul><li>PHP arrays to Yaml </li></ul><ul><li>Advanced errors </li></ul>
  36. 36. YAML
  37. 37. YAML
  38. 38. Event Dispatcher <ul><li>Observer design pattern </li></ul><ul><li>Create events </li></ul><ul><li>Register actions </li></ul><ul><li>Actions get triggered </li></ul>
  39. 39. Event Dispatcher bootstrap code from http://www.survivethedeepend.com/
  40. 40. Event Dispatcher
  41. 41. Dependency Injection <ul><li>Dependency Injection container </li></ul><ul><li>Based on Spring framework </li></ul><ul><li>Can contain and instantiate objects </li></ul>
  42. 42. Dependency Injection Example from Ben Eberlei (he rocks!): http://www.whitewashing.de/blog/articles/118
  43. 43. Templating <ul><li>Common templating options </li></ul><ul><li>Object Oriented approach to views </li></ul><ul><li>Helpers, Template autoloading, rendering </li></ul>
  44. 44. Request Handler <ul><li>coming soon </li></ul>
  45. 45. More ... <ul><li>There is much more in the symfony stack </li></ul>
  46. 46. Integration <ul><li>No need to limit yourself </li></ul><ul><li>Pick the right base </li></ul><ul><li>Use external resources </li></ul>
  47. 47. Frameworks <ul><li>Zend Framework </li></ul><ul><li>Symfony Components </li></ul><ul><li>ezComponents </li></ul><ul><li>PEAR </li></ul><ul><li>Prado </li></ul><ul><li>Solar </li></ul><ul><li>many more ... </li></ul>
  48. 48. Questions?
  49. 49. <ul><li>http://www.leftontheweb.com </li></ul><ul><li>http://twitter.com/skoop </li></ul><ul><li>http://slideshare.net/skoop </li></ul>

×