Slide 1

Slide 1 text

Mobile Web With Zend Framework Shaun Farrell Friday, February 1, 13

Slide 2

Slide 2 text

What’s Covered? • Mobile vs. Native • Pie Chart • Some Random Shit • Development with Zend Framework Friday, February 1, 13

Slide 3

Slide 3 text

The Mobile Web Definition: The Mobile Web refers to using a mobile phone handset device incorporating a web browser to access the webs. Basically, the freaking intra webs on your phone! Friday, February 1, 13

Slide 4

Slide 4 text

Native vs. Web Friday, February 1, 13

Slide 5

Slide 5 text

Mobile vs Native (continued) Mobile Native Openness Free Sometimes Cost $0 $0 to $99 Revenue 100% Depends Releases Instant 1-2 Wks Approval None Depends Coding Anything Depends Friday, February 1, 13

Slide 6

Slide 6 text

Why go Native? • Performance • Offline Mode • Findability - App Stores • Monetization • Designed for THAT device • Game Development Friday, February 1, 13

Slide 7

Slide 7 text

Why Go Web? • Develop in your Language • Development Process Quicker (sometimes) • You can do more with HTML5 • Develop Once! • No Approval Process - Do whatever the hell you want to do! Friday, February 1, 13

Slide 8

Slide 8 text

Pie Chart 32% 33% 35% Web Downloaded Other Reston-based comScore tracks mobile usage. In September (2010), 35 percent of mobile phone subscribers used a Web browser. A slightly smaller portion, 33 percent, used downloaded apps. http://www.washingtonpost.com/wp-dyn/content/article/2010/11/19/AR2010111906267.html Friday, February 1, 13

Slide 9

Slide 9 text

Random Shit (Quotes Actually) http://www.washingtonpost.com/wp-dyn/content/article/2010/11/19/AR2010111906267.html "Native apps have been the buzz for the past few years and will continue to be a big focus area for developers and companies, however, mobile Web will be the predominate way most people consume mobile content" Pete Erickson, the director of innovation at Disruptathon Friday, February 1, 13

Slide 10

Slide 10 text

Random Shit (Quotes Actually) One of many announcements made at Google's I/O developer conference (2009) was about a still-forthcoming development in the Android mobile operating system: browser apps will be given access to local hardware capabilities. http://www.readwriteweb.com/archives/the_impact_of_googles_exposure_of_hardware_to_mobile_web_apps.php Friday, February 1, 13

Slide 11

Slide 11 text

Random Shit (Quotes Actually) As mobile browsers mature the need for mobile apps will decrease for a lot of cases. There will always be a need if your business is selling the app itself, but I would think a lot of the free native apps will just move to being mobile web apps. The mobile web will become more and more relevant as more and more platforms come online. Nicholas Tolson - Facebook DC Tech Group Brian Williams - Facebook DC Tech Group Friday, February 1, 13

Slide 12

Slide 12 text

Zend Framework • WURFL • Zend Framework • Zend_Http_UserAgent • Context Switching • MVC Friday, February 1, 13

Slide 13

Slide 13 text

WURFL What is it? XML configuration file which contains information about capabilities and features of many mobile devices. Where? www.wurfl.com It has an API! Friday, February 1, 13

Slide 14

Slide 14 text

Context Switching In Zend Framework: The ContextSwitch action helper is intended for facilitating returning different response formats on request. Mostly used with WebServices to switch fromats (json vs xml) Custom Contexts - Specify suffix, headers, and callbacks Works with Views Friday, February 1, 13

Slide 15

Slide 15 text

Zend_Http_UserAgent • New in Zend Framework 1.11 • Helps identify the user’s user agent • This is how you detect a Mobile Device! • Works hand in hand with WURFL Friday, February 1, 13

Slide 16

Slide 16 text

Cool Features (Zend_Http_UserAgent) • getDevice() • getBrowserType() • getAllFeatures() • hasFlashSupport() • hasPdfSupport() • hasPhoneNumber() • httpsSupport() Friday, February 1, 13

Slide 17

Slide 17 text

Example Code Friday, February 1, 13

Slide 18

Slide 18 text

Front Controller Plugin Friday, February 1, 13

Slide 19

Slide 19 text

Front Controller Plugin (continued) Friday, February 1, 13

Slide 20

Slide 20 text

My Controller View Folder Friday, February 1, 13

Slide 21

Slide 21 text

Contact • E-Mail: [email protected] • www.kapustabrothers.com • www.farleyhills.com Friday, February 1, 13