PHPackages                             enflow/laravel-social-share - 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. enflow/laravel-social-share

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

enflow/laravel-social-share
===========================

Easily add social share links

3.4.0(1y ago)221.0k↑12.5%[1 PRs](https://github.com/enflow/laravel-social-share/pulls)MITPHPPHP ^8.3CI passing

Since Jan 7Pushed 1y ago3 watchersCompare

[ Source](https://github.com/enflow/laravel-social-share)[ Packagist](https://packagist.org/packages/enflow/laravel-social-share)[ Fund](https://enflow.nl/contact)[ RSS](/packages/enflow-laravel-social-share/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (6)Versions (10)Used By (0)

Easily add social share links
=============================

[](#easily-add-social-share-links)

[![Latest Version on Packagist](https://camo.githubusercontent.com/9784929aa8d286121ebf6e36fae436973351bae99e2a84519d7649482fe60281/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656e666c6f772f6c61726176656c2d736f6369616c2d73686172652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/enflow/laravel-social-share)[![GitHub Workflow Status](https://github.com/enflow/laravel-social-share/workflows/run-tests/badge.svg)](https://github.com/enflow/laravel-social-share/workflows/run-tests/badge.svg)[![Total Downloads](https://camo.githubusercontent.com/46fcc044b4ff555b3c44f5db67ec00a3b0b52556159155b1ebd3972b0f0e5fa1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656e666c6f772f6c61726176656c2d736f6369616c2d73686172652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/enflow/laravel-social-share)

The `enflow/laravel-social-share` package provides an easy way to add social share links to your templates:

[![](https://raw.githubusercontent.com/enflow/laravel-social-share/master/docs/example.png)](https://raw.githubusercontent.com/enflow/laravel-social-share/master/docs/example.png)

The main advantage of implementing it this way instead of using a service like AddThis, is this doesn't use any JavaScript and does not have any privacy concerns.

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

[](#installation)

You can install the package via composer:

```
composer require enflow/laravel-social-share
```

The package will auto-register. You may add the `SocialShareFacade` to your `app.aliases` array:

```
'SocialShare' => \Enflow\SocialShare\SocialShareFacade::class,
```

### CSS

[](#css)

This package includes a CSS file for deafult styling. You can copy this file to your own CSS structure and modify it, or import it in your app.css / app.scss file to use the default variant. The advantage of including it is that it will be automatically updated if changes are made in upcoming versions.

```
@import "../../vendor/enflow/laravel-social-share/dist/css/social-share.css";
```

Usage
-----

[](#usage)

You can use the Facade in your templates as follows:

```
{{ SocialShare::facebook()->x()->linkedin()->whatsapp()->render() }}
```

You can chain multiple services next to each other. The following services are currently supported. Pull requests are welcome to expand this.

- Facebook
- X *(previously Twitter)*
- LinkedIn
- WhatsApp
- Pinterest
- Reddit
- Telegram
- Email
- Twitter *(deprecated)* - automatically replaced with `x`

You can increase the size or set styling options as follows:

```
{{ SocialShare::facebook()->square()->render() }} // Style: square
{{ SocialShare::facebook()->rounded()->render() }} // Style: rounded (default)
{{ SocialShare::facebook()->circle()->render() }} // Style: circle
{{ SocialShare::facebook()->normal()->render() }} // Normal size (default)
{{ SocialShare::facebook()->large()->render() }} // Large size

```

You may want to pass along text to the different sharing options. This text will be appended to the current URL:

```
{{ SocialShare::facebook()->text($page->title)->render() }}
```

You can combine all options:

```
{{ SocialShare::facebook()->x()->reddit()->square()->large()->text('Lorem ipsum!')->render() }}
```

Config
------

[](#config)

You can publish the config to tweak the services and their colors.

Pushing the config file:

```
php artisan vendor:publish --provider="Enflow\SocialShare\SocialShareServiceProvider" --tag="config"
```

Testing
-------

[](#testing)

```
$ composer test
```

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

[](#contributing)

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

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Michel Bardelmeijer](https://github.com/mbardelmeijer)
- [All Contributors](../../contributors)

About Enflow
------------

[](#about-enflow)

Enflow is a digital creative agency based in Alphen aan den Rijn, Netherlands. We specialize in developing web applications, mobile applications and websites. You can find more info [on our website](https://enflow.nl/en).

License
-------

[](#license)

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

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance43

Moderate activity, may be stable

Popularity29

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 57.9% 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 ~251 days

Recently: every ~182 days

Total

7

Last Release

450d ago

Major Versions

1.0.0 → 2.0.02022-02-09

2.0.0 → 3.0.02023-02-25

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

2.0.0PHP ^8.1

3.0.0PHP ^8.2

3.4.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/665ee1919e7c3d12f556cb913d0012a632271f912dc9c3250b7da67d7f3f4b16?d=identicon)[enflow](/maintainers/enflow)

---

Top Contributors

[![mbardelmeijer](https://avatars.githubusercontent.com/u/1583095?v=4)](https://github.com/mbardelmeijer "mbardelmeijer (22 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (9 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (6 commits)")[![ronkesting](https://avatars.githubusercontent.com/u/12963798?v=4)](https://github.com/ronkesting "ronkesting (1 commits)")

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/enflow-laravel-social-share/health.svg)

```
[![Health](https://phpackages.com/badges/enflow-laravel-social-share/health.svg)](https://phpackages.com/packages/enflow-laravel-social-share)
```

###  Alternatives

[yajra/laravel-datatables-oracle

jQuery DataTables API for Laravel

4.9k33.8M339](/packages/yajra-laravel-datatables-oracle)[cknow/laravel-money

Laravel Money

1.0k4.3M22](/packages/cknow-laravel-money)[livewire/flux

The official UI component library for Livewire.

9475.0M86](/packages/livewire-flux)[akaunting/laravel-money

Currency formatting and conversion package for Laravel

7825.3M18](/packages/akaunting-laravel-money)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)

PHPackages © 2026

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