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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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.

Latest Stable Version Total Downloads Monthly Downloads GitHub license Buy us a tree GitHub Repo stars


✨ Features


🚀 Live Demo

👉 Try the Live Demo

Live Demo Thumbnail


🖼️ Screenshots / Demo

See Laravel PWA Kit in action:

install-toast.png offline-page.png installed-pwa.png

Descriptions:

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 on localhost over HTTP, so you can test your PWA without HTTPS during development.


📦 Installation

Install via Composer:

Publish configuration and assets:

This publishes:


⚙️ 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: triggerPWAInstall is 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.


4. createOrUpdate(array $manifest, bool $force = false)

Programmatically creates or updates the manifest.json file.


💡 Benefits


🔧 Commands


⚠️ Requirements


🌱 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

  1. Fork the repository.
  2. Make your changes.
  3. 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


All versions of laravel-pwa-kit with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package devrabiul/laravel-pwa-kit contains the following files

Loading the files please wait ...