PHP code example of daxslab / yii2-sharelinks-widget
1. Go to this page and download the library: Download daxslab/yii2-sharelinks-widget 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/ */
daxslab / yii2-sharelinks-widget example snippets
echo \daxslab\sharelinks\ShareLinks::widget(
[
'viewName' => '@app/views/mypath/shareLinks.php' //custom view file for you links appearance
]
);
use daxslab\sharelinks\ShareLinks;
use \yii\helpers\Html;
/**
* @var yii\base\View $this
*/