PHPackages                             nasirkhan/laravel-sharekit - 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. nasirkhan/laravel-sharekit

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

nasirkhan/laravel-sharekit
==========================

Reusable social sharing Blade components for Laravel with themeable styles, metadata auto-detection, and page-scoped assets.

v1.0.0(2mo ago)2101GPL-3.0-or-laterBladePHP ^8.3CI passing

Since Apr 7Pushed 1w agoCompare

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

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

Laravel Sharekit
================

[](#laravel-sharekit)

[![Laravel Sharekit - Reusable Blade-powered social sharing buttons for Laravel applications](https://camo.githubusercontent.com/d66754133a7b03e21dd3cf2acf4974f25aff4c8d34be5854aa7c2c8136a797c6/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f64736c6731666338792f696d6167652f75706c6f61642f76313737353536373534362f6c61726176656c2d73686172656b69742d6c6f676f5f7661716770632e6a7067)](https://camo.githubusercontent.com/d66754133a7b03e21dd3cf2acf4974f25aff4c8d34be5854aa7c2c8136a797c6/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f64736c6731666338792f696d6167652f75706c6f61642f76313737353536373534362f6c61726176656c2d73686172656b69742d6c6f676f5f7661716770632e6a7067)

Laravel Sharekit provides reusable Blade-powered social sharing buttons for Laravel applications.

It is designed to work well as a standalone package or alongside packages like `nasirkhan/laravel-cube` when you want social sharing on selected frontend pages without loading sharing assets globally.

[![Latest Version on Packagist](https://camo.githubusercontent.com/4dd76c1daa186533b9fa37974210b3ae72853d51524d7cf9c406e356499e1e74/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e617369726b68616e2f6c61726176656c2d73686172656b69742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nasirkhan/laravel-sharekit)[![Total Downloads](https://camo.githubusercontent.com/c0fcce0e62c5da8b7862221e01409486a4904f87b6aba3bf2f9035e48ab6dead/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e617369726b68616e2f6c61726176656c2d73686172656b69742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nasirkhan/laravel-sharekit)[![StyleCI](https://camo.githubusercontent.com/8706db00a0d052f9250556da84eebf6bb013f5f3fe29af11398bdeff8c96cdb5/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f313230343130393934322f736869656c643f6272616e63683d6d61696e)](https://github.styleci.io/repos/1204109942?branch=main)

Preview
-------

[](#preview)

### Light Mode (Screenshot from Tailwind theme)

[](#light-mode-screenshot-from-tailwind-theme)

[![Light Mode](https://private-user-images.githubusercontent.com/396987/600513328-eb0079a8-8e2c-4120-bf51-2c265a2dc686.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODA5NzQ5NjAsIm5iZiI6MTc4MDk3NDY2MCwicGF0aCI6Ii8zOTY5ODcvNjAwNTEzMzI4LWViMDA3OWE4LThlMmMtNDEyMC1iZjUxLTJjMjY1YTJkYzY4Ni5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNjA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRG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37PBks81zs)

### Dark Mode (Screenshot from Tailwind theme)

[](#dark-mode-screenshot-from-tailwind-theme)

[![Dark Mode](https://private-user-images.githubusercontent.com/396987/600513387-f7e4f4da-e447-4dd0-9d0c-6d95f4aa6c9b.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODA5NzQ5NjAsIm5iZiI6MTc4MDk3NDY2MCwicGF0aCI6Ii8zOTY5ODcvNjAwNTEzMzg3LWY3ZTRmNGRhLWU0NDctNGRkMC05ZDBjLTZkOTVmNGFhNmM5Yi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNjA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDYwOVQwMzExMDBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04ZGI3NzgxMjllYTczZTliMjg5YWJlYjM4OTAyNjI1NDg2YWI2Mzc3MzYwNTRhZDI3MjZiNDBjY2ZmNTVmNDQ2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.rIYwYz0SQtlBZ4cXVTvRmbApIWHsIk51zkIIxZZ4eEI)](https://private-user-images.githubusercontent.com/396987/600513387-f7e4f4da-e447-4dd0-9d0c-6d95f4aa6c9b.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODA5NzQ5NjAsIm5iZiI6MTc4MDk3NDY2MCwicGF0aCI6Ii8zOTY5ODcvNjAwNTEzMzg3LWY3ZTRmNGRhLWU0NDctNGRkMC05ZDBjLTZkOTVmNGFhNmM5Yi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNjA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDYwOVQwMzExMDBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04ZGI3NzgxMjllYTczZTliMjg5YWJlYjM4OTAyNjI1NDg2YWI2Mzc3MzYwNTRhZDI3MjZiNDBjY2ZmNTVmNDQ2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.rIYwYz0SQtlBZ4cXVTvRmbApIWHsIk51zkIIxZZ4eEI)

Features
--------

[](#features)

- Blade component for grouped share buttons
- Metadata auto-detection from page meta tags and document data
- Per-instance prop overrides for URL, title, description, image, hashtags, and more
- Page-scoped CSS and JS loaded only when the component is rendered
- Native Web Share API support where available
- Popup-based sharing for common social networks
- Copy-link action with feedback state
- Configurable default theme, labels, enabled networks, popup size, and stack names
- Theme-ready structure with `default` and `tailwind` presets, with room for future themes

Requirements
------------

[](#requirements)

- PHP ^8.3
- Laravel ^11.0 || ^12.0 || ^13.0

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

[](#installation)

Install the package via Composer:

```
composer require nasirkhan/laravel-sharekit
```

The package uses Laravel package discovery, so no manual provider registration is needed.

Publish Configuration
---------------------

[](#publish-configuration)

If you want to customize defaults, publish the config file:

```
php artisan vendor:publish --tag=sharekit-config
```

If you want to override the package Blade views:

```
php artisan vendor:publish --tag=sharekit-views
```

Layout Requirements
-------------------

[](#layout-requirements)

Sharekit pushes page-scoped CSS and JS into Blade stacks.

Your layout should include:

```
@stack('after-styles')
```

inside the `` section, and:

```
@stack('after-scripts')
```

before the closing `` tag or in your layout footer.

These stack names are configurable in `config/sharekit.php`.

Basic Usage
-----------

[](#basic-usage)

Render the buttons with page metadata auto-detection:

```

```

This is useful when your page already includes tags like:

- `og:url`
- `og:title`
- `og:description`
- `og:image`
- `twitter:title`
- `twitter:description`
- `twitter:image`
- `link[rel="canonical"]`

Usage With Overrides
--------------------

[](#usage-with-overrides)

```

```

Tailwind Example
----------------

[](#tailwind-example)

```

```

Available Props
---------------

[](#available-props)

`` supports these main props:

- `url`
- `title`
- `text`
- `description`
- `image`
- `via`
- `hashtags`
- `networks`
- `theme`
- `label`
- `show-labels`
- `show-heading`
- `size`
- `popup`
- `native`

Supported Networks
------------------

[](#supported-networks)

By default the package supports:

- `x`
- `facebook`
- `linkedin`
- `whatsapp`
- `telegram`
- `reddit`
- `email`
- `copy`
- `native`

You can change the defaults in the config file or pass `:networks="[...]"` directly in the component.

Metadata Resolution
-------------------

[](#metadata-resolution)

Sharekit resolves metadata in this order:

1. Props passed directly to the component
2. Page metadata detected in the browser from Open Graph, Twitter, canonical, and standard meta tags
3. Server-side fallback values such as current URL and app name

This lets you drop the component into a page with good meta tags and get sensible share output with minimal configuration.

Themes
------

[](#themes)

The package currently includes:

- `default`
- `tailwind`

Theme mappings live in `config/sharekit.php`, so you can adjust classes or add future themes later without changing the package API.

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

[](#configuration)

The config file includes options for:

- default theme
- Blade stack names
- popup dimensions
- whether native sharing is enabled when available
- default enabled networks
- label text
- theme class maps

Example:

```
'stack_names' => [
    'styles' => 'after-styles',
    'scripts' => 'after-scripts',
],
```

Working With Laravel Cube
-------------------------

[](#working-with-laravel-cube)

Laravel Sharekit works nicely with `nasirkhan/laravel-cube`.

A typical pattern is:

- use Cube for shared UI, layout, forms, navigation, and base frontend components
- use Sharekit only on content-detail pages such as posts, news items, events, or products

Example:

```

```

Testing
-------

[](#testing)

```
vendor/bin/phpunit
```

Suggested GitHub Topics
-----------------------

[](#suggested-github-topics)

You can use these as GitHub repository topics/tags:

- laravel
- php
- blade-components
- social-share
- share-buttons
- sharing
- laravel-package
- reusable-components
- frontend
- web-share-api
- tailwindcss
- bootstrap

Composer Keywords Suggestion
----------------------------

[](#composer-keywords-suggestion)

Suggested package keywords:

- laravel
- sharing
- social-share
- social-sharing
- blade-components
- share-buttons
- share-links
- sharekit
- web-share-api
- frontend

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Contributions, feedback, and suggestions are welcome.

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [Nasir Khan](https://github.com/nasirkhan)

License
-------

[](#license)

The GNU General Public License v3.0 or later. Please see [LICENSE](LICENSE) for more information.

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance94

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95% 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

63d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/27802773a2668018fdca8b76c35d03ce16cfc92c0f9c6703fb532e77780eadc0?d=identicon)[nasirkhan](/maintainers/nasirkhan)

---

Top Contributors

[![nasirkhan](https://avatars.githubusercontent.com/u/396987?v=4)](https://github.com/nasirkhan "nasirkhan (19 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")

---

Tags

blade-componentsfrontendlaravellaravel-packagephpreusable-componentsshare-buttonssocial-sharetailwindcsslaravelfrontendsharingblade-componentsshare buttonssocial-sharingsocial-shareshare linkssharekitweb-share-api

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nasirkhan-laravel-sharekit/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3325.1M337](/packages/psalm-plugin-laravel)[yajra/laravel-datatables-oracle

jQuery DataTables API for Laravel

4.9k35.3M364](/packages/yajra-laravel-datatables-oracle)[livewire/flux

The official UI component library for Livewire.

9466.8M119](/packages/livewire-flux)[moonshine/moonshine

Laravel administration panel

1.3k239.9k72](/packages/moonshine-moonshine)[webwizo/laravel-shortcodes

Wordpress like shortcodes for Laravel 11, 12 and 13

224685.2k8](/packages/webwizo-laravel-shortcodes)[hasinhayder/tyro-dashboard

Tyro Dashboard - Beautiful admin dashboard for managing Tyro roles, privileges, users, and settings

5222.7k](/packages/hasinhayder-tyro-dashboard)

PHPackages © 2026

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