https://github.com/imanilchaudhari/yii2-social-share
This is a social bar widget for Yii2 projects.
https://github.com/imanilchaudhari/yii2-social-share
Last synced: about 2 months ago
JSON representation
This is a social bar widget for Yii2 projects.
- Host: GitHub
- URL: https://github.com/imanilchaudhari/yii2-social-share
- Owner: imanilchaudhari
- Created: 2015-09-10T17:52:55.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2025-04-05T07:39:17.000Z (about 2 months ago)
- Last Synced: 2025-04-05T08:27:24.298Z (about 2 months ago)
- Language: PHP
- Homepage:
- Size: 8.79 KB
- Stars: 3
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Yii2 social share- A beautiful social share buttons for yii2.
=========================================================
This is a social share buttons for yii2 projects.Installation
------------The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
php composer.phar require --prefer-dist imanilchaudhari/yii2-social-share "^1.0"
```or add
```
"imanilchaudhari/yii2-social-share": "^1.0"
```to the require section of your `composer.json` file.
Usage
-----Once the extension is installed, simply use it in your code by :
```php
= \imanilchaudhari\socialshare\ShareButton::widget([
'style'=>'horizontal',
'networks' => ['facebook','linkedin','twitter'],
'data_via'=>'imanilchaudhari', //twitter username (for twitter only, if exists else leave empty)
]); ?>
```About
-------This is a replica of [SocialShareButton](http://www.yiiframework.com/extension/social-share-button) by [Yii Expert](https://yiiexpert.github.io).