PHPackages                             siberfx/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. siberfx/share

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

siberfx/share
=============

Share links with Laravel 12 &amp; 13

7.2.0(2mo ago)31.7kMITPHPPHP ^8.4

Since Feb 18Pushed 2mo agoCompare

[ Source](https://github.com/siberfx/share)[ Packagist](https://packagist.org/packages/siberfx/share)[ RSS](/packages/siberfx-share/feed)WikiDiscussions main Synced 1w ago

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

Share
=====

[](#share)

Share links with Laravel 12 &amp; 13 (PHP 8.4+).

This is a fork of John's share for Laravel 4.

Services available
------------------

[](#services-available)

- Delicious : delicious
- Digg : digg
- Email : email
- Evernote : evernote
- Facebook : facebook
- Gmail : gmail
- LinkedIn : linkedin
- Pinterest : pinterest
- Reddit : reddit
- Scoop.it : scoopit
- Telegram.me : telegramMe
- Tumblr : tumblr
- Twitter : twitter
- Viadeo : viadeo
- vk.com : vk

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

[](#installation)

Install the Composer dependency:

```
composer require siberfx/share

```

The service provider (*Siberfx\\Share\\ShareServiceProvider*) and the *Share*facade (*Siberfx\\Share\\Facade\\Share*) are auto-registered via Laravel package discovery — no manual registration required.

Usage
-----

[](#usage)

Get a link (example with Twitter)

```
Route::get('/', function()
{
	return Share::load('http://www.example.com', 'My example')->twitter();
});

```

Returns a string :

```
https://twitter.com/intent/tweet?url=http%3A%2F%2Fwww.example.com&text=Link+description

```

Get many links

```
Route::get('/', function()
{
	return Share::load('http://www.example.com', 'Link description')->services('facebook', 'gplus', 'twitter');
});

```

Returns an array :

```
{
    "gplus" : "https://plus.google.com/share?url=http%3A%2F%2Fwww.example.com",
    "twitter" : "https://twitter.com/intent/tweet?url=http%3A%2F%2Fwww.example.com&text=Link+description",
    "facebook" : "https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fwww.example.com&title=Link+description"
}

```

Get ALL the links

```
Route::get('/', function()
{
	return Share::load('http://www.example.com', 'Link description')->services();
});

```

Returns an array of results for all defined services.

Customization
-------------

[](#customization)

Publish the package config:

```
php artisan vendor:publish --provider='Siberfx\Share\ShareServiceProvider'

```

Add a new service in config/social-share.php:

```
'mynewservice' => [ 'view' => 'share.mynewservice' ]

```

Add Blade templating code in *share.mynewservice* view file to generate a URL for *mynewservice*. You have access to:

- service - the service definition (shown above).
- sep - separator used between parameters, defaults to '&amp;'. Configurable as *social-share.separator*.
- url - the URL being shared.
- title - the title being shared.
- media - media link being shared.

Example:

```
https://mynewservice.example.com?url={{ rawurlencode($url) }}title={{ rawurlencode("Check this out! $title. See it here: $url") }}

```

Another example for the *email* service. Change the service config to be *\[ 'view' =&gt; 'whatever' \]* and put this in the view file:

```
mailto:?subject={{ rawurlencode("Wow, check this: $title") }}body={{ rawurlencode("Check this out! $title. See it here: $url") }}

```

Localizing? Easy, use Laravel's trans() call:

```
mailto:?subject={{ rawurlencode(trans('share.email-subject', compact('url', 'title', 'media'))) }}body={{ rawurlencode(trans('share.email-body', compact('url', 'title', 'media'))) }}

```

Create a file at resources/lang/en/share.php with your choice of subject and body. URLs arguably have a maximum length of 2000 characters.

Notice the use of . It's the only way to print out an unencoded ampersand (if configured that way).

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance88

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity70

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

Recently: every ~119 days

Total

10

Last Release

62d ago

Major Versions

5.0.4 → 6.0.02024-05-12

6.0.1 → 7.0.02025-02-26

6.1.0 → 7.1.02026-03-28

6.2.0 → 7.2.02026-06-17

PHP version history (3 changes)5.0.2PHP ^7.4||^8.1||^8.2

6.0.0PHP ^8.2

6.1.0PHP ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/319c5a3ca014236bc2d28e3e37825e1ec467b51455c020c6666d1f40f493c2e1?d=identicon)[siberfx](/maintainers/siberfx)

---

Top Contributors

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

---

Tags

laravelsocialsharelaravel12laravel13

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/siberfx-share/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[yajra/laravel-datatables-oracle

jQuery DataTables API for Laravel

4.9k36.9M384](/packages/yajra-laravel-datatables-oracle)[moonshine/moonshine

Laravel administration panel

1.3k268.2k89](/packages/moonshine-moonshine)[livewire/flux

The official UI component library for Livewire.

9628.9M155](/packages/livewire-flux)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

731189.9k16](/packages/tallstackui-tallstackui)[webwizo/laravel-shortcodes

Wordpress like shortcodes for Laravel 11, 12 and 13

223715.7k9](/packages/webwizo-laravel-shortcodes)

PHPackages © 2026

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