PHPackages                             webvpf/wn-share-plugin - 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. webvpf/wn-share-plugin

ActiveWinter-plugin[Utility &amp; Helpers](/categories/utility)

webvpf/wn-share-plugin
======================

Share Buttons - plugin for Winter CMS. Displays share buttons.

v1.2.4(9mo ago)75092MITPHP

Since Apr 30Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/WebVPF/wn-share-plugin)[ Packagist](https://packagist.org/packages/webvpf/wn-share-plugin)[ Docs](https://github.com/WebVPF/wn-share-plugin)[ RSS](/packages/webvpf-wn-share-plugin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)DependenciesVersions (9)Used By (0)

Share
=====

[](#share)

Share Buttons - plugin for Winter CMS. Plugin component displays share buttons.

Инструкция на русском языке:

Installation Сomposer:

```
composer require webvpf/wn-share-plugin
```

Social Networks and Messengers:

- Facebook
- Twitter
- VK
- Odnoklassniki
- LinkedIn
- Telegram
- Viber
- WhatsApp
- X

Features:

- easy setup
- opens in a popup window or smartphone app
- not blocked by adblockers
- SVG icons are used for buttons, so there are no dependencies on icon fonts
- no external links
- there is no interaction with database
- optimized [javascript file](https://github.com/WebVPF/wn-share-plugin/blob/master/assets/js/share.min.js "open file") less than 1 Kb
- without jQuery

Selecting and Sorting Buttons
-----------------------------

[](#selecting-and-sorting-buttons)

Specify the id of the buttons that you want to display, separated by commas (fb, tw, vk, ok, in, tg, vb, wa, x)

[![Component Share Buttons](https://user-images.githubusercontent.com/61043464/112979788-b89bb700-9161-11eb-8698-81be8763e919.jpg)](https://user-images.githubusercontent.com/61043464/112979788-b89bb700-9161-11eb-8698-81be8763e919.jpg)

In this case, you can specify the order in which the buttons will be displayed.

You can do a similar layout:

```
Share: {% component 'ShareButtons' %}
```

or

```

    Share
    {% component 'ShareButtons' %}

```

---

Button Style
------------

[](#button-style)

Silver

[![Silver](https://user-images.githubusercontent.com/61043464/75198717-f57cc980-5769-11ea-97c6-539071d1cb4e.jpg)](https://user-images.githubusercontent.com/61043464/75198717-f57cc980-5769-11ea-97c6-539071d1cb4e.jpg)

Color

[![Color](https://user-images.githubusercontent.com/61043464/75198720-f7468d00-5769-11ea-9627-4d81da355d3b.jpg)](https://user-images.githubusercontent.com/61043464/75198720-f7468d00-5769-11ea-9627-4d81da355d3b.jpg)

With text

[![With text](https://user-images.githubusercontent.com/61043464/75198725-fa417d80-5769-11ea-801f-beb789e474c5.jpg)](https://user-images.githubusercontent.com/61043464/75198725-fa417d80-5769-11ea-801f-beb789e474c5.jpg)

Simple settings are available in the component settings.

Disable css
-----------

[](#disable-css)

You can completely disable predefined css in component settings. Styles can be placed in css themes or wherever convenient for you.

---

Paste buttons
-------------

[](#paste-buttons)

If you work with code, you can insert buttons as follows:

```
[ShareButtons]
btns = "fb, tw, vk, ok, in, tg, vb, wa, x"
css = 1
skin = "text"
==
Share: {% component 'ShareButtons' %}
```

### Buttons:

[](#buttons)

- `fb` - Facebook
- `in` - LinkedIn
- `ok` - Odnoklassniki
- `tg` - Telegram
- `tw` - Twitter
- `vb` - Viber
- `vk` - VK
- `wa` - WhatsApp
- `x` - X

### CSS:

[](#css)

- 1 - enable
- 0 - disable

### Skins:

[](#skins)

- `silver`
- `color`
- `text`

Function `share`
----------------

[](#function-share)

You can call the `share()` function from within your scripts.

```
share(id, paramsUrl);
```

ParameterTypeRequiredDescription`id`stringYesSocial network ID (fb, tw, vk, ok, in, tg, vb, wa, x)`paramsUrl`objectNoCan have `search` and `hash` options.### Examples

[](#examples)

The following example will send a page link to the Telegram messenger.

```
share('tg');

// https://example.com/slug
```

#### `search` parameter

[](#search-parameter)

Part of the address after `?`

```
share('wa', {search: 'a=2&b=3'});

// https://example.com/slug?a=2&b=3
```

#### `hash` parameter

[](#hash-parameter)

The part of the URL that comes after the pound sign '#'

```
share('wa', {hash: 'anchor'});

// https://example.com/slug#anchor
```

#### `search` and `hash` parameters

[](#search-and-hash-parameters)

```
share('wa', {search: 'a=2&b=3', hash: 'anchor'});

// https://example.com/slug?a=2&b=3#anchor
```

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance56

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.3% 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 ~222 days

Recently: every ~294 days

Total

8

Last Release

288d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7445b1b017644e642f1a2ac78bb6eb7565baaae3aebebe03e60e9549846f64da?d=identicon)[webvpf](/maintainers/webvpf)

---

Top Contributors

[![WebVPF](https://avatars.githubusercontent.com/u/61043464?v=4)](https://github.com/WebVPF "WebVPF (58 commits)")[![damsfx](https://avatars.githubusercontent.com/u/282242?v=4)](https://github.com/damsfx "damsfx (1 commits)")

---

Tags

sharewintercmswintercms-pluginsocialsharewinter cmswintercmswintercms-plugin

### Embed Badge

![Health badge](/badges/webvpf-wn-share-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/webvpf-wn-share-plugin/health.svg)](https://phpackages.com/packages/webvpf-wn-share-plugin)
```

###  Alternatives

[social-links/social-links

PHP library to generate share buttons

112338.6k2](/packages/social-links-social-links)[ryannielson/shareable

A Laravel 4 package to make it easy to add social sharing buttons to your application.

222.8k](/packages/ryannielson-shareable)[yaro/soc-share

Social network share link builder

101.9k](/packages/yaro-soc-share)

PHPackages © 2026

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