PHPackages                             c975l/sharebuttons-bundle - 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. c975l/sharebuttons-bundle

Abandoned → [c975l/social-bundle](/?search=c975l%2Fsocial-bundle)ArchivedSymfony-bundle[Utility &amp; Helpers](/categories/utility)

c975l/sharebuttons-bundle
=========================

Symfony bundle that provides a Twig function to embed share buttons for popular social networks, with SVG icons included and multiple display styles.

v4.13.1(1mo ago)16131MITPHPPHP &gt;=8.0

Since Mar 4Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/975L/ShareButtonsBundle)[ Packagist](https://packagist.org/packages/c975l/sharebuttons-bundle)[ Fund](https://buymeacoff.ee/laurentmarquet)[ Fund](https://opencollective.com/laurent-marquet)[ RSS](/packages/c975l-sharebuttons-bundle/feed)WikiDiscussions main Synced 4w ago

READMEChangelogDependencies (3)Versions (57)Used By (1)

ShareButtonsBundle
==================

[](#sharebuttonsbundle)

**THIS BUNDLE HAS BEEN REPLACED BY [c975L/SocialBundle](https://github.com/975L/SocialBundle)**

Symfony bundle that provides a Twig function to embed share buttons for popular social networks, with SVG icons included and multiple display styles.

[![GitHub](https://camo.githubusercontent.com/2b4c06468531576b77d2c8912530ead165ca32dab3f1b1b205b0dc88defcc4f2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f3937354c2f5368617265427574746f6e7342756e646c65)](https://github.com/975L/ShareButtonsBundle/blob/master/LICENSE)[![Packagist Version](https://camo.githubusercontent.com/74f395d5d32e89395a26767064f4176cc19a6c238d00d71dd036688a535769d6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f633937356c2f7368617265627574746f6e732d62756e646c65)](https://packagist.org/packages/c975l/sharebuttons-bundle)[![PHP Version](https://camo.githubusercontent.com/c02613e260cec666256c4b97b603a66e7a8f2a5a3effbdaa208353ebf216c807/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f633937356c2f7368617265627574746f6e732d62756e646c65)](https://packagist.org/packages/c975l/sharebuttons-bundle)

---

Features
--------

[](#features)

- Single Twig function `sharebuttons()` to embed share buttons anywhere in a template
- Supports a configurable list of social networks
- `main` shorthand to display the most common networks
- Multiple display styles: `distinct`, `ellipse`, `circle`, `toolbar`
- Alignment options: `left`, `center`, `right`
- Icon-only or icon + text display
- Optional custom URL override
- SVG icons embedded — no external CSS or JS required
- Configuration managed via [c975L/ConfigBundle](https://github.com/975L/ConfigBundle)

---

Requirements
------------

[](#requirements)

- PHP &gt;= 8.0
- [c975L/ConfigBundle](https://github.com/975L/ConfigBundle)

---

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

[](#installation)

### Download

[](#download)

```
composer require c975l/sharebuttons-bundle
```

### Enable routes

[](#enable-routes)

Add the following to `config/routes.yaml`:

```
c975_l_share_buttons:
    resource: "@c975LShareButtonsBundle/"
    type: attribute
    prefix: /
    # For multilingual websites:
    # prefix: /{_locale}
    # defaults: { _locale: '%locale%' }
    # requirements:
    #     _locale: en|fr|es
```

### Load configuration values

[](#load-configuration-values)

```
php bin/console c975l:config:load-all
```

Then use the ConfigBundle dashboard to set the values for each key.

---

Usage
-----

[](#usage)

Use the `sharebuttons()` Twig function to render share buttons:

```
{# Full signature #}
{{ sharebuttons(shares, style, alignment, displayIcon, displayText, url) }}

{# Display the main social networks with default style #}
{{ sharebuttons('main') }}

{# Custom selection, ellipse style, centered, icon only #}
{{ sharebuttons(['facebook', 'linkedin', 'email'], 'ellipse', 'center', true, false) }}

{# Override the shared URL #}
{{ sharebuttons('main', 'distinct', 'center', true, false, 'https://example.com/my-page') }}
```

ParameterTypeDefaultDescription`shares``array|'main'`—Network list, or `'main'` for the default set`style``string``'distinct'``distinct`, `ellipse`, `circle`, or `toolbar``alignment``string``'center'``left`, `center`, or `right``displayIcon``bool``true`Show network icon`displayText``bool``false`Show network name`url``string|null``null`Override the shared URL (defaults to current page)---

If this project **helps you save development time**, consider sponsoring via the **Sponsor** button at the top of the GitHub page. Thank you!

###  Health Score

55

—

FairBetter than 97% of packages

Maintenance93

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

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

Recently: every ~62 days

Total

55

Last Release

33d ago

Major Versions

v1.7.1 → v2.02022-07-25

v2.0.2 → v3.02024-01-16

2.x-dev → v3.0.12024-01-17

v3.0.4 → v4.02024-01-22

PHP version history (5 changes)v1.0PHP &gt;=5.5.9

v1.1PHP ^7

v1.6PHP \*

v2.0PHP ^8

v4.0PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/5679e828a48e37afabd92da60ab8d78bf65a3bedc0f618ef3fddf92082840f52?d=identicon)[Laurent3170](/maintainers/Laurent3170)

---

Top Contributors

[![LaurentMarquet](https://avatars.githubusercontent.com/u/16478286?v=4)](https://github.com/LaurentMarquet "LaurentMarquet (54 commits)")

---

Tags

facebooksharesharingsocial-networksymfonysymfony-bundletwittersymfonybundlebuttonsshare

### Embed Badge

![Health badge](/badges/c975l-sharebuttons-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/c975l-sharebuttons-bundle/health.svg)](https://phpackages.com/packages/c975l-sharebuttons-bundle)
```

###  Alternatives

[ekreative/uuid-extra-bundle

Paramconverter, Normalizer and Form Type for Ramsey Uuid

18171.1k](/packages/ekreative-uuid-extra-bundle)[gwk/dynamo-session-bundle

DynamoDB Session Handler Bundle for Symfony 2

14210.9k](/packages/gwk-dynamo-session-bundle)[fsi/datagrid-bundle

FSi Datagrid Bundle

1861.5k1](/packages/fsi-datagrid-bundle)

PHPackages © 2026

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