SlideShare a Scribd company logo
PWA for the PHP Developer
Ben Marks | Senior Evangelist | Magento, an Adobe Company joind.in
Ben Marks // @benmarks // ben@magento.com
© 2019 Adobe. All Rights Reserved.
Why this talk?
1
The Web is still evolving.
_________________
Not unfamiliar to developers or
users, we continue to see changes
in how the Web is built, delivered,
consumed, and experienced.
3
2
PWA is TNGT, sort of.
_________________
So often what is stated to be
TNGT is really TNGH.
PWA is not hype. It is a gentle,
logical evolution borne from best
practices.
3
New tech for new times.
_________________
Some of the most substantial
shifts in Web experience have
started with small technical
additions to the current
technology & techniques.
_________________ _________________ _________________
© 2019 Adobe. All Rights Reserved.
Progressive (Open) Web Application
P
Progressive
_________________
Progressive because of “progressive
enhancement”, and poetically
because of the gradual technical
evolution over time J
4
W
Web
_________________
Web because of the fundamental
base in Web technologies &
delivery: HTTPS, JS, JSON.
Also, they “live” in the Web.
A
Application
_________________
Application because of an app
icon, an app-y entry point, and if
needed, app-y capabilities.
_________________ _________________ _________________
The Web is still Evolving, and the Fundamentals Still Matter
© 2019 Adobe. All Rights Reserved.
Progression of Web content focus over time:
6
Delivery Interactivity Experience
*discoverability is important, but OOS for this presentation
© 2019 Adobe. All Rights Reserved.
<form/>, a.k.a: Interactivity, the Early Years
7
Forms, the original interactive UI
Sou https://medium.freecodecamp.org/a-step-by-step-guide-to-getting-started-with-html-forms-
7f77ae4522b5
© 2019 Adobe. All Rights Reserved.
Early promises of cross-platform rich UI
8
Who remembers Java and Flash applets?
Source: http://weelookang.blogspot.com/2010/06/ejs-open-source-micrometer-java-applet.html
© 2019 Adobe. All Rights Reserved.
Later, HTML5 and JavaScript Displaced Java Applets & Flash
9
JavaScript and HTML5 could provide interactive animation UI
http://weelookang.blogspot.com/2016/11/flight-dynamics-gimbal-javascript-html5.html?view=classic
© 2019 Adobe. All Rights Reserved.
Web Content Evolution: What happened?
§ Web went from just-PC to always-with-me
§ Apps (and walled gardens)
§ Consumers have new expectations for
information in context
10
Credit: AP
© 2019 Adobe. All Rights Reserved.
Later, technologies began to bridge the gap between Web and mobile
11
§ Adobe AIR Applications
§ Windows Store Apps
§ Chrome Packaged Applications
§ Firefox OS Packaged Applications
§ Cordova/PhoneGap + Crosswalk Apps
§ BlackBerry WebWorks Apps
§ W3C Widgets
§ WebOS Apps
§ Chromium Embedded Framework
§ Electron
Source: https://infrequently.org/2015/06/progressive-apps-escaping-tabs-without-losing-our-soul/
PWA is TNGT
© 2019 Adobe. All Rights Reserved.
Current realities: Apps are Popular!
Estimated app downloads in 2018: 205 Billion
13
Source: https://www.statista.com/statistics/271644/worldwide-free-and-paid-mobile-app-store-downloads/
© 2019 Adobe. All Rights Reserved.
Current realities: Apps are getting better are retention
Retention >1 use is improving
14
Source: http://info.localytics.com/blog/21-percent-of-users-abandon-apps-after-one-use
© 2019 Adobe. All Rights Reserved.
Current realities: the Web is Still the Real Deal
§ Most users are on the Web, not in App Stores
§ Apps are heavy in multiple dimensions
§ Acquisition & installation are “frictional”, whether from the Web or in a walled garden
§ App use is a limited context
§ Bandwidth may be a concern
§ Content delivery is complicated by
 a lot
§ Eleventy-billion display form factors
§ Keyboard+mouse vs Touch input
§ Connection quality
§ Advertising, analytic, and developer cruft
15
© 2019 Adobe. All Rights Reserved.
Current realities
§ We have solutions for these challenges of modern delivery & interactivity:
§ RWD
§ Progressive enhancement
§ HTTP/2
§ Progressive Web Apps employ these concepts, adding additional capabilities, and either
requiring or encouraging best practices
16
PWA: New Tech for New Times
© 2019 Adobe. All Rights Reserved.
So, what do we get?
18
Credit: Infrequently.org
§ The answer to this question has evolved over the past
two years
§ Add to homescreen
§ Sync-able & snappy offline functionality
§ Access to the app tray / task switcher
§ Server push: re-engage, background sync
© 2019 Adobe. All Rights Reserved.
A PWA has exactly three requirements

§ Originate from a Secure Origin, i.e. be served
over TLS and no active mixed content
§ Provide an application manifest, i.e. a JSON
file with specific parameters defined
§ Load while offline, i.e. a Service Worker is
required
19
© 2019 Adobe. All Rights Reserved.
A PWA has exactly three requirements

§ Originate from a Secure Origin, i.e. be served
over TLS and no active mixed content
§ Provide an application manifest, i.e. a JSON
file with specific parameters defined
§ Load while offline, i.e. a Service Worker is
required
20
© 2019 Adobe. All Rights Reserved.
A PWA has exactly three requirements

§ Originate from a Secure Origin, i.e. be served
over TLS and no active mixed content
§ Provide an application manifest, i.e. a JSON
file with specific parameters defined
§ Load while offline, i.e. a Service Worker is
required
21
© 2019 Adobe. All Rights Reserved.
Service worker: Registration
22
Source: https://developers.google.com/web/fundamentals/primers/service-workers/
© 2019 Adobe. All Rights Reserved.
Service worker: Install
23
Source: https://developers.google.com/web/fundamentals/primers/service-workers/
© 2019 Adobe. All Rights Reserved.
Service worker: fetch
24
Source: https://developers.google.com/web/fundamentals/primers/service-workers/
© 2019 Adobe. All Rights Reserved.
Use Lighthouse to help with best practices
§ All URLs should respond 200, even when offline
§ Responsive design to handle mobile, tablet, and
PC application
§ First load fast at 3G bandwidth
§ Cross-browser functional
§ Page transitions shouldn’t be blocked (e.g., app-
like response)
§ Each page its own URL
25
Google Lighthouse
https://developers.google.com/web/progressive-web-apps/checklist
© 2019 Adobe. All Rights Reserved.
Be aware of latest limitations, abilities, etc
26
§ https://whatwebcando.today/ - visualize browser+OS capabilities
§ May need to set Chrome flags depending on workflow and OS
§ https://pwa.rocks/ is a nice showcase of several apps for reference
§ Magento’s PWA Studio might be of interest: https://magento-research.github.io/pwa-studio/
© 2019 Adobe. All Rights Reserved.
Grokking PWA
It’s different


but not that different.
It’s not always obvious


but it’s out there already.
There are limitations


but not for long.
27
Credit: Infrequently.org
© 2019 Adobe. All Rights Reserved.
Thank you!
Ben Marks
Senior Evangelist
Magento, an Adobe Company
@benmarks
ben@magento.com
m+WA: +18436704240
28
https://joind.in/talk/59e4c
Agree? Disagree?
What would you like to see?
Join me!

More Related Content

PDF
Magento 2 Module in 50 Minutes
PDF
Magento 2 Development Best Practices
PDF
Your First Magento 2 Module
PDF
Building resuable and customizable Vue components
PPTX
Vue Storefront MUG
PDF
Magento 2: New and Innovative? - php[world] 2015
PPTX
MidwestPHP - Getting Started with Magento 2
PPTX
Performance optimization of vue.js apps with modern js
Magento 2 Module in 50 Minutes
Magento 2 Development Best Practices
Your First Magento 2 Module
Building resuable and customizable Vue components
Vue Storefront MUG
Magento 2: New and Innovative? - php[world] 2015
MidwestPHP - Getting Started with Magento 2
Performance optimization of vue.js apps with modern js

What's hot (20)

PDF
Outlook on Magento 2
PPTX
Imagine recap-devhub
PPTX
PWA basics for developers
PPTX
Vue storefront London PWA meetup
PDF
Sergii Shymko - Code migration tool for upgrade to Magento 2
PPTX
Maintainable design
PPTX
Max Yekaterynenko: Magento 2 overview
PDF
Max Yekaterinenko - Magento 2 & Quality
PPT
12 Amazing Features of Magento 2
PDF
How To Install Magento 2 (updated for the latest version)
PPT
Meet Magento Belarus - Elena Leonova
 
PDF
Magento 2 - An Intro to a Modern PHP-Based System - Northeast PHP 2015
PDF
Fundamentals of Extending Magento 2 - php[world] 2015
PPTX
Vue Storefront - Progressive Web App for Magento (1.9, 2.x) - MM18DE speech
PDF
Oleh Kobchenko - Configure Magento 2 to get maximum performance
PDF
The journey of mastering Magento 2 for Magento 1 developers
PDF
Guillaume Thibaux - Can we win the fight against performance bottlenecks? Les...
PPTX
Sergii Shymko: Magento 2: Composer for Extensions Distribution
PDF
Magento 2 Design Patterns
PDF
Magento 2 Modules are Easy!
Outlook on Magento 2
Imagine recap-devhub
PWA basics for developers
Vue storefront London PWA meetup
Sergii Shymko - Code migration tool for upgrade to Magento 2
Maintainable design
Max Yekaterynenko: Magento 2 overview
Max Yekaterinenko - Magento 2 & Quality
12 Amazing Features of Magento 2
How To Install Magento 2 (updated for the latest version)
Meet Magento Belarus - Elena Leonova
 
Magento 2 - An Intro to a Modern PHP-Based System - Northeast PHP 2015
Fundamentals of Extending Magento 2 - php[world] 2015
Vue Storefront - Progressive Web App for Magento (1.9, 2.x) - MM18DE speech
Oleh Kobchenko - Configure Magento 2 to get maximum performance
The journey of mastering Magento 2 for Magento 1 developers
Guillaume Thibaux - Can we win the fight against performance bottlenecks? Les...
Sergii Shymko: Magento 2: Composer for Extensions Distribution
Magento 2 Design Patterns
Magento 2 Modules are Easy!
Ad

Similar to PWA for PHP Developers (20)

PDF
Kendo UI workshop introduction - PUG Baltic Annual Conference 2017
PDF
[Webinar] Expanding future mobile commerce with Magento PWA Studio
PDF
What Are Progressive Web Application Development
PDF
Progressive Web Apps –The Future of Apps
PDF
IRJET-Garbage Monitoring and Management using Internet of things
PDF
9 Best Tools to Leverage for Progressive Web App Development
PPTX
Why Progressive Web Apps For WordPress - WordCamp Finland
PPTX
Progressive Web Apps - Overview & Getting Started
PDF
Enterprise DevOps Series: Using VS Code & Zowe
PDF
Php Leads Web2 0
PPTX
Why progressive apps for WordPress - WordSesh 2020
PDF
Progressive Web Apps / GDG DevFest - Season 2016
PPT
The Ultimate Guide to Modern Web App Development.ppt
PDF
Go for Progressive Web Apps. Get a Better, Low Cost, Mobile Presence
PPTX
Progressive web apps For e-Commerce- How do they go hand-in-hand?
PDF
IRJET- Creating Website as a Service using Web Components
PDF
Progressive Web Apps - Porque nativo no es significa mejor
PDF
Web application development full &amp; detailed guide for 2022
PDF
Progressive web apps
PPTX
How to Prepare Your Toolbox for the Future of SharePoint Development
Kendo UI workshop introduction - PUG Baltic Annual Conference 2017
[Webinar] Expanding future mobile commerce with Magento PWA Studio
What Are Progressive Web Application Development
Progressive Web Apps –The Future of Apps
IRJET-Garbage Monitoring and Management using Internet of things
9 Best Tools to Leverage for Progressive Web App Development
Why Progressive Web Apps For WordPress - WordCamp Finland
Progressive Web Apps - Overview & Getting Started
Enterprise DevOps Series: Using VS Code & Zowe
Php Leads Web2 0
Why progressive apps for WordPress - WordSesh 2020
Progressive Web Apps / GDG DevFest - Season 2016
The Ultimate Guide to Modern Web App Development.ppt
Go for Progressive Web Apps. Get a Better, Low Cost, Mobile Presence
Progressive web apps For e-Commerce- How do they go hand-in-hand?
IRJET- Creating Website as a Service using Web Components
Progressive Web Apps - Porque nativo no es significa mejor
Web application development full &amp; detailed guide for 2022
Progressive web apps
How to Prepare Your Toolbox for the Future of SharePoint Development
Ad

More from Ben Marks (6)

PDF
Open Source Commerce Melee
PPTX
A World Without PHP
PDF
Magento 2: Modernizing an eCommerce Powerhouse
PDF
eCommerce and Open Source: Pot, PHP, and Unlimited Potential
PPTX
Open Source eCommerce: PHP Power
PPTX
Finding Your Way: Understanding Magento Code
Open Source Commerce Melee
A World Without PHP
Magento 2: Modernizing an eCommerce Powerhouse
eCommerce and Open Source: Pot, PHP, and Unlimited Potential
Open Source eCommerce: PHP Power
Finding Your Way: Understanding Magento Code

Recently uploaded (20)

PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
AI in Product Development-omnex systems
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PPTX
Transform Your Business with a Software ERP System
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
top salesforce developer skills in 2025.pdf
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
Nekopoi APK 2025 free lastest update
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PTS Company Brochure 2025 (1).pdf.......
How to Migrate SBCGlobal Email to Yahoo Easily
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
AI in Product Development-omnex systems
Odoo POS Development Services by CandidRoot Solutions
Odoo Companies in India – Driving Business Transformation.pdf
Operating system designcfffgfgggggggvggggggggg
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Transform Your Business with a Software ERP System
CHAPTER 2 - PM Management and IT Context
top salesforce developer skills in 2025.pdf
Softaken Excel to vCard Converter Software.pdf
Nekopoi APK 2025 free lastest update
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Upgrade and Innovation Strategies for SAP ERP Customers
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)

PWA for PHP Developers

  • 1. PWA for the PHP Developer Ben Marks | Senior Evangelist | Magento, an Adobe Company joind.in
  • 2. Ben Marks // @benmarks // ben@magento.com
  • 3. © 2019 Adobe. All Rights Reserved. Why this talk? 1 The Web is still evolving. _________________ Not unfamiliar to developers or users, we continue to see changes in how the Web is built, delivered, consumed, and experienced. 3 2 PWA is TNGT, sort of. _________________ So often what is stated to be TNGT is really TNGH. PWA is not hype. It is a gentle, logical evolution borne from best practices. 3 New tech for new times. _________________ Some of the most substantial shifts in Web experience have started with small technical additions to the current technology & techniques. _________________ _________________ _________________
  • 4. © 2019 Adobe. All Rights Reserved. Progressive (Open) Web Application P Progressive _________________ Progressive because of “progressive enhancement”, and poetically because of the gradual technical evolution over time J 4 W Web _________________ Web because of the fundamental base in Web technologies & delivery: HTTPS, JS, JSON. Also, they “live” in the Web. A Application _________________ Application because of an app icon, an app-y entry point, and if needed, app-y capabilities. _________________ _________________ _________________
  • 5. The Web is still Evolving, and the Fundamentals Still Matter
  • 6. © 2019 Adobe. All Rights Reserved. Progression of Web content focus over time: 6 Delivery Interactivity Experience *discoverability is important, but OOS for this presentation
  • 7. © 2019 Adobe. All Rights Reserved. <form/>, a.k.a: Interactivity, the Early Years 7 Forms, the original interactive UI Sou https://medium.freecodecamp.org/a-step-by-step-guide-to-getting-started-with-html-forms- 7f77ae4522b5
  • 8. © 2019 Adobe. All Rights Reserved. Early promises of cross-platform rich UI 8 Who remembers Java and Flash applets? Source: http://weelookang.blogspot.com/2010/06/ejs-open-source-micrometer-java-applet.html
  • 9. © 2019 Adobe. All Rights Reserved. Later, HTML5 and JavaScript Displaced Java Applets & Flash 9 JavaScript and HTML5 could provide interactive animation UI http://weelookang.blogspot.com/2016/11/flight-dynamics-gimbal-javascript-html5.html?view=classic
  • 10. © 2019 Adobe. All Rights Reserved. Web Content Evolution: What happened? § Web went from just-PC to always-with-me § Apps (and walled gardens) § Consumers have new expectations for information in context 10 Credit: AP
  • 11. © 2019 Adobe. All Rights Reserved. Later, technologies began to bridge the gap between Web and mobile 11 § Adobe AIR Applications § Windows Store Apps § Chrome Packaged Applications § Firefox OS Packaged Applications § Cordova/PhoneGap + Crosswalk Apps § BlackBerry WebWorks Apps § W3C Widgets § WebOS Apps § Chromium Embedded Framework § Electron Source: https://infrequently.org/2015/06/progressive-apps-escaping-tabs-without-losing-our-soul/
  • 13. © 2019 Adobe. All Rights Reserved. Current realities: Apps are Popular! Estimated app downloads in 2018: 205 Billion 13 Source: https://www.statista.com/statistics/271644/worldwide-free-and-paid-mobile-app-store-downloads/
  • 14. © 2019 Adobe. All Rights Reserved. Current realities: Apps are getting better are retention Retention >1 use is improving 14 Source: http://info.localytics.com/blog/21-percent-of-users-abandon-apps-after-one-use
  • 15. © 2019 Adobe. All Rights Reserved. Current realities: the Web is Still the Real Deal § Most users are on the Web, not in App Stores § Apps are heavy in multiple dimensions § Acquisition & installation are “frictional”, whether from the Web or in a walled garden § App use is a limited context § Bandwidth may be a concern § Content delivery is complicated by
 a lot § Eleventy-billion display form factors § Keyboard+mouse vs Touch input § Connection quality § Advertising, analytic, and developer cruft 15
  • 16. © 2019 Adobe. All Rights Reserved. Current realities § We have solutions for these challenges of modern delivery & interactivity: § RWD § Progressive enhancement § HTTP/2 § Progressive Web Apps employ these concepts, adding additional capabilities, and either requiring or encouraging best practices 16
  • 17. PWA: New Tech for New Times
  • 18. © 2019 Adobe. All Rights Reserved. So, what do we get? 18 Credit: Infrequently.org § The answer to this question has evolved over the past two years § Add to homescreen § Sync-able & snappy offline functionality § Access to the app tray / task switcher § Server push: re-engage, background sync
  • 19. © 2019 Adobe. All Rights Reserved. A PWA has exactly three requirements
 § Originate from a Secure Origin, i.e. be served over TLS and no active mixed content § Provide an application manifest, i.e. a JSON file with specific parameters defined § Load while offline, i.e. a Service Worker is required 19
  • 20. © 2019 Adobe. All Rights Reserved. A PWA has exactly three requirements
 § Originate from a Secure Origin, i.e. be served over TLS and no active mixed content § Provide an application manifest, i.e. a JSON file with specific parameters defined § Load while offline, i.e. a Service Worker is required 20
  • 21. © 2019 Adobe. All Rights Reserved. A PWA has exactly three requirements
 § Originate from a Secure Origin, i.e. be served over TLS and no active mixed content § Provide an application manifest, i.e. a JSON file with specific parameters defined § Load while offline, i.e. a Service Worker is required 21
  • 22. © 2019 Adobe. All Rights Reserved. Service worker: Registration 22 Source: https://developers.google.com/web/fundamentals/primers/service-workers/
  • 23. © 2019 Adobe. All Rights Reserved. Service worker: Install 23 Source: https://developers.google.com/web/fundamentals/primers/service-workers/
  • 24. © 2019 Adobe. All Rights Reserved. Service worker: fetch 24 Source: https://developers.google.com/web/fundamentals/primers/service-workers/
  • 25. © 2019 Adobe. All Rights Reserved. Use Lighthouse to help with best practices § All URLs should respond 200, even when offline § Responsive design to handle mobile, tablet, and PC application § First load fast at 3G bandwidth § Cross-browser functional § Page transitions shouldn’t be blocked (e.g., app- like response) § Each page its own URL 25 Google Lighthouse https://developers.google.com/web/progressive-web-apps/checklist
  • 26. © 2019 Adobe. All Rights Reserved. Be aware of latest limitations, abilities, etc 26 § https://whatwebcando.today/ - visualize browser+OS capabilities § May need to set Chrome flags depending on workflow and OS § https://pwa.rocks/ is a nice showcase of several apps for reference § Magento’s PWA Studio might be of interest: https://magento-research.github.io/pwa-studio/
  • 27. © 2019 Adobe. All Rights Reserved. Grokking PWA It’s different
 
but not that different. It’s not always obvious
 
but it’s out there already. There are limitations
 
but not for long. 27 Credit: Infrequently.org
  • 28. © 2019 Adobe. All Rights Reserved. Thank you! Ben Marks Senior Evangelist Magento, an Adobe Company @benmarks ben@magento.com m+WA: +18436704240 28 https://joind.in/talk/59e4c Agree? Disagree? What would you like to see? Join me!