Download the PHP package devrabiul/laravel-pwa-kit without Composer
On this page you can find all versions of the php package devrabiul/laravel-pwa-kit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download devrabiul/laravel-pwa-kit
More information about devrabiul/laravel-pwa-kit
Files in devrabiul/laravel-pwa-kit
Package laravel-pwa-kit
Short Description Laravel PWA Kit is a lightweight and flexible package to add Progressive Web App (PWA) support to your Laravel applications with ease.
License MIT
Homepage https://github.com/devrabiul/laravel-pwa-kit
Informations about the package laravel-pwa-kit
Laravel PWA Kit – Laravel to PWA in Minutes
Laravel PWA Kit is a powerful, easy-to-use Laravel package that transforms your web applications into Progressive Web Apps (PWAs). With this package, your Laravel apps can be installable, offline-ready, fast, and engaging, without writing complex service worker logic manually.
✨ Features
- ⚙️ Automatic Manifest & Service Worker Generation – No manual setup needed.
- 📲 Add-to-Home-Screen Install Prompt – Fully configurable toast notification.
- 🖥️📱 Responsive & Cross-Platform – Works on mobile, tablet, and desktop.
- 🔄 Laravel 8.x → 12.x Compatible – Supports latest Laravel versions.
- 🛠️ Customizable – Modify icons, theme colors, app name, shortcuts via config.
- ⚡ Offline Ready – Supports offline pages and caching strategies.
- 🔐 HTTPS Ready – Fully compatible with HTTPS-secured applications.
- 🧩 Livewire & SPA Friendly – Works out-of-the-box with Livewire v3, Vue 3, and React.
- 🌱 Treeware Package – Support environmental initiatives by contributing to tree planting.
🚀 Live Demo

🖼️ Screenshots / Demo
See Laravel PWA Kit in action:
Descriptions:
- Install Toast Prompt – The prompt displayed when users can add your app to the home screen.
- Offline Page – Shown when the user is offline.
- Installed PWA – Your Laravel app running as an installable Progressive Web App.
Live Demo: https://packages.rixetbd.com/laravel-pwa-kit
⚠️ Important
PWAs require HTTPS to work correctly. Make sure your application is hosted with HTTPS; otherwise, service workers and other PWA features will not function properly.
Note: For local development, you can use
php artisan serve. Browsers allow service workers onlocalhostover HTTP, so you can test your PWA without HTTPS during development.
📦 Installation
Install via Composer:
Publish configuration and assets:
This publishes:
config/laravel-pwa-kit.phpmanifest.json,sw.js,offline.html, andlogo.pngto both public and base directories.
⚙️ Configuration
Edit config/laravel-pwa-kit.php to customize your PWA:
🖥️ Usage
Include Assets in Blade
In <head>:
Before </body>:
Example Layout:
📲 Multiple Forced Install Buttons
You can add multiple buttons anywhere in your app to force the PWA install prompt. Use the .force-install-pwa-app class on any button and attach the install trigger:
💡 Tip:
triggerPWAInstallis the helper function provided by Laravel PWA Kit that opens the browser’s add-to-home-screen prompt. You can place as many buttons as you want in your UI.
Livewire Support
Enable in config/laravel-pwa-kit.php:
This ensures your service worker and toast behave correctly in Livewire SPA apps.
🛠️ Major Methods & Usage
| Method | Description | Example |
|---|---|---|
PwaKit::head() |
Generates <meta>, <link> and stylesheet tags for PWA. |
{!! PwaKit::head() !!} |
PwaKit::scripts() |
Registers service worker, scripts, and install toast HTML. | {!! PwaKit::scripts() !!} |
PwaKit::updatePWALogo(Request $request) |
Handles logo upload, validates, and stores in public & base paths. | $result = PwaKit::updatePWALogo($request); |
createOrUpdate(array $manifest, bool $force = false) |
Programmatically create or update manifest.json. |
$pwa = new PwaKit(); $pwa->createOrUpdate($manifest); |
update(array $manifestData) |
Updates manifest data safely. | $pwa = new PwaKit(); $pwa->update($manifestData); |
🛠️ Major Methods Usage Examples
1. PwaKit::head()
Generates all <meta>, <link> and stylesheet tags required for your PWA.
2. PwaKit::scripts()
Registers the service worker, required scripts, and displays the install toast.
3. PwaKit::updatePWALogo(Request $request)
Handles logo upload, validates file type (PNG), enforces minimum dimensions (512×512), and stores the logo in both the public and base directories.
- The uploaded file must be sent with the key
logo($request['logo']).
4. createOrUpdate(array $manifest, bool $force = false)
Programmatically creates or updates the manifest.json file.
💡 Benefits
- ✅ Turn your Laravel web app into an installable PWA instantly.
- ✅ Provides offline support, caching, and fast load times.
- ✅ Reduces repetitive boilerplate code for service workers & manifest.
- ✅ Fully customizable via configuration.
- ✅ Works seamlessly with Blade, Livewire, Vue 3, and React.
- ✅ Encourages modern web best practices.
🔧 Commands
- Update Manifest:
⚠️ Requirements
- Laravel 8.x to 12.x
- PHP 8.0+
- HTTPS (PWAs require secure contexts for service workers)
- Optional: Livewire v3 for SPA support
🌱 Treeware
This package is Treeware. If you use it in production, then we ask that you buy the world a tree to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.
🤝 Contributing
- Fork the repository.
- Make your changes.
- Submit a pull request.
Feature requests and bugs? Open an issue.
📄 License
MIT License – see LICENSE file.
📬 Contact
For support: 📧 Email: [email protected] 🌐 GitHub: devrabiul/laravel-pwa-kit


