Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 2023-03-18T20:16:32.000Z (almost 2 years ago)
- Last Synced: 2024-10-13T08:50:50.002Z (3 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 "dev-master"
```or add
```
"imanilchaudhari/yii2-social-share": "dev-master"
```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).