Download the PHP package mrshanebarron/share without Composer
On this page you can find all versions of the php package mrshanebarron/share. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mrshanebarron/share
More information about mrshanebarron/share
Files in mrshanebarron/share
Download mrshanebarron/share
More information about mrshanebarron/share
Files in mrshanebarron/share
Vendor mrshanebarron
Package share
Short Description Social share buttons for Laravel - supports Livewire and Vue
License MIT
Package share
Short Description Social share buttons for Laravel - supports Livewire and Vue
License MIT
Please rate this library. Is it a good library?
Informations about the package share
Share
Social sharing buttons for Laravel applications. Supports Twitter, Facebook, LinkedIn, Email, WhatsApp, and Telegram. Works with Livewire and Vue 3.
Installation
Livewire Usage
Basic Usage
Custom Networks
With Description Text
Sizes
Styles
Livewire Props
| Prop | Type | Default | Description |
|---|---|---|---|
url |
string | current URL | URL to share |
title |
string | '' |
Share title/headline |
text |
string | '' |
Share description text |
networks |
array | ['twitter', 'facebook', 'linkedin', 'email'] |
Networks to display |
size |
string | 'md' |
Size: sm, md, lg |
style |
string | 'buttons' |
Display style: buttons, icons, compact |
Available Networks
twitter- Twitter/Xfacebook- Facebooklinkedin- LinkedInemail- Email (mailto:)whatsapp- WhatsApptelegram- Telegram
Vue 3 Usage
Setup
Basic Usage
Custom Configuration
Vue Props
| Prop | Type | Default | Description |
|---|---|---|---|
url |
String | window.location.href |
URL to share |
title |
String | '' |
Share title |
text |
String | '' |
Share description |
networks |
Array | ['twitter', 'facebook', 'linkedin', 'email'] |
Networks |
size |
String | 'md' |
Button size |
style |
String | 'buttons' |
Display style |
Events
Livewire
Vue
The event includes the network name that was clicked.
Styling
Each social network has its brand color:
- Twitter: Blue (#1DA1F2)
- Facebook: Blue (#1877F2)
- LinkedIn: Blue (#0A66C2)
- WhatsApp: Green (#25D366)
- Telegram: Blue (#0088CC)
- Email: Gray
Requirements
- PHP 8.1+
- Laravel 10, 11, or 12
- Tailwind CSS 3.x
License
MIT License
All versions of share with dependencies
PHP Build Version
Package Version
The package mrshanebarron/share contains the following files
Loading the files please wait ...