PHPackages                             bpocallaghan/add-to-homescreen - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. bpocallaghan/add-to-homescreen

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

bpocallaghan/add-to-homescreen
==============================

Add to home screen (A2HS): Easy way to add 'install app' for your websites.

0.5(3y ago)3473MITPHPPHP 8.\*CI failing

Since Jul 30Pushed 3y ago1 watchersCompare

[ Source](https://github.com/bpocallaghan/add-to-homescreen)[ Packagist](https://packagist.org/packages/bpocallaghan/add-to-homescreen)[ RSS](/packages/bpocallaghan-add-to-homescreen/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (3)Versions (7)Used By (0)

Add To Home Screen
==================

[](#add-to-home-screen)

Add to home screen (A2HS) The Easy way to add 'install app' for your websites.

```
Laravel 6+

```

Commands
--------

[](#commands)

```
php artisan a2h:install
```

### Usage

[](#usage)

- run `php artisan a2h:install` to copy the files over to your project
- include the javascript file and initialise like `new A2HClass();` in your main `app.js`
- Add the below in your master layout file

```

@if(config('app.env') === 'production')
	@include('a2h::a2h')
@endif

```

### Customise

[](#customise)

- update manifest.json
- update the favicons with your logo
- update the js file where needed (e.g. to send an ajax to server)
- include your own view file (for html and styles)
- update ah2.blade to change default button text

### Output

[](#output)

- Install command will copy the favicons to `/public/images/favicons`

My Other Packages
-----------------

[](#my-other-packages)

- [Generators](https://github.com/bpocallaghan/generators) Easily File Generators with a config file and publishable stubs.
- [Notify](https://github.com/bpocallaghan/notify) Laravel Flash Notifications with icons and animations and with a timeout
- [Alert](https://github.com/bpocallaghan/alert) A helper package to flash a bootstrap alert to the browser via a Facade or a helper function.
- [Sluggable](https://github.com/bpocallaghan/sluggable) Provides a HasSlug trait that will generate a unique slug when saving your Laravel Eloquent model.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 63.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~192 days

Total

5

Last Release

1342d ago

PHP version history (3 changes)0.1PHP ^7.2.5

0.4PHP ^8.0

0.5PHP 8.\*

### Community

Maintainers

![](https://www.gravatar.com/avatar/7cc52fc6eaeee1d7cbb729f7b7e7fb570754f4d2bb57847e5753f4e1041b7124?d=identicon)[bpocallaghan](/maintainers/bpocallaghan)

---

Top Contributors

[![bpocallaghan](https://avatars.githubusercontent.com/u/883465?v=4)](https://github.com/bpocallaghan "bpocallaghan (21 commits)")[![BenjaminBookamat](https://avatars.githubusercontent.com/u/81744269?v=4)](https://github.com/BenjaminBookamat "BenjaminBookamat (9 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")

---

Tags

a2hshacktoberfesthacktoberfest2021laravellaravelappinstallhomescreena2hs

### Embed Badge

![Health badge](/badges/bpocallaghan-add-to-homescreen/health.svg)

```
[![Health](https://phpackages.com/badges/bpocallaghan-add-to-homescreen/health.svg)](https://phpackages.com/packages/bpocallaghan-add-to-homescreen)
```

###  Alternatives

[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[gehrisandro/tailwind-merge-laravel

TailwindMerge for Laravel merges multiple Tailwind CSS classes by automatically resolving conflicts between them

341682.2k18](/packages/gehrisandro-tailwind-merge-laravel)[nickurt/laravel-akismet

Akismet for Laravel 11.x/12.x/13.x

97139.6k2](/packages/nickurt-laravel-akismet)[whitecube/laravel-timezones

Store UTC dates in the database and work with custom timezones in the application.

106106.2k](/packages/whitecube-laravel-timezones)[forxer/laravel-gravatar

A library providing easy gravatar integration in a Laravel project.

4235.6k](/packages/forxer-laravel-gravatar)[iteks/laravel-enum

A comprehensive Laravel package providing enhanced enum functionalities, including attribute handling, select array conversions, and fluent facade interactions for robust enum management in Laravel applications.

2516.7k](/packages/iteks-laravel-enum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
