drsdre/yii2-add-to-homescreen Yii2 asset extension for https://github.com/cubiq/add-to-homescreen

extensionwidgetassetmobilehomescreenfavorite

Yii2-add-to-homescreen

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.

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



1.1.1 is the latest of 3 releases



Apache-2.0 license
Stats
1 github stars & 1 github forks
0 downloads in the last day
1 downloads in the last 30 days
292 total downloads