PHPackages                             black-lamp/yii2-social-networks - 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. black-lamp/yii2-social-networks

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

black-lamp/yii2-social-networks
===============================

Widget for adding social networks for Yii2

1.2.0(9y ago)0821GNU Public LicensePHP

Since Oct 31Pushed 9y ago1 watchersCompare

[ Source](https://github.com/black-lamp/yii2-social-networks)[ Packagist](https://packagist.org/packages/black-lamp/yii2-social-networks)[ RSS](/packages/black-lamp-yii2-social-networks/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

Social networks widget for Yii2
===============================

[](#social-networks-widget-for-yii2)

This widget adds links to social networks.

[![Latest Stable Version](https://camo.githubusercontent.com/525fc5ea0796d318cff8e700c8692dc35989355209f86634a832571550a70477/68747470733a2f2f706f7365722e707567782e6f72672f626c61636b2d6c616d702f796969322d736f6369616c2d6e6574776f726b732f762f737461626c65)](https://packagist.org/packages/black-lamp/yii2-social-networks)[![Latest Unstable Version](https://camo.githubusercontent.com/1461c2336895002494a5a19c69624bd5cc5beb45da2373fafa2d6ede9f4e9516/68747470733a2f2f706f7365722e707567782e6f72672f626c61636b2d6c616d702f796969322d736f6369616c2d6e6574776f726b732f762f756e737461626c65)](https://packagist.org/packages/black-lamp/yii2-social-networks)[![License](https://camo.githubusercontent.com/759435214249d47b95b2dea50d0790c2f5a88bd09c5b46572eb6a6c35ced218d/68747470733a2f2f706f7365722e707567782e6f72672f626c61636b2d6c616d702f796969322d736f6369616c2d6e6574776f726b732f6c6963656e7365)](https://packagist.org/packages/black-lamp/yii2-social-networks)

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

[](#installation)

#### Run command

[](#run-command)

```
composer require black-lamp/yii2-social-networks

```

or add

```
"black-lamp/yii2-social-networks": "*"
```

to the require section of your composer.json.

#### Add 'SocialNetworks' component to application config

[](#add-socialnetworks-component-to-application-config)

```
'components' => [
    // ...
    'socialNetworks' => [
        'class' => bl\socialNetworks\components\SocialNetworks::className(),
        'networks' => [
            'vk' => [
                'label' => 'VK',
                'link' => 'http://vk.com'
            ],
            'facebook' => [
                'label' => 'Facebook',
                'link' => 'https://facebook.com'
            ],
            'instagram' => [
                'label' => 'Instagram',
                'link' => 'https://instagram.com'
            ],
        ]
    ],
]
```

In this component you need to add and configure social network links

#### Component configuration properties

[](#component-configuration-properties)

OptionDescriptionTypeDefaultnetworksArray of links to the social networksarray-attributesHTML attributes for all linksarray-rewriteAttributesIf set `true` global HTML attributes will be rewritten by custombooleantrueenableSeoEnable or disable appending SEO attributes from `seoAttributes` array for linksbooleantrueseoAttributesArray of SEO attributes for linksarray\['target' =&gt; '\_blank', 'rel' =&gt; 'nofollow'\]#### Configuration properties of networks array

[](#configuration-properties-of-networks-array)

OptionDescriptionTypelabelText for linkstringlinkRoute to the current social networkstringattributesHTML attributes for linkarrayUsing
-----

[](#using)

You should use the widget for adding the share links on page

```

```

Other extensions
----------------

[](#other-extensions)

[yii2-socialshare](https://github.com/black-lamp/yii2-socialshare) - this widget adds share links for social networks

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~3 days

Total

4

Last Release

3519d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0e1784ec992318bf7ed40a2025a0ca035a01143de89054f0f4c9bc39469928c1?d=identicon)[GutsVadim](/maintainers/GutsVadim)

---

Top Contributors

[![greeflas](https://avatars.githubusercontent.com/u/17636915?v=4)](https://github.com/greeflas "greeflas (8 commits)")

---

Tags

black-lampphpsocial-networksyii-extensionyii2yii2socialwidgetnetworks

### Embed Badge

![Health badge](/badges/black-lamp-yii2-social-networks/health.svg)

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

###  Alternatives

[kartik-v/yii2-social

Module containing useful widgets for Yii Framework 2.0 that integrates social functionalities from DISQUS, Facebook, Google etc.

91261.4k8](/packages/kartik-v-yii2-social)[yiimaker/yii2-social-share

Extension for sharing on social networks

48112.8k4](/packages/yiimaker-yii2-social-share)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1358.5k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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