PHPackages                             setkyar/laravel-customize-shares - 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. setkyar/laravel-customize-shares

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

setkyar/laravel-customize-shares
================================

Customize social sharing icons &amp; design.

1.0(9y ago)449MITPHPPHP &gt;=5.4.0

Since Nov 23Pushed 9y ago1 watchersCompare

[ Source](https://github.com/setkyar/laravel-customize-shares)[ Packagist](https://packagist.org/packages/setkyar/laravel-customize-shares)[ Docs](https://github.com/setkyar/laravel-social-share-cards)[ RSS](/packages/setkyar-laravel-customize-shares/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (2)Used By (0)

Customize your Laravel social sharing icons &amp; designs.
==========================================================

[](#customize-your-laravel-social-sharing-icons--designs)

Customize your social sharing icons easily. By Default, Package already include Facebook, Google+, LinkedIn, Twitter. But you can add more easily.

Install
-------

[](#install)

Pull package through Composer. Run

```
composer require setkyar/laravel-customize-shares

```

Add service provider within `config/app.php`

```
'providers' => [
   SetKyar\CustomShares\CustomSharesProvider::class,
];

```

Run the following command for configuration

```
php artisan vendor:publish --provider="SetKyar\CustomShares\CustomSharesProvider" --tag="config"

```

Run the following command for views

```
php artisan vendor:publish --provider="SetKyar\CustomShares\CustomSharesProvider" --tag="views"

```

Usage
-----

[](#usage)

To customize your social icons add image with img tag. Customize like the following in `config/shares-config.php`

```
'facebook'	=> ''

```

or add social icon class like the following

```
'facebook'	=> ''

```

You can add one by one social share and can use collection as well.

### One by one example

[](#one-by-one-example)

```

    Document

	@include('share::facebook')

    @include('share::twitter')

    @include('share::gplus')

    @include('share::linkedin')

```

### Collection example

[](#collection-example)

```

    Document

	@include('share::social_collection')

```

Add new social
--------------

[](#add-new-social)

By default, Package already include Facebook, Google+, LinkedIn, Twitter. If you want to add more social media, add new on `resources/views/vendor/customize-share` . You can learn easily by checking other social media. If you want to add default value on config, you can add on `config/shares-config.php`

Popup (Small new window)
------------------------

[](#popup-small-new-window)

By default, if user click on share. The share link will open in new full window. But if you want to made small new window like the following image

[![Demo](img/demo.png)](img/demo.png)

You have to add the following JavaScript code

```

    var popupSize = {
        width: 780,
        height: 550
    };

    $(document).on('click', '.your-class > a', function(e){

        var
            verticalPos = Math.floor(($(window).width() - popupSize.width) / 2),
            horisontalPos = Math.floor(($(window).height() - popupSize.height) / 2);

        var popup = window.open($(this).prop('href'), 'social',
            'width='+popupSize.width+',height='+popupSize.height+
            ',left='+verticalPos+',top='+horisontalPos+
            ',location=0,menubar=0,toolbar=0,status=0,scrollbars=1,resizable=1');

        if (popup) {
            popup.focus();
            e.preventDefault();
        }

    });

```

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

[](#contributing)

1. Fork it
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Added some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create new Pull Request

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [Laravel 5.2 Social Button Tutorials](https://blog.damirmiladinov.com/laravel/laravel-5.2-social-buttons.html)
- [How to create social share buttons with custom icons](http://petragregorova.com/articles/social-share-buttons-with-custom-icons/)

###  Health Score

27

—

LowBetter than 46% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

3551d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/157df3dda57b84fda6cf5c2da53974dc7eb9299ce8e27fffb6b0b88112358491?d=identicon)[setkyar](/maintainers/setkyar)

---

Top Contributors

[![setkyar](https://avatars.githubusercontent.com/u/4435358?v=4)](https://github.com/setkyar "setkyar (10 commits)")

---

Tags

customizesetkyarCustomShare

### Embed Badge

![Health badge](/badges/setkyar-laravel-customize-shares/health.svg)

```
[![Health](https://phpackages.com/badges/setkyar-laravel-customize-shares/health.svg)](https://phpackages.com/packages/setkyar-laravel-customize-shares)
```

###  Alternatives

[typo3-themes/themes

TYPO3 THEMES

3643.0k2](/packages/typo3-themes-themes)

PHPackages © 2026

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