Reached / add-to-homescreen

Add to home screen (A2HS): Example for the 'install app' on your home screen.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add To Home Screen

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

Laravel 6+

Commands

php artisan a2h:install

Usage

  • run php artisan a2h:install to copy the files over to your project
  • include the javascript file and initialize like new A2HClass(); in your main app.js
  • Add the below in your master layout file
<meta name="theme-color" content="#ffffff"/>

<link rel="manifest" href="/manifest.json">

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

Customize

  • update manifest.json
  • update the favicons with your logo
  • you can update the js file where needed (to send an ajax to server)
  • you can include your own view file (for html and styles)

Output

  • Install command will copy the favicons to /public/images/favicons

My Other Packages

  • Generators Easily File Generators with a config file and publishable stubs.
  • Notify Laravel Flash Notifications with icons and animations and with a timeout
  • Alert A helper package to flash a bootstrap alert to the browser via a Facade or a helper function.
  • Sluggable Provides a HasSlug trait that will generate a unique slug when saving your Laravel Eloquent model.

About

Add to home screen (A2HS): Example for the 'install app' on your home screen.

License:MIT License


Languages

Language:PHP 58.1%Language:JavaScript 32.6%Language:Blade 9.3%