PHP code example of imanilchaudhari / yii2-social-share
1. Go to this page and download the library: Download imanilchaudhari/yii2-social-share 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/ */
imanilchaudhari / yii2-social-share example snippets
<?= \imanilchaudhari\socialshare\ShareButton::widget([
'style'=>'horizontal',
'networks' => ['facebook','linkedin','twitter'],
'data_via'=>'imanilchaudhari', //twitter username (for twitter only, if exists else leave empty)
]);