PHP Classes

phatto: Register a service worker for PHP based PWA

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 187 All time: 8,632 This week: 97Up
Version License PHP version Categories
phatto 1.0.0Custom (specified...5HTML, PHP 5, Web services
Description 

Author

This package can register a service worker for PHP based Progressive Web Applications.

It serves JavaScript code to run on the browser that will install service worker process.

The service worker JavaScript code will run on the browser background and can send HTTP requests to make calls to the PHP code on the server side to provide information as result of executing the requested service like for instance a Web based chat system or push messages.

Innovation Award
PHP Programming Innovation award winner
May 2018
Winner
Progressive Web Applications, also known as PWA, are applications that support advanced features of the modern browsers, like for instance handling browser side push notifications.

Service workers are processes that run on the browser side using JavaScript code to perform an useful activity. They usually communicate with the server side code using AJAX requests.

PHP code can handle AJAX requests to perform some other useful action on the server side.

This package provides a nice solution to implement the so called Progressive Web Applications, using PHP code along with some JavaScript code that is necessary to implement the browser side actions.

Manuel Lemos
Picture of Bill Rocha
  Performance   Level  
Innovation award
Innovation award
Nominee: 1x

Winner: 1x

 

Documentation

<img src="https://raw.githubusercontent.com/supremacia/phatto/master/public/img/favicon/android-chrome-512x512.png" width="80px"/>

PHATTO

PHATTO<sup>&copy;</sup> is an atto* PHP server.

Install

composer create-project supremacia/phatto

Run

cd phatto/public
php -S localhost:80

Open `http://localhost` in your browser.

See this running at https://phatto.ga (soon we will have the manual, a chat, push messages ... to connect the users :)

*Att.: A ServiceWorker will be registered in your browser and the application will be cached locally. It is also possible, if installed on a host with "https", the installation as an Android application (smartphone). The intent is to provide the basis for a PWA application (such as an app with notification (push), cache, etc.)*

More information coming soon!

<sup>Atto(symbola*) is a unit prefix in the metric system denoting a factor of 10<sup>?18</sup>... (https://en.wikipedia.org/wiki/Atto-)</sup>


  Files folder image Files (37)  
File Role Description
Files folder image.php (4 directories)
Files folder imagepublic (5 files, 3 directories)
Accessible without login Plain text file boot.php Conf. Configuration script
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:187
This week:0
All time:8,632
This week:97Up
User Comments (1)
It's not working.
4 years ago (Arumugam P)
0%Star