Open Source Web Technologies


Published on

Presentation on Zend-Framework for php & Google Gears

Published in: Education
  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Open Source Web Technologies

  1. 1. `Q 1Q Starting the learning curve with Open Source Web Technologies Zend-Framework GoogleGears
  2. 2. Zend FrameWork <ul><li>Zend Framework is an open source object oriented web application framework impelmented in PHP5. </li></ul><ul><li>This frameworks seeks to promote web developement best practices among the php community </li></ul><ul><li>Zend provides Zend engine for PHP for free </li></ul>
  3. 3. Key Features <ul><li>Simplicity </li></ul><ul><ul><li>Maintainability & extensibility-->reusing components . </li></ul></ul><ul><ul><li>Fully Documented . </li></ul></ul><ul><ul><li>Simple & rapid development . </li></ul></ul><ul><ul><li>.Follows MVC pattern . </li></ul></ul><ul><li>Showcase Current Trends </li></ul><ul><ul><li>Web Services </li></ul></ul><ul><ul><li>Ajax </li></ul></ul><ul><ul><li>Search </li></ul></ul>
  4. 4. <ul><ul><ul><li>Zend components Classification </li></ul></ul></ul>
  5. 5. Zend Framework Installation <ul><ul><ul><li>Switch to user </li></ul></ul></ul><ul><li> Sudo apt-get install zend-framework </li></ul><ul><li>Add to include_path in php.ini file </li></ul><ul><ul><li>php_value include_path '.:/usr/share/php/libzend-framework-php' </li></ul></ul><ul><ul><li>cd /var/www/ </li></ul></ul><ul><ul><li>Test on command line </li></ul></ul><ul><ul><li>Zf create project Places </li></ul></ul>
  6. 6. What is MVC? <ul><li>Model : The ”stuff” you are using in the application data, web services, feeds etc. </li></ul><ul><li>View: The display returned to the user </li></ul><ul><li>Controller : Manages the request & determines what </li></ul><ul><li>happens </li></ul>
  7. 7. User Enters in the form Controller directs to db Db searches out Finds the reqd. And sends back the data MVC module in real time User to The view Controller Model database View to the user
  8. 8. MVC Flow
  9. 9. Zend-framework Anatomy <ul><li>Top level Directories </li></ul><ul><li>Application </li></ul><ul><li>Library </li></ul><ul><li>Public </li></ul><ul><li>tests </li></ul>
  10. 10. Zend bootstrap File
  11. 12. From Online to Offline <ul><li>Browser – plugin </li></ul><ul><li>Cost </li></ul><ul><ul><li>Open Source </li></ul></ul><ul><ul><li>Lightweight installation necessary </li></ul></ul><ul><ul><li>Application stays completely in the browser, no extra app/start up </li></ul></ul><ul><li>Offline are also Necessary </li></ul><ul><ul><li>Internet unavailable? </li></ul></ul><ul><ul><li>Don’t want the data in the clouds? </li></ul></ul><ul><ul><li>Response time? </li></ul></ul><ul><li>Fill the gaps between online and offline </li></ul>
  12. 13. Offline Architecture Text
  13. 14. Offline Tools <ul><li>In the past </li></ul><ul><ul><li>Dojo Storage, Derby/JavaDB, Zimbra </li></ul></ul><ul><li>Today </li></ul><ul><ul><li>Adobe AIR </li></ul></ul><ul><ul><li>Google Gears </li></ul></ul><ul><ul><li>Microsoft Silverlight </li></ul></ul><ul><li>Coming Soon </li></ul><ul><ul><li>FireFox 3 </li></ul></ul><ul><ul><li>HTML5 Working Draft </li></ul></ul><ul><ul><li>Client-side database storage </li></ul></ul>
  14. 15. Detecting & Installing Gears <ul><ul><li><script src=&quot;gears_init.js&quot;></script> </li></ul></ul><ul><ul><li><script> </li></ul></ul><ul><ul><li>if (! || !google.gears) { </li></ul></ul><ul><ul><li>location.href = &quot;<your welcome message>&quot; + </li></ul></ul><ul><ul><li>&quot;&return=<your website url>&quot;; </li></ul></ul><ul><ul><li>} </li></ul></ul><ul><ul><li></script> </li></ul></ul>
  15. 16. Components Local Sever Let web applications interact naturally with your desktop Database Store data locally in a fully-searchable database WorkerPool Run JavaScript in the background to improve performance
  16. 17. LocalServer <ul><li>Specialized URL Cache </li></ul><ul><ul><li>Requests for URLs in the LocalServer’s cache are intercepted and served locally from the user’s disk </li></ul></ul><ul><li>RecourseStore (Manual Update) </li></ul><ul><li>ManagedResourceStore </li></ul><ul><li>(Automatic Update) </li></ul><ul><li>Manifest File </li></ul>
  17. 18. DataBase <ul><li>Open source SQLite Database </li></ul><ul><li>Simplified SQL Syntax </li></ul><ul><li>Full-text Search </li></ul>
  18. 19. Workerpool <ul><li>Time-intensive processes can be run in the background </li></ul><ul><li>UI stays responsive/browser doesn’t block </li></ul><ul><li>No warning dialog “Unresponsive Script” </li></ul>
  19. 20. Example
  20. 21. Example
  21. 22. Applications Gmail Calendar Maps SpreadSheet Reader Google Gears Docs
  22. 23. Conclusions <ul><li>It opens a lot of doors to developers looking to bridge the narrowing gap between desktop and web-based applications. </li></ul><ul><li>Google Gears is an open source plugin that aims to push the Web forward </li></ul><ul><li>• The components are simple to use </li></ul><ul><li>• You need to think about your architecture </li></ul><ul><li> </li></ul><ul><li> </li></ul><ul><li>Thanks for your time : ) </li></ul>
  23. 24. Thank You !