PHPackages                             escuelait/laravel-social-shareable - 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. escuelait/laravel-social-shareable

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

escuelait/laravel-social-shareable
==================================

Create URLs to share content vía social networks

v1.0.0(4mo ago)04MITPHPPHP ^8.1CI failing

Since Jan 7Pushed 4mo agoCompare

[ Source](https://github.com/EscuelaIt/laravel-social-shareable)[ Packagist](https://packagist.org/packages/escuelait/laravel-social-shareable)[ Docs](https://github.com/EscuelaIt/laravel-social-shareable)[ RSS](/packages/escuelait-laravel-social-shareable/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

Laravel Social Shareable
========================

[](#laravel-social-shareable)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6ce80fae3fb1017f6423557cf6a8e5aeb66d98a214169a943f2682827ff71c39/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f65736375656c6169742f6c61726176656c2d736f6369616c2d736861726561626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/escuelait/laravel-social-shareable)[![Total Downloads](https://camo.githubusercontent.com/bc1df4de43757bfac14e340f08858b16c609f6c925796bc746b5326153f1d8e1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f65736375656c6169742f6c61726176656c2d736f6369616c2d736861726561626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/escuelait/laravel-social-shareable)[![License](https://camo.githubusercontent.com/d96bd6874a4a22422e5ee4d670f3141c9313b3c2f35ac10ec476e6445fe64819/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f65736375656c6169742f6c61726176656c2d736f6369616c2d736861726561626c652e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

A Laravel package that makes it easy to generate sharing URLs for popular social networks. Share your content on X (Twitter), Facebook, WhatsApp, LinkedIn, Pinterest, Telegram, Email, Reddit, Bluesky, and Mastodon with just a few lines of code.

Features
--------

[](#features)

- 🚀 Generate sharing URLs for **10+ social networks**
- 📱 Support for X, Facebook, WhatsApp, LinkedIn, Pinterest, Telegram, Email, Reddit, Bluesky, and Mastodon
- 🎯 Simple and fluent API
- 🔧 Easy to integrate with your models
- ⚙️ Configurable (Facebook App ID support)
- ✅ Fully tested
- 🐘 PHP 8.1+ compatible
- 🎗️ Laravel 10, 11, and 12 support

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

[](#installation)

You can install the package via Composer:

```
composer require escuelait/laravel-social-shareable
```

Configuration
-------------

[](#configuration)

Publish the configuration file:

```
php artisan vendor:publish --provider="Escuelait\SocialShareable\SocialShareableServiceProvider"
```

Or, if you only want to publish the configuration file:

```
php artisan vendor:publish --tag=social-shareable-config
```

Update your `.env` file with optional Facebook App ID:

```
FACEBOOK_APP_ID=your_facebook_app_id_here
```

Usage
-----

[](#usage)

### Using the Trait

[](#using-the-trait)

Add the `SocialShareable` trait to your model:

```
