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

ActiveLibrary

vpominchuk/laravel-easy-share
=============================

Laravel EasyShare: Fully customized social share buttons.

v1.0(3y ago)313MITPHPPHP ^7.4|^8.0

Since Dec 8Pushed 3y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

[![](https://camo.githubusercontent.com/25f34409321e70b40fbd33095a7f2282e5ce6e2822d0fc75701c547e43132f80/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c2532304561737925323053686172652e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d76706f6d696e6368756b2532466c61726176656c2d656173792d7368617265267061747465726e3d74657874757265267374796c653d7374796c655f31266465736372697074696f6e3d412b66756c6c792b637573746f6d697a65642b616e642b656173792b746f2b7573652b736f6369616c2b73686172652b627574746f6e732b636f6d706f6e656e742e266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667)](https://camo.githubusercontent.com/25f34409321e70b40fbd33095a7f2282e5ce6e2822d0fc75701c547e43132f80/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c2532304561737925323053686172652e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d76706f6d696e6368756b2532466c61726176656c2d656173792d7368617265267061747465726e3d74657874757265267374796c653d7374796c655f31266465736372697074696f6e3d412b66756c6c792b637573746f6d697a65642b616e642b656173792b746f2b7573652b736f6369616c2b73686172652b627574746f6e732b636f6d706f6e656e742e266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667)

laravel-easy-share
==================

[](#laravel-easy-share)

Laravel EasyShare is a fully customized and easy to use social share buttons component.

It is as easy as count to four

1. Install
----------

[](#1-install)

```
$ composer require vpominchuk/laravel-easy-share
```

2. Publish sample config file
-----------------------------

[](#2-publish-sample-config-file)

```
$ php artisan vendor:publish --tag=easy-share-config
```

3. Add a component to your view.
--------------------------------

[](#3-add-a-component-to-your-view)

```

```

4. Add some CSS styles:
-----------------------

[](#4-add-some-css-styles)

```
.easy-share {
    display: flex;
}

.easy-share li {
    margin-right: 1.5rem;
}
```

and you are ready to go!

Available social networks
-------------------------

[](#available-social-networks)

- Facebook
- Twitter
- LinkedIn
- Whatsapp
- Viber
- Telegram

Managing social networks
------------------------

[](#managing-social-networks)

You can easily add/remove/enable/disable available social networks. Just open `config/easy-share.php` file and add any social network you like.

### Configuration options

[](#configuration-options)

Option nameDescription`url`Social network share url. It should include following keys: `{url}` - will be replaced with your. `{title}` - may be overwritten with your page title. `{summary}` - used for LinkedIn only, ok, let it be...`allowed`To Enable / Disable`class`Add any custom class to current share link`content`To be placed as a content for `$content` tag. Can be used to display any SVG icon or other text or even HTML`title`To be placed as `title` attribute for `...`### Using SVG icons

[](#using-svg-icons)

To use your own SVG icons just put content of your SVG icon file into `content` key of configuration file for the necessary icon.

### Using Fontawesome or other icons library

[](#using-fontawesome-or-other-icons-library)

The same as with SVG, just put `` into `content` key of the config file.

Component parameters
--------------------

[](#component-parameters)

By default, you can use `` without any attributes, it will detect current url of the page, but **will not** detect page title.

Option nameDescription`url`Page URL to be shared. Example: ```title`Page title. Use `:title="$title"` to pass title from variable or `title="My page title"` to pass as text`summary`Page summary. Used for LinkedIn only.`allow`Allows you to enable disabled social links. Pass multiple social links via comma: `allow="pinterest,reddit"``disable`Disable some social links. Pass multiple social links via comma: `disable="pinterest,reddit"`Custom attributes can be passed to custom template.

Using custom view (template)
----------------------------

[](#using-custom-view-template)

To use custom template, just create a folder `easy-share` under `resources/views/` and put your custom template in it.

```

    @foreach($services as $name => $service)

        {!! $service['content'] ?? '' !!}

    @endforeach

```

Custom attributes in `` component will be passed to your custom template.

All Kebab Cased and Snake Cased attributes will be transformed to Camel Case, for example:

```

```

will be transformed to `{{$myFirstAttribute}}` and `{{$mySecondAttribute}}`.

Getting share links as a PHP array
----------------------------------

[](#getting-share-links-as-a-php-array)

You can use `EasyShare` facade to get plain PHP array of share links. Example:

```
use Illuminate\Support\Facades\URL;
use \VPominchuk\EasyShare\Facades\EasyShare;

$url = URL::current();
$easyShare = EasyShare::setUrl($url);
$array = $easyShare
    ->setTitle($pageTitle)
    ->setSummary($summary)
    ->getServices();
```

There are two additional methods:

MethodDescription`setAllowed(array)`Enable some social share links. `$easyShare->setAllowed(["reddit", "pinterest"]);``disable(array)`Disable some social share links. `$easyShare->setAllowed(["reddit", "pinterest"]);`Security
--------

[](#security)

If you discover any security related issues, please use the issue tracker.

Credits
-------

[](#credits)

- [Vasyl Pominchuk](https://pominchuk.com/post/7-laravel-social-share-buttons-package)

License
-------

[](#license)

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

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Unknown

Total

1

Last Release

1252d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0698741e2b6a33a9bc4b38ec28db9b253910a76eb0a890e9d45a5e9debe91e61?d=identicon)[vpominchuk](/maintainers/vpominchuk)

---

Top Contributors

[![vpominchuk](https://avatars.githubusercontent.com/u/4194395?v=4)](https://github.com/vpominchuk "vpominchuk (6 commits)")

---

Tags

laravelLaravel Social Sharelaravel sharesocial share buttons

### Embed Badge

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

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

###  Alternatives

[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

61214.2k26](/packages/slowlyo-owl-admin)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[highsolutions/eloquent-sequence

A Laravel package for easy creation and management sequence support for Eloquent models with elastic configuration.

121130.3k](/packages/highsolutions-eloquent-sequence)[glhd/linen

21135.6k](/packages/glhd-linen)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)

PHPackages © 2026

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