PHP code example of assayer-pro / yii2-social-likes

1. Go to this page and download the library: Download assayer-pro/yii2-social-likes 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/ */

    

assayer-pro / yii2-social-likes example snippets


use assayerpro\SocialLikes\SocialLikes;
...
echo SocialLikes::widget([
  'skin' => 'birman',
  'buttons' => [
    'facebook' => [
      'title' => 'Share link on Facebook',
      'name' => 'Facebook',
      'show' => true,
    ],
    'twitter' => [
      'title' => 'Share link on Twitter',
      'name' => 'Twitter',
      'show' => true,
    ],
    'plusone' => [
      'title' => 'Share link on Google+',
      'name' => 'Google+',
      'show' => true,
  ],
]);

php composer.phar