sy/pwaupdate
Composer 安装命令:
composer require sy/pwaupdate
包简介
Progressive web app update web component
README 文档
README
Progressive web app update web component
Installation
Install the latest version with
$ composer require sy/pwaupdate
Basic Usage
<?php 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;
Output:
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <script src="https://cdn.jsdelivr.net/npm/@pwabuilder/pwaupdate" crossorigin="anonymous" defer></script> </head> <body> <pwa-update swpath="/js/mysw.js"></pwa-update> </body> </html>
统计信息
- 总下载量: 289
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-11-27