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

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

michelmelo/laravel-share
========================

Optional package for Laravel to generate social share links.

02PHP

Since Mar 27Pushed 5y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Share
=============

[](#laravel-share)

Share links exist on almost every page in every project, creating the code for these share links over and over again can be a pain in the ass. With Laravel Share you can generate these links in just seconds in a way tailored for Laravel.

### Available services

[](#available-services)

- Facebook
- Twitter
- Linkedin
- WhatsApp
- Reddit
- Telegram

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

[](#installation)

You can install the package via composer:

```
composer require michelmelo/laravel-share
```

If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php

```
// config/app.php
'providers' => [
    MichelMelo\Share\Providers\ShareServiceProvider::class,
];
```

And optionally add the facade in config/app.php

```
// config/app.php
'aliases' => [
    'Share' => MichelMelo\Share\ShareFacade::class,
];
```

Publish the package config &amp; resource files.

```
php artisan vendor:publish --provider="MichelMelo\Share\Providers\ShareServiceProvider"
```

> You might need to republish the config file when updating to a newer version of Laravel Share

This will publish the `laravel-share.php` config file to your config folder, `share.js` in `public/js/` and `laravel-share.php` in your `resources/lang/vendor/en/` folder.

### Fontawesome

[](#fontawesome)

Since this package relies on Fontawesome, you will have to require it's css, js &amp; fonts in your app. You can do that by requesting a embed code [via their website](http://fontawesome.io/get-started/) or by installing it locally in your project.

### Javascript

[](#javascript)

Load jquery.min.js &amp; share.js by adding the following lines to your template files.

```

```

Usage
-----

[](#usage)

### Creating one share link

[](#creating-one-share-link)

#### Facebook

[](#facebook)

```
Share::page('http://michelmelo.pt')->facebook();
```

#### Twitter

[](#twitter)

```
Share::page('http://michelmelo.pt', 'Your share text can be placed here')->twitter();
```

#### Reddit

[](#reddit)

```
Share::page('http://michelmelo.pt', 'Your share text can be placed here')->reddit();
```

#### Linkedin

[](#linkedin)

```
Share::page('http://michelmelo.pt', 'Share title')->linkedin('Extra linkedin summary can be passed here')
```

#### Whatsapp

[](#whatsapp)

```
Share::page('http://michelmelo.pt')->whatsapp()
```

#### Telegram

[](#telegram)

```
Share::page('http://michelmelo.pt', 'Your share text can be placed here')->telegram();
```

### Sharing the current url

[](#sharing-the-current-url)

Instead of manually passing an url, you can opt to use the `currentPage` function.

```
Share::currentPage()->facebook();
```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity30

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0d756073dec37ac9abd3c7edd0cf00b94f2d2de0055531eba5472392b1fd4da2?d=identicon)[michelmelo](/maintainers/michelmelo)

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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