PHP code example of sy / pwaupdate

1. Go to this page and download the library: Download sy/pwaupdate library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

sy / pwaupdate example snippets




use Sy\Component\Html\Page;
use Sy\Component\Web\PwaUpdate;

$pwaupdate = new PwaUpdate([
	'swpath' => '/js/mysw.js'
]);

$page = new Page();

$page->addBody($pwaupdate);

echo $page;