PHP code example of urosg / yii2-outdated-browser-rework
1. Go to this page and download the library: Download urosg/yii2-outdated-browser-rework library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
urosg / yii2-outdated-browser-rework example snippets
use urosg\widget\OutdatedBrowserRework;
// To use default configuration
echo OutdatedBrowserRework::widget();
// To specify custom configuration - listed are default settings
echo OutdatedBrowserReword::widget([
'o view this website correctly.',
'updateGooglePlay' => 'Please install Chrome from Google Play',
'updateAppStore' => 'Please update iOS from the Settings',
'webUpdateUrl' => 'http://outdatedbrowser.com',
'callToAction' => 'Update my browser now',
'close' => 'Close'
],
'browserSupport' => [
'Chrome' => 57,
'Edge' => 39,
'Safari' => 10,
'MobileSafari' => 10,
'Firefox' => 50,
'Opera' => 50,
'Vivaldi' => 1,
'IE' => false
]
]);
$ php composer.phar
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.