Download the PHP package nasirkhan/laravel-sharekit without Composer
On this page you can find all versions of the php package nasirkhan/laravel-sharekit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nasirkhan/laravel-sharekit
More information about nasirkhan/laravel-sharekit
Files in nasirkhan/laravel-sharekit
Package laravel-sharekit
Short Description Reusable social sharing Blade components for Laravel with themeable styles, metadata auto-detection, and page-scoped assets.
License GPL-3.0-or-later
Homepage https://github.com/nasirkhan/laravel-sharekit
Informations about the package laravel-sharekit
Laravel Sharekit

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.
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
defaultandtailwindpresets, with room for future themes
Requirements
- PHP ^8.3
- Laravel ^11.0 || ^12.0 || ^13.0
Installation
Install the package via Composer:
The package uses Laravel package discovery, so no manual provider registration is needed.
Publish Configuration
If you want to customize defaults, publish the config file:
If you want to override the package Blade views:
Layout Requirements
Sharekit pushes page-scoped CSS and JS into Blade stacks.
Your layout should include:
inside the <head> section, and:
before the closing </body> tag or in your layout footer.
These stack names are configurable in config/sharekit.php.
Basic Usage
Render the buttons with page metadata auto-detection:
This is useful when your page already includes tags like:
og:urlog:titleog:descriptionog:imagetwitter:titletwitter:descriptiontwitter:imagelink[rel="canonical"]
Usage With Overrides
Tailwind Example
Available Props
<x-sharekit::buttons /> supports these main props:
urltitletextdescriptionimageviahashtagsnetworksthemelabelshow-labelsshow-headingsizepopupnative
Supported Networks
By default the package supports:
xfacebooklinkedinwhatsapptelegramredditemailcopynative
You can change the defaults in the config file or pass :networks="[...]" directly in the component.
Metadata Resolution
Sharekit resolves metadata in this order:
- Props passed directly to the component
- Page metadata detected in the browser from Open Graph, Twitter, canonical, and standard meta tags
- 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
The package currently includes:
defaulttailwind
Theme mappings live in config/sharekit.php, so you can adjust classes or add future themes later without changing the package API.
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:
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
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
Suggested package keywords:
- laravel
- sharing
- social-share
- social-sharing
- blade-components
- share-buttons
- share-links
- sharekit
- web-share-api
- frontend
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Contributions, feedback, and suggestions are welcome.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
License
The GNU General Public License v3.0 or later. Please see LICENSE for more information.
All versions of laravel-sharekit with dependencies
illuminate/support Version ^11.0|^12.0|^13.0
illuminate/view Version ^11.0|^12.0|^13.0