Open Source Web Technologies

Post on 04-Jul-2015

1.690 views 0 download

description

Presentation on Zend-Framework for php & Google Gears

Transcript of Open Source Web Technologies

`Q 1Q

Starting the learning curvewith

Open Source Web TechnologiesZend-Framework

GoogleGears

Zend FrameWork

•Zend Framework is an open source object oriented web application framework impelmented in PHP5.

•This frameworks seeks to promote web developement best practices among the php community

•Zend provides Zend engine for PHP for free

Key Features

Simplicity

Maintainability & extensibility-->reusing components .

Fully Documented . Simple & rapid development ..Follows MVC pattern .

Showcase Current Trends

Web ServicesAjaxSearch

Zend components Classification

Zend Framework Installation

• Switch to user Sudo apt-get install zend-framework

Add to include_path in php.ini file– php_value include_path '.:/usr/share/

php/libzend-framework-php'

cd /var/www/ – Test on command line– Zf create project Places

What is MVC?

Model : The ”stuff” you are using in the application data, web services, feeds etc.

View: The display returned to the userController : Manages the request & determines whathappens

User toThe view

ControllerModel

databaseView to the

user

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

MVC Flow

Zend-framework Anatomy

• Top level Directories

• Application

• Library

• Public

• tests

Zend bootstrap File

From Online to Offline

Browser – plugin CostOpen SourceLightweight installation necessaryApplication stays completely in the browser, no extra app/start up

Offline are also NecessaryInternet unavailable?

Don’t want the data in the clouds?

Response time?

Fill the gaps

Text

Offline Architecture

Offline Tools

In the past Dojo Storage, Derby/JavaDB, Zimbra

Today Adobe AIR Google Gears Microsoft Silverlight

Coming Soon FireFox 3 HTML5 Working Draft Client-side database storage

Detecting & Installing Gears

<script src="gears_init.js"></script>

<script>

if (!window.google || !google.gears) {

location.href = "http://gears.google.com/?action=install&message=<your welcome message>" +

"&return=<your website url>";

}

</script>

Components

Local SeverLet web applications interact naturally with your desktop

DatabaseStore data locally in a fully-searchable database

WorkerPoolRun JavaScript in the background to improve performance

LocalServer

Specialized URL Cache Requests for URLs in the LocalServer’s cache are intercepted

and served locally from the user’s disk

RecourseStore (Manual Update) ManagedResourceStore (Automatic Update)

Manifest File

DataBase

Open source SQLite Database

Simplified SQL Syntax

Full-text Search

Workerpool

Time-intensive processes can be run in the background

UI stays responsive/browser doesn’t block No warning dialog “Unresponsive Script”

Example

Example

Applications

Gmail

Calendar

Maps

SpreadSheet

Reader

Google Gears

Docs

Conclusions

It opens a lot of doors to developers looking to bridge the narrowing gap between desktop and web-based applications. Google Gears is an open source plugin that aims to push the Web forward• The components are simple to use

• You need to think about your architecture

http://code.google.com/apis/gears/

http://gears.google.com/

Thanks for your time : )