定制 bpocallaghan/add-to-homescreen 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bpocallaghan/add-to-homescreen

Composer 安装命令:

composer require bpocallaghan/add-to-homescreen

包简介

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

README 文档

README

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 initialise like new A2HClass(); in your main app.js
  • Add the below in your master layout file
<meta name="theme-color" content="#fff"/>

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

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

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

  • 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.

统计信息

  • 总下载量: 48
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-07-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固