Download the PHP package erag/laravel-pwa without Composer

On this page you can find all versions of the php package erag/laravel-pwa. 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

PWA Easy Setup for Laravel

Screenshot 2024-10-04 at 10 34 23 PM
[![Packagist License](https://img.shields.io/badge/Licence-MIT-blue)](https://github.com/eramitgupta/laravel-pwa/blob/main/LICENSE) [![Latest Stable Version](https://img.shields.io/packagist/v/erag/laravel-pwa?label=Stable)](https://packagist.org/packages/erag/laravel-pwa) [![Total Downloads](https://img.shields.io/packagist/dt/erag/laravel-pwa.svg?label=Downloads)](https://packagist.org/packages/erag/laravel-pwa)

Laravel PWA is a package designed to seamlessly integrate Progressive Web Application (PWA) functionality into your Laravel projects. With this package, you can easily configure, update the manifest, and register service workers, enabling any Laravel app to function as a PWA.

Features 🚀

Important ⚠️

Note: PWAs require a secure HTTPS connection to work correctly. Ensure your application is hosted with HTTPS; otherwise, service workers and other PWA features will not function as expected.

Installation 📦

To get started, install the package using Composer:

Once installed, publish the PWA configuration files using:

This will create the required configuration file config/pwa.php and set up PWA functionality for your application.

Configuration ⚙️

Main Configuration File: config/pwa.php

This is your main configuration file where you can customize the PWA settings.

Customizing Manifest File

After changing config/pwa.php in your manifest array, run this command You can update your PWA manifest file by running:

This command updates the manifest.json file located in the public directory of your Laravel project.

Usage 🛠️

To integrate PWA functionality into your layouts, use the provided Blade directives.

1. Add Meta Tags

Place the @PwaHead directive inside the <head> tag of your main layout file:

2. Register Service Worker

Just before the closing </body> tag in your main layout file, add:

These directives will automatically generate the necessary tags and JavaScript for the PWA.

Screenshots 📸

Screenshot 2024-09-19 at 10 11 01 PM

Installing PWA App

Screenshot 2024-09-19 at 10 13 23 PM

Offline Page

Screenshot 2024-09-19 at 10 13 52 PM

Contribution 🧑‍💻

We appreciate your interest in contributing to this Laravel PWA project! Whether you're reporting issues, fixing bugs, or adding new features, your help is greatly appreciated.

Forking and Cloning the Repository

  1. Go to the repository page on GitHub.
  2. Click the Fork button at the top-right corner of the repository page.
  3. Clone your forked repository:

Reporting Issues

If you encounter any issues, please check if the issue already exists in the Issues section. If not, create a new issue with the following details:

Submit a Pull Request

When you're ready to contribute, open a pull request describing the changes you’ve made and how they improve the project. Please ensure:

Coding Standards

Example Workflow 🌟

Here’s a simple example of how to use this package:

  1. Install the package via Composer.
  2. Publish the configuration files.
  3. Add the @PwaHead directive in your layout file’s <head>.
  4. Add the @RegisterServiceWorkerScript directive before the closing </body> tag.
  5. Customize the config/pwa.php to fit your project’s needs.
  6. Run php artisan erag:pwa-update-manifest to update the manifest file.
  7. That's it! Your Laravel app is now PWA-enabled. 🚀

All versions of laravel-pwa with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0.0
illuminate/database Version ^8.12|^9.0|^10.0|^11.0
illuminate/support Version ^8.12|^9.0|^10.0|^11.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 erag/laravel-pwa contains the following files

Loading the files please wait ....