Download the PHP package dd4you/pwa without Composer
On this page you can find all versions of the php package dd4you/pwa. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor dd4you
Package pwa
Short Description This package used for the make pwa website quickly.
License MIT
Package pwa
Short Description This package used for the make pwa website quickly.
License MIT
Please rate this library. Is it a good library?
Informations about the package pwa
Laravel PWA
Installation
Install the package by the following command,
composer require dd4you/pwa
Publish the Assets
Run the following command to publish config file,
php artisan dd4you:install-pwa
Configure PWA
Add following code in root blade file in header section.
<!-- PWA -->
<meta name="theme-color" content="#6777ef"/>
<link rel="apple-touch-icon" href="{{ asset('logo.PNG') }}">
<link rel="manifest" href="{{ asset('/manifest.json') }}">
Add following code in root blade file in before close the body.
<script src="{{ asset('/sw.js') }}"></script>
<script>
if (!navigator.serviceWorker.controller) {
navigator.serviceWorker.register("/sw.js").then(function (reg) {
console.log("Service worker has been registered for scope: " + reg.scope);
});
}
</script>
License
The MIT License (MIT). Please see License File for more information
All versions of pwa with dependencies
PHP Build Version
Package Version
The package dd4you/pwa contains the following files
Loading the files please wait ....