PHPackages                             xerobug/yii2-social-share - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. xerobug/yii2-social-share

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

xerobug/yii2-social-share
=========================

Extension for sharing on social networks

010PHP

Since Dec 16Pushed 4y ago1 watchersCompare

[ Source](https://github.com/aamirshahzadxerobug/yii2-social-share)[ Packagist](https://packagist.org/packages/xerobug/yii2-social-share)[ RSS](/packages/xerobug-yii2-social-share/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

 [ ![](https://avatars1.githubusercontent.com/u/24204902) ](https://github.com/yiimaker)

Extension for sharing on social networks
========================================

[](#extension-for-sharing-on-social-networks)

[![Build Status](https://camo.githubusercontent.com/8b88df70a96c39b2a390f91a1fd6b32471238cf3c38f72cbcf908f0aea0720b9/68747470733a2f2f7472617669732d63692e6f72672f7969696d616b65722f796969322d736f6369616c2d73686172652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/yiimaker/yii2-social-share)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/c80923755d3442198ef630960323e820f0f3145b9befe4008fb91475b1b51653/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7969696d616b65722f796969322d736f6369616c2d73686172652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/yiimaker/yii2-social-share/?branch=master)[![Monthly Downloads](https://camo.githubusercontent.com/1b33f61ffdcd874a00765d450374461bc2ce7d75186fc04c4a49e71669401a76/68747470733a2f2f706f7365722e707567782e6f72672f7969696d616b65722f796969322d736f6369616c2d73686172652f642f6d6f6e74686c79)](https://packagist.org/packages/yiimaker/yii2-social-share)[![Total Downloads](https://camo.githubusercontent.com/bacd7709ddf52657411158fb1f6f643c26f7c7c4ab6ea67abf2c3d68fa50bdd3/68747470733a2f2f706f7365722e707567782e6f72672f7969696d616b65722f796969322d736f6369616c2d73686172652f646f776e6c6f616473)](https://packagist.org/packages/yiimaker/yii2-social-share)[![Latest Stable Version](https://camo.githubusercontent.com/0d172b4df0f4d7eba8f6aaa11e62518ddd9d956896140aabaff22b8c9ab2f3c9/68747470733a2f2f706f7365722e707567782e6f72672f7969696d616b65722f796969322d736f6369616c2d73686172652f762f737461626c65)](https://packagist.org/packages/yiimaker/yii2-social-share)[![Latest Unstable Version](https://camo.githubusercontent.com/a39bc4e9acd90f95245df0748623ecfa55a745907baf6a080307b5b34fc88ecc/68747470733a2f2f706f7365722e707567782e6f72672f7969696d616b65722f796969322d736f6369616c2d73686172652f762f756e737461626c65)](https://packagist.org/packages/yiimaker/yii2-social-share)

With this extension you can share data from your web pages to any social network! Features: SEO support, default icons for social networks, easy creation of custom drivers for other social networks and more!

Documentation is at [docs/guide/README.md](docs/guide/README.md).

Extension supports from the box next social network drivers:

- [Vkontakte](https://github.com/yiimaker/yii2-social-share/blob/master/src/drivers/Vkontakte.php)
- [Facebook](https://github.com/yiimaker/yii2-social-share/blob/master/src/drivers/Facebook.php)
- [Twitter](https://github.com/yiimaker/yii2-social-share/blob/master/src/drivers/Twitter.php)
- [+Google](https://github.com/yiimaker/yii2-social-share/blob/master/src/drivers/GooglePlus.php)
- [LinkedIn](https://github.com/yiimaker/yii2-social-share/blob/master/src/drivers/LinkedIn.php)
- [Pinterest](https://github.com/yiimaker/yii2-social-share/blob/master/src/drivers/Pinterest.php)
- [Tumblr](https://github.com/yiimaker/yii2-social-share/blob/master/src/drivers/Tumblr.php)

and drivers for messengers:

- [Telegram](https://github.com/yiimaker/yii2-social-share/blob/master/src/drivers/other/Telegram.php)
- [Viber](https://github.com/yiimaker/yii2-social-share/blob/master/src/drivers/other/mobile/Viber.php)
- [WhatsApp](https://github.com/yiimaker/yii2-social-share/blob/master/src/drivers/other/mobile/WhatsApp.php)

other drivers:

- [Gmail](https://github.com/yiimaker/yii2-social-share/blob/master/src/drivers/other/Gmail.php)

also you can [create](docs/guide/create-driver.md) your driver, it's very simple!

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
$ composer require xerobug/yii2-social-share

```

or add

```
"xerobug/yii2-social-share": "dev-main"

```

to the `require` section of your `composer.json`.

Usage
-----

[](#usage)

Call widget in view file

```

```

Tests
-----

[](#tests)

You can run tests with composer command

```
$ composer test

```

or using following command

```
$ codecept build && codecept run

```

License
-------

[](#license)

[![License](https://camo.githubusercontent.com/39a86ec70fbbf47457d5d1e75c31a01c77d524b2d564a04a0bd8193a92badf85/68747470733a2f2f706f7365722e707567782e6f72672f7969696d616b65722f796969322d736f6369616c2d73686172652f6c6963656e7365)](https://packagist.org/packages/yiimaker/yii2-social-share)

This project is released under the terms of the BSD-3-Clause [license](LICENSE).

Copyright (c) 2017, Yii Maker

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/537bcd003430f4460bf33508e6670d0482451f564dc6d241f79e7e99fd7c021a?d=identicon)[amirhost](/maintainers/amirhost)

---

Top Contributors

[![aamirshahzadxerobug](https://avatars.githubusercontent.com/u/20058979?v=4)](https://github.com/aamirshahzadxerobug "aamirshahzadxerobug (2 commits)")

### Embed Badge

![Health badge](/badges/xerobug-yii2-social-share/health.svg)

```
[![Health](https://phpackages.com/badges/xerobug-yii2-social-share/health.svg)](https://phpackages.com/packages/xerobug-yii2-social-share)
```

###  Alternatives

[alleyinteractive/wp-bulk-task

A library to assist with running performant bulk tasks against WordPress objects.

21326.8k4](/packages/alleyinteractive-wp-bulk-task)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
