PHPackages                             stevenpaw/silverstripe-sociallink - 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. stevenpaw/silverstripe-sociallink

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

stevenpaw/silverstripe-sociallink
=================================

A small module for adding social links to silverstripe linkfields

6.x-dev(today)00BSD-3-ClauseJavaScriptPHP ^8.3

Since Jul 1Pushed todayCompare

[ Source](https://github.com/StevenPaw/silverstripe-sociallink)[ Packagist](https://packagist.org/packages/stevenpaw/silverstripe-sociallink)[ RSS](/packages/stevenpaw-silverstripe-sociallink/feed)WikiDiscussions 6 Synced today

READMEChangelogDependencies (8)Versions (1)Used By (0)

stevenpaw/silverstripe-sociallink
=================================

[](#stevenpawsilverstripe-sociallink)

A Silverstripe 6+ module that adds a **Social Media Link** type to [silverstripe/linkfield](https://github.com/silverstripe/silverstripe-linkfield). Editors can pick a social platform from a searchable dropdown and enter the profile URL. Platform icons are self-hosted SVGs (DSGVO-compliant, no external CDN).

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

[](#requirements)

- PHP 8.3+
- Silverstripe CMS 6.1+
- silverstripe/linkfield 5+

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

[](#installation)

```
composer require stevenpaw/silverstripe-sociallink
```

After installing, run a dev/build to create the database table and seed the platform records:

```
/dev/build?flush=1

```

Usage
-----

[](#usage)

### In the CMS

[](#in-the-cms)

`SocialLink` is automatically available as a link type in any `LinkField`. Editors select a platform from the searchable dropdown and enter the profile URL.

### In templates

[](#in-templates)

Check whether the current link is a SocialLink by testing `$SocialPlatform.exists`. The `SocialPlatform` object provides two helper methods:

**Inline SVG** (recommended — no HTTP request, inherits CSS `color`):

```

        $SocialPlatform.IconSVG

    $Title

```

**Public URL** (for use in `` or CSS `background-image`):

```

```

**Platform key** (e.g. `instagram`, `youtube`) for custom logic or CSS classes:

```

    ...

```

Or in PHP:

```
$platformKey = $link->getPlatform(); // e.g. 'instagram'
```

### Supported platforms

[](#supported-platforms)

46 platforms are seeded automatically on `dev/build`:

Apple Music, Atlassian, Bandcamp, Behance, Bluesky, Dailymotion, Deezer, Discord, Dribbble, Facebook, Flickr, GitHub, GitLab, Instagram, KakaoTalk, LINE, LinkedIn, Medium, Microsoft Teams, Mixcloud, Odnoklassniki, Patreon, Pinterest, Reddit, ReverbNation, Signal, Skype, Slack, Snapchat, SoundCloud, Spotify, Steam, Telegram, Tidal, TikTok, Twitch, Vimeo, VK, WeChat, Weibo, WhatsApp, X (Twitter), YouTube, YouTube Music, Zoom

Platforms without a matching FontAwesome 6 Brands icon (Deezer, KakaoTalk, ReverbNation, Signal, Tidal, Zoom) fall back to a generic share icon.

If you need a new public platform, please submit an issue on the repository and I will gladly add it.

License
-------

[](#license)

BSD 3-Clause

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance100

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

0d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/37051985?v=4)[Steffen Kahl](/maintainers/StevenPaw)[@StevenPaw](https://github.com/StevenPaw)

---

Top Contributors

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

---

Tags

silverstripecms

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/stevenpaw-silverstripe-sociallink/health.svg)

```
[![Health](https://phpackages.com/badges/stevenpaw-silverstripe-sociallink/health.svg)](https://phpackages.com/packages/stevenpaw-silverstripe-sociallink)
```

###  Alternatives

[silverstripe/userforms

UserForms enables CMS users to create dynamic forms via a drag and drop interface and without getting involved in any PHP code

1371.1M85](/packages/silverstripe-userforms)[silverstripe/cms

The SilverStripe Content Management System

5253.6M1.4k](/packages/silverstripe-cms)[symbiote/silverstripe-advancedworkflow

Adds configurable workflow support to the CMS, with a GUI for creating custom workflow definitions.

46302.4k9](/packages/symbiote-silverstripe-advancedworkflow)[silverstripe/admin

SilverStripe admin interface

262.8M381](/packages/silverstripe-admin)[axllent/silverstripe-cms-tweaks

Several CMS usability improvements

1726.4k1](/packages/axllent-silverstripe-cms-tweaks)

PHPackages © 2026

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