PHPackages                             daikazu/social-links - 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. [Templating &amp; Views](/categories/templating)
4. /
5. daikazu/social-links

ActiveLibrary[Templating &amp; Views](/categories/templating)

daikazu/social-links
====================

Easily generate social links using a simple blade component

v1.2.0(1mo ago)11.3k↓50%MITBladePHP ^8.2CI passing

Since Apr 23Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/daikazu/social-links)[ Packagist](https://packagist.org/packages/daikazu/social-links)[ Docs](https://github.com/daikazu/social-links)[ GitHub Sponsors]()[ RSS](/packages/daikazu-social-links/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (26)Versions (8)Used By (0)

  ![Logo for Social Profile Links for Laravel](art/header-light.png)Social Profile Links for Laravel
================================

[](#social-profile-links-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/9912d528623328d3d1d8c3bacad9d0c5dfacf1fc9637571c46c65db9ab6b9dd8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6461696b617a752f736f6369616c2d6c696e6b732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/daikazu/social-links)[![GitHub Tests Action Status](https://camo.githubusercontent.com/b192882a83dfbddcd43483d551fa166575873b4342afb66729a351f3b281ef70/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6461696b617a752f736f6369616c2d6c696e6b732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/daikazu/social-links/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/c4cb439ea8754a61139f8fc3cec19d54bbc441e90cfdd61b2b000cbee22c6a82/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6461696b617a752f736f6369616c2d6c696e6b732f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/daikazu/social-links/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/fdac7d3c257d253f281a5b1439dcffe854cb35f29ed6bd86bbf6abf5f2a19241/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6461696b617a752f736f6369616c2d6c696e6b732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/daikazu/social-links)

This Laravel package provides easy-to-use functionalities to generate social media profile URLs and render social icon links directly in your Laravel applications.

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

[](#installation)

You can install the package via composer:

```
composer require daikazu/social-links
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="social-links-views"
```

Usage
-----

[](#usage)

### Generating Social Profile URLs

[](#generating-social-profile-urls)

You can generate a URL for a social media profile using the `social_url` helper function. Here's how you can use it:

#### Using Strings (Legacy Approach)

[](#using-strings-legacy-approach)

```
$url = social_url('facebook', 'username');
```

Replace `'facebook'` with the desired platform and `'username'` with the user's social media profile username.

#### Using Enums (Recommended)

[](#using-enums-recommended)

You can also use the `SocialNetwork` enum for better type safety and IDE autocompletion:

```
use Daikazu\SocialLinks\Enums\SocialNetwork;

$url = social_url(SocialNetwork::FACEBOOK, 'username');

// Or directly from the enum
$url = SocialNetwork::FACEBOOK->getUrl('username');
```

### Displaying Social Icons

[](#displaying-social-icons)

To display a social icon link, use the Blade component included in the package. Here's an example:

#### Using Strings (Legacy Approach)

[](#using-strings-legacy-approach-1)

```

```

#### Using Enums (Recommended)

[](#using-enums-recommended-1)

```
use Daikazu\SocialLinks\Enums\SocialNetwork;

// In your controller or view composer
$platform = SocialNetwork::FACEBOOK;

// In your Blade view

```

Adjust the `platform`, `name`, and `icon-styles` attributes as necessary to fit your needs.

Supported Social Platforms
--------------------------

[](#supported-social-platforms)

The package currently supports URL generation and icon link rendering for the following social media platforms:

- Address
- Apple Music
- Bandcamp
- Booking
- Buy Merch
- Contact Form
- Discord
- Donate
- Email
- Facebook
- Github
- Google Play
- Instagram
- LinkedIn
- Other
- Patreon
- Phone
- Pinterest
- Reddit
- Snapchat
- Soundcloud
- Spotify
- Stream
- Telegram
- Tiktok
- Twitch
- Twitter
- Website
- Whatsapp
- X (formerly Twitter)
- Yelp
- Youtube

Check back for updates or contribute to extend support for other platforms.

Here is some example code for displaying all supported social icons:

```
@php
use Daikazu\SocialLinks\Enums\SocialNetwork;
$socialNetworks = SocialNetwork::cases();
@endphp

    @foreach ($socialNetworks as $network)

        {{ ucfirst($network->value) }}

    @endforeach

```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Mike Wall](https://github.com/daikazu)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance89

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Recently: every ~173 days

Total

6

Last Release

56d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/00a5aa701f964455918b2e454e7b460fe2ef729639337a059d5bac12e162027e?d=identicon)[daikazu](/maintainers/daikazu)

---

Top Contributors

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

---

Tags

laravelsocial links

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/daikazu-social-links/health.svg)

```
[![Health](https://phpackages.com/badges/daikazu-social-links/health.svg)](https://phpackages.com/packages/daikazu-social-links)
```

###  Alternatives

[ryangjchandler/blade-capture-directive

Create inline partials in your Blade templates with ease.

8222.2M12](/packages/ryangjchandler-blade-capture-directive)[spatie/laravel-blade-comments

Add debug comments to your rendered output

177325.5k](/packages/spatie-laravel-blade-comments)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[daikazu/laravel-glider

Start using Glide on-the-fly instantly in your Laravel blade templates.

882.3k](/packages/daikazu-laravel-glider)[combindma/dash-ui

A streamlined and stylish UI component library for Laravel Blade, crafted with TailwindCSS and AlpineJs for simplicity and elegance.

631.4k](/packages/combindma-dash-ui)

PHPackages © 2026

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