Download the PHP package enflow/laravel-social-share without Composer
On this page you can find all versions of the php package enflow/laravel-social-share. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download enflow/laravel-social-share
More information about enflow/laravel-social-share
Files in enflow/laravel-social-share
Package laravel-social-share
Short Description Easily add social share links
License MIT
Informations about the package laravel-social-share
Easily add social share links
The enflow/laravel-social-share
package provides an easy way to add social share links to your templates:
The main advantage of implementing it this way instead of using a service like AddThis, is this doesn't use any JavaScript and does not have any privacy concerns.
Installation
You can install the package via composer:
The package will auto-register. You may add the SocialShareFacade
to your app.aliases
array:
CSS
This package includes a CSS file for deafult styling. You can copy this file to your own CSS structure and modify it, or import it in your app.css / app.scss file to use the default variant. The advantage of including it is that it will be automatically updated if changes are made in upcoming versions.
Usage
You can use the Facade in your templates as follows:
You can chain multiple services next to each other. The following services are currently supported. Pull requests are welcome to expand this.
- X (previously Twitter)
- Telegram
- Twitter (deprecated) - automatically replaced with
x
You can increase the size or set styling options as follows:
You may want to pass along text to the different sharing options. This text will be appended to the current URL:
You can combine all options:
Config
You can publish the config to tweak the services and their colors.
Pushing the config file:
Testing
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Michel Bardelmeijer
- All Contributors
About Enflow
Enflow is a digital creative agency based in Alphen aan den Rijn, Netherlands. We specialize in developing web applications, mobile applications and websites. You can find more info on our website.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-social-share with dependencies
illuminate/support Version ^10.0|^11.0
illuminate/view Version ^10.0|^11.0