PHP Classes
elePHPant
Icontem

phatto: Register a service worker for PHP based PWA

Recommend this page to a friend!
  Info   View files Documentation   View files View files (37)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2018-03-01 (6 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 163 All time: 8,471 This week: 413Up
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
  Performance   Level  
Name: Bill Rocha <contact>
Classes: 1 package by
Country: Brazil Brazil
Age: ???
All time rank: 4040336 in Brazil Brazil
Week rank: 785 Up59 in Brazil Brazil Up
Innovation award
Innovation award
Nominee: 1x

Winner: 1x

Details

<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  
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

  Files folder image Files  /  .php  
File Role Description
Files folder imageConfig (3 files)
Files folder imageHtml (3 files)
Files folder imageLib (3 files, 1 directory)
Files folder imagePhatto (3 files, 1 directory)

  Files folder image Files  /  .php  /  Config  
File Role Description
  Plain text file Database.php Class Class source
  Plain text file Html.php Class Class source
  Plain text file Router.php Class Class source

  Files folder image Files  /  .php  /  Html  
File Role Description
  Accessible without login HTML file body.html Doc. Documentation
  Accessible without login HTML file footer.html Doc. Documentation
  Accessible without login HTML file header.html Doc. Documentation

  Files folder image Files  /  .php  /  Lib  
File Role Description
Files folder imageNTag (3 files)
  Plain text file Database.php Class Class source
  Plain text file Html.php Class Class source
  Plain text file Router.php Class Class source

  Files folder image Files  /  .php  /  Lib  /  NTag  
File Role Description
  Plain text file NTBlock.php Class Class source
  Plain text file NTList.php Class Class source
  Plain text file NTSelect.php Class Class source

  Files folder image Files  /  .php  /  Phatto  
File Role Description
Files folder imageHtml (1 file)
  Plain text file Controller.php Class Class source
  Plain text file Model.php Class Class source
  Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  .php  /  Phatto  /  Html  
File Role Description
  Accessible without login HTML file phatto.html Doc. Documentation

  Files folder image Files  /  public  
File Role Description
Files folder imagecss (1 file)
Files folder imageimg (1 file, 1 directory)
Files folder imagejs (1 file)
  Accessible without login Plain text file .htaccess Data Auxiliary data
  Accessible without login Plain text file index.php Aux. Auxiliary script
  Accessible without login Plain text file manifest.json Data Auxiliary data
  Accessible without login Plain text file sw.js Data Auxiliary data
  Accessible without login Plain text file Web.config Data Auxiliary data

  Files folder image Files  /  public  /  css  
File Role Description
  Accessible without login Plain text file style.css Data Auxiliary data

  Files folder image Files  /  public  /  img  
File Role Description
Files folder imagefavicon (9 files)
  Accessible without login Image file frame.png Data Auxiliary data

  Files folder image Files  /  public  /  img  /  favicon  
File Role Description
  Accessible without login Image file android-chrome-192x192.png Icon Icon image
  Accessible without login Image file android-chrome-512x512.png Data Auxiliary data
  Accessible without login Image file apple-touch-icon.png Icon Icon image
  Accessible without login Plain text file browserconfig.xml Data Auxiliary data
  Accessible without login Image file favicon-16x16.png Icon Icon image
  Accessible without login Image file favicon-32x32.png Icon Icon image
  Accessible without login Image file favicon.ico Data Auxiliary data
  Accessible without login Image file mstile-150x150.png Icon Icon image
  Accessible without login Plain text file safari-pinned-tab.svg Data Auxiliary data

  Files folder image Files  /  public  /  js  
File Role Description
  Accessible without login Plain text file main.js Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:163
This week:0
All time:8,471
This week:413Up