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 3w ago

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 35% 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

1396d 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

[laravel/octane

Supercharge your Laravel application's performance.

4.0k26.6M218](/packages/laravel-octane)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/nightwatch

The official Laravel Nightwatch package.

36210.1M34](/packages/laravel-nightwatch)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

103519.9k53](/packages/friendsoftypo3-content-blocks)[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17878.9k](/packages/markwalet-nova-modal-response)[team-nifty-gmbh/tall-datatables

Server-side rendered datatables for Laravel and Livewire

1320.9k4](/packages/team-nifty-gmbh-tall-datatables)

PHPackages © 2026

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