PHPackages                             yiimaker/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. [Image &amp; Media](/categories/media)
4. /
5. yiimaker/yii2-social-share

ActiveYii2-extension[Image &amp; Media](/categories/media)

yiimaker/yii2-social-share
==========================

Extension for sharing on social networks

v2.3.4(1y ago)48111.3k↓41.9%13[1 PRs](https://github.com/yiimaker/yii2-social-share/pulls)4BSD-3-ClausePHPPHP &gt;=5.6.0

Since Mar 29Pushed 1y ago9 watchersCompare

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

READMEChangelog (10)Dependencies (5)Versions (19)Used By (4)

[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct.svg)](https://stand-with-ukraine.pp.ua)

 [ ![](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)[![Total Downloads](https://camo.githubusercontent.com/a582022475d3a2fa906446552d822eeba9c0b1630cb793921d1143d81a6ddb52/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7969696d616b65722f796969322d736f6369616c2d73686172652e737667)](https://packagist.org/packages/yiimaker/yii2-social-share)[![Monthly Downloads](https://camo.githubusercontent.com/39d63c61bf74c2bdd7fca8fc830b9d27851d752c8c05c9984fbbaf901993e98c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f7969696d616b65722f796969322d736f6369616c2d73686172652e737667)](https://packagist.org/packages/yiimaker/yii2-social-share)[![Latest Stable Version](https://camo.githubusercontent.com/9b43b631f5c965e74df5d1a114d4777c75e7052034a19eea83e61ac405714bb9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7969696d616b65722f796969322d736f6369616c2d73686172652e737667)](https://packagist.org/packages/yiimaker/yii2-social-share)[![StandWithUkraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg)](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md)

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:

- [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)
- [Trello](https://github.com/yiimaker/yii2-social-share/blob/master/src/drivers/Trello.php)

drivers for messengers:

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

and other drivers:

- [Gmail](https://github.com/yiimaker/yii2-social-share/blob/master/src/drivers/Gmail.php)
- [Yahoo](https://github.com/yiimaker/yii2-social-share/blob/master/src/drivers/Yahoo.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 yiimaker/yii2-social-share

```

or add

```
"yiimaker/yii2-social-share": "~2.3"

```

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

Usage
-----

[](#usage)

Configure social networks in config file

```
    'components' => [
        // ...
        'socialShare' => [
            'class' => \ymaker\social\share\configurators\Configurator::class,
            'socialNetworks' => [
                'facebook' => [
                    'class' => \ymaker\social\share\drivers\Facebook::class,
                ],
            ],
        ],
    ],
```

and then call widget in view file

```

```

Tests
-----

[](#tests)

You can run tests with composer command

```
$ composer tests

```

or using following command

```
$ ./vendor/bin/codecept build && ./vendor/bin/codecept run

```

Contributing
------------

[](#contributing)

For information about contributing please read [CONTRIBUTING.md](CONTRIBUTING.md).

Sponsoring
----------

[](#sponsoring)

[![Buy Me A Coffee](https://camo.githubusercontent.com/0cf29a542375e1a46e84d8bf5805a4e5c0a6ee98b6547ccdc0c55eed49d99c69/68747470733a2f2f63646e2e6275796d6561636f666665652e636f6d2f627574746f6e732f76322f64656661756c742d79656c6c6f772e706e67)](https://www.buymeacoffee.com/OCmHjEY)

License
-------

[](#license)

[![License](https://camo.githubusercontent.com/19710d914a5e79bee794384ea2c0c8ab451597bb39590f46abfcc1fb0ab5ad43/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7969696d616b65722f796969322d736f6369616c2d73686172652e737667)](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-2021, Volodymyr Kupriienko

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity44

Moderate usage in the ecosystem

Community26

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 91.5% 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.

###  Release Activity

Cadence

Every ~169 days

Recently: every ~543 days

Total

17

Last Release

627d ago

Major Versions

1.4.1 → 2.0.02018-01-18

v2.2.0 → 3.0.x-dev2018-06-23

PHP version history (2 changes)1.0.0PHP &gt;=5.6.0

3.0.x-devPHP &gt;=7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/81dbf9eb881773e58a5472007499612c6e0c93007a75336688a1a21b9630dc1e?d=identicon)[YiiMaker](/maintainers/YiiMaker)

![](https://www.gravatar.com/avatar/9c7243572d974ba9ce049b0a67fd95cf547fd62ea531784d2dfbcc1fbee16806?d=identicon)[greeflas](/maintainers/greeflas)

---

Top Contributors

[![greeflas](https://avatars.githubusercontent.com/u/17636915?v=4)](https://github.com/greeflas "greeflas (182 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (12 commits)")[![sokolnikov911](https://avatars.githubusercontent.com/u/11427142?v=4)](https://github.com/sokolnikov911 "sokolnikov911 (3 commits)")[![bscheshirwork](https://avatars.githubusercontent.com/u/5769211?v=4)](https://github.com/bscheshirwork "bscheshirwork (2 commits)")

---

Tags

social-networkssocial-sharesocial-share-pluginyii2yii2-extensionyii2-widgetsmediayii2socialwidgetsharenetworks

###  Code Quality

TestsCodeception

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[bilginnet/yii2-cropper

Yii2 Bootstrap Cropper Input Widget

2232.1k](/packages/bilginnet-yii2-cropper)[demi/cropper

Yii2 wrapper for Image Cropper javascript library

1328.7k1](/packages/demi-cropper)

PHPackages © 2026

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