PHPackages                             bovidiu/js-sharing-bootstrap - 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. bovidiu/js-sharing-bootstrap

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

bovidiu/js-sharing-bootstrap
============================

Social media sharing buttons, in a simple library

1.1(9y ago)3234[1 PRs](https://github.com/bovidiu/js-sharing-buttons/pulls)MITTypeScript

Since Nov 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/bovidiu/js-sharing-buttons)[ Packagist](https://packagist.org/packages/bovidiu/js-sharing-bootstrap)[ RSS](/packages/bovidiu-js-sharing-bootstrap/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (8)Used By (0)

[![Build Status](https://camo.githubusercontent.com/da420d8926f7f04358c060cf2c09abe9d0bc41c26adafdedae14cd99d3ae232d/68747470733a2f2f7472617669732d63692e6f72672f626f76696469752f6a732d73686172696e672d627574746f6e732e7376673f6272616e63683d76312e342d646576)](https://travis-ci.org/bovidiu/js-sharing-buttons)

[![](https://camo.githubusercontent.com/95f7b9806f2a1ef5d814cb45d41cfe83662e84a559c253f7afbde8a5e54bcfb8/68747470733a2f2f646174612e6a7364656c6976722e636f6d2f76312f7061636b6167652f6e706d2f6a732d73686172696e672d627574746f6e732f6261646765)](https://www.jsdelivr.com/package/npm/js-sharing-buttons)

[![npm](https://camo.githubusercontent.com/b4b5502502e7cc57c94fea4210c78e55b8d9da63cf1784dd43c81f928d3daa0e/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f64742f6a732d73686172696e672d627574746f6e732e7376673f6c6f676f3d6e706d)](https://www.npmjs.com/package/js-sharing-buttons)

⚠️ New Version
==============

[](#warning-new-version)

In the next few months we are looking to optimise the small library and extended. Feel free to join our discussion  and let us know your oppinion or just introduce yourself.

Social Media Sharing Buttons
============================

[](#social-media-sharing-buttons)

Social media buttons to share your page to social media;

The current library of social media list includes:

- Facebook
- Twitter
- LinkedIn
- Pinterest
- Google
- Digg
- Tumblr
- Reddit
- VKontakte
- Delicious
- Gmail
- Blogger
- Amazon
- Bitly

\#Install You can use composer to install it `composer require bovidiu/js-sharing-bootstrap` or npm `npm i js-sharing-buttons`

Or implement it manually by adding the script in the footer of the pagelike:

```

```

or use the CDN

```

```

SRI CDN

```

```

\#Configure

Script
------

[](#script)

After adding the above script, right after add:

```

var sm = new SocialMedia();
sm.init();

```

It shoould look like similar to this:

```

var sm = new SocialMedia();
sm.init();

```

HTML
----

[](#html)

Add any where in the page a div or any HTML element with a class called `socialMedia`, ie:

```

```

Custom settings
---------------

[](#custom-settings)

The library supports multiple instances in a page as well as custom configurations.

### Change target element class

[](#change-target-element-class)

When the library get initialize include a `defaultTarget` class.

```

var sm = new SocialMedia({
  defaultTarget: 'myElementClassTarget'
});
sm.init();

```

### Activate/Deactivate buttons

[](#activatedeactivate-buttons)

By default the library will show Facebook and Twitter links, however you can enable/disable all icons. Example:

#### Activate LinkedIn button

[](#activate-linkedin-button)

```

var sm = new SocialMedia({
  icon: {
    linkedin: {
      active : true
    }
  }
});
sm.init();

```

#### Deactivate Facebook button

[](#deactivate-facebook-button)

```

var sm = new SocialMedia({
  icon: {
    facebook: {
      active : false
    }
  }
});
sm.init();

```

###  Health Score

32

—

LowBetter than 71% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity68

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 ~6 days

Total

2

Last Release

3446d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/67229997f992afe9812a3ff933aab4a7a0e2b6d73e09e2fac5f7f193352ae4c8?d=identicon)[bovidiu](/maintainers/bovidiu)

---

Top Contributors

[![bovidiu](https://avatars.githubusercontent.com/u/4076224?v=4)](https://github.com/bovidiu "bovidiu (34 commits)")

### Embed Badge

![Health badge](/badges/bovidiu-js-sharing-bootstrap/health.svg)

```
[![Health](https://phpackages.com/badges/bovidiu-js-sharing-bootstrap/health.svg)](https://phpackages.com/packages/bovidiu-js-sharing-bootstrap)
```

###  Alternatives

[nunomaduro/essentials

Just better defaults for your Laravel projects.

1.2k317.5k51](/packages/nunomaduro-essentials)[snowplow/referer-parser

Snowplow Refer(r)er parser for PHP

3782.2M30](/packages/snowplow-referer-parser)[n98/junit-xml

JUnit XML Document generation library

168.7M8](/packages/n98-junit-xml)[zenstruck/bytes

Parse, manipulate, humanize, and format bytes.

25662.7k8](/packages/zenstruck-bytes)[yajra/laravel-disqus

A simple Disqus platform integration with Laravel.

8456.9k](/packages/yajra-laravel-disqus)

PHPackages © 2026

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