PHPackages                             pixeldev/sulu-socialbundle - 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. pixeldev/sulu-socialbundle

AbandonedArchivedSulu-bundle[Utility &amp; Helpers](/categories/utility)

pixeldev/sulu-socialbundle
==========================

Social tools for Sulu

2.6.1(1y ago)03161[7 PRs](https://github.com/Pixel-Developpement/sulu-socialbundle/pulls)MITPHPPHP ^8.0

Since May 23Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Pixel-Developpement/sulu-socialbundle)[ Packagist](https://packagist.org/packages/pixeldev/sulu-socialbundle)[ Docs](https://github.com/Pixel-Developpement/sulu-socialbundle)[ RSS](/packages/pixeldev-sulu-socialbundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (12)Versions (16)Used By (0)

Sulu social bundle
==================

[](#sulu-social-bundle)

[![GitHub release (with filter)](https://camo.githubusercontent.com/fc3393ae2c30100acd1ed77e5bcf04a478e0aa78729da8ee234798212c9079bf/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f506978656c2d446576656c6f7070656d656e742f73756c752d736f6369616c62756e646c653f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/fc3393ae2c30100acd1ed77e5bcf04a478e0aa78729da8ee234798212c9079bf/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f506978656c2d446576656c6f7070656d656e742f73756c752d736f6369616c62756e646c653f7374796c653d666f722d7468652d6261646765)[![Dependency](https://camo.githubusercontent.com/a7164181066052cd108eee770b71f67bfd7cbe74cf87af56067534814e843f34/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73756c752d322e352d6363613030302e7376673f7374796c653d666f722d7468652d6261646765)](https://sulu.io/)

Presentation
------------

[](#presentation)

A Sulu bundle to easily manage the social medias.

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

[](#requirements)

- PHP &gt;= 8.0
- Sulu &gt;= 2.4.\*
- Symfony &gt;= 5.4
- Composer

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

[](#installation)

### Install the bundle

[](#install-the-bundle)

Execute the following [composer](https://getcomposer.org/) command to add the bundle to the dependencies of your project:

```
composer require pixeldev/sulu-socialbundle --with-all-dependencies
```

### Enable the bundle

[](#enable-the-bundle)

Enable the bundle by adding it to the list of registered bundles in the `config/bundles.php` file of your project:

```
return [
    /* ... */
    Pixel\SocialBundle\SocialBundle::class => ['all' => true],
];
```

### Update schema

[](#update-schema)

```
bin/console do:sch:up --force
```

Bundle Config
-------------

[](#bundle-config)

Define the Admin Api Route in `routes_admin.yaml`

```
social.settings_api:
  type: rest
  prefix: /admin/api
  resource: pixel_social.settings_route_controller
  name_prefix: social.
```

Use
---

[](#use)

General use
-----------

[](#general-use)

To access the social medias settings, on the administration interface, go to the Settings section and click on "Social medias management". Once on the form, you will see block content type.

This block is composed of on type, the "Social media" type. It is made with two fields:

- The social media name
- The social media link

The social media name field is a select in which you can choose the social media you want.

The social media link is a link field type.

Do not forget to click on "Save" to have the information stored and available.

Twig extension
--------------

[](#twig-extension)

This bundle comes with several twig function that will help you in rendering the social medias you filled:

**social\_settings()**: returns all the social medias you provided. No parameters are required.

Example of use:

```
{% set socialSettings = social_settings() %}

    {% if socialSettings is defined %}
        {% for socialMedia in socialSettings.socialMedias %}

                    {{ socialMedia.socialMediaName }}

        {% endfor %}
    {% endif %}

```

**facebook\_share(link, title)**: returns a link to share on Facebook. It takes two parameters:

- link: the link you want to share
- title: the text that will appear on the shared link on Facebook

Example of use:

```
Share on Facebook
```

**twitter\_share(link, title, origin)**: returns a link to share on Twitter. It takes three parameters:

- link: the link you want to share
- title: the text that will appear on the shared link on Twitter
- origin: the origin of the sharing

Example of use:

```
Share on LinkedIn
```

**whatsapp\_share(text, link)**: returns a link to share on WhatsApp. It takes two parameters:

- text: the text that will appear on the shared link on WhatsApp
- link: the link you want to share

Example of use:

```
Share on Pinterest
```

**social\_media\_logo(name)**: renders the logo of the specified social media. It takes one parameter:

- name: name of the social media

Example of use:

```
{{ social_media_logo(socialMedia.socialMediaName) }}
```

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

[](#contributing)

You can contribute to this bundle. The only thing you must do is respect the coding standard we implements. You can find them in the `ecs.php` file.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

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

Recently: every ~182 days

Total

6

Last Release

720d ago

Major Versions

1.0.2 → 2.4.02022-12-07

PHP version history (2 changes)1.0.0PHP ^7.4 || ^8.0

2.6.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/d2b87043ea111a9f5d76ffa990f48eea6e80576483c7bf33f0dcdd5a899c15c8?d=identicon)[pixeldev](/maintainers/pixeldev)

---

Top Contributors

[![matthieu2607](https://avatars.githubusercontent.com/u/14790414?v=4)](https://github.com/matthieu2607 "matthieu2607 (17 commits)")

---

Tags

sulusulucms

###  Code Quality

Static AnalysisPHPStan

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/pixeldev-sulu-socialbundle/health.svg)

```
[![Health](https://phpackages.com/badges/pixeldev-sulu-socialbundle/health.svg)](https://phpackages.com/packages/pixeldev-sulu-socialbundle)
```

###  Alternatives

[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[sulu/article-bundle

Bundle for managing localized content-rich entities like blog-posts in the Sulu content management system

66409.6k2](/packages/sulu-article-bundle)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)[sulu/headless-bundle

Bundle that provides controllers and services for using Sulu as headless content management system

55133.7k2](/packages/sulu-headless-bundle)[robole/sulu-ai-translator-bundle

Translate any type of content using DeepL

181.3k](/packages/robole-sulu-ai-translator-bundle)[netgen/content-browser

Netgen Content Browser is a Symfony bundle that provides an interface which selects items from any kind of backend and returns the IDs of selected items back to the calling code.

14112.1k8](/packages/netgen-content-browser)

PHPackages © 2026

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