drsdre / yii2-add-to-homescreen
Yii2 asset extension for https://github.com/cubiq/add-to-homescreen
Installs: 297
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 0
Type:yii2-extension
Requires
- php: >=5.4.0
- bower-asset/add-to-homescreen: ~3.2
- yiisoft/yii2: ~2.0
This package is auto-updated.
Last update: 2024-10-29 04:36:28 UTC
README
Yii2 extension for the Add To Homescreen Javascript widget
Requirements:
Yii2 and francoispluchino/composer-asset-plugin.
Installation
This extension should be installed through composer.
Either run
composer require --prefer-dist drsdre/yii2-add-to-homescreen "*"
or add
"drsdre/yii2-add-to-homescreen": "*"
to the require
section of your composer.json
file.
Usage
In your views/layout/main.php add the following line in the head section:
<?= AddToHomescreenWidget::widget() ;?>
Configuration
The widget can be tweaked through the settings variable:
<?= AddToHomescreenWidget::widget(['settings'=>['message'=>'Add']]) ;?>
Please visit http://cubiq.org/add-to-home-screen for an overview of all possible settings.