Download the PHP package daikazu/social-links without Composer
On this page you can find all versions of the php package daikazu/social-links. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download daikazu/social-links
More information about daikazu/social-links
Files in daikazu/social-links
Package social-links
Short Description Easily generate social links using a simple blade component
License MIT
Homepage https://github.com/daikazu/social-links
Informations about the package social-links
Social Profile Links for Laravel
This Laravel package provides easy-to-use functionalities to generate social media profile URLs and render social icon links directly in your Laravel applications.
Installation
You can install the package via composer:
Optionally, you can publish the views using
Usage
Generating Social Profile URLs
You can generate a URL for a social media profile using the social_url
helper function. Here's how you can use it:
Using Strings (Legacy Approach)
Replace 'facebook'
with the desired platform and 'username'
with the user's social media profile username.
Using Enums (Recommended)
You can also use the SocialNetwork
enum for better type safety and IDE autocompletion:
Displaying Social Icons
To display a social icon link, use the Blade component included in the package. Here's an example:
Using Strings (Legacy Approach)
Using Enums (Recommended)
Adjust the platform
, name
, and icon-styles
attributes as necessary to fit your needs.
Supported Social Platforms
The package currently supports URL generation and icon link rendering for the following social media platforms:
- Address
- Apple Music
- Bandcamp
- Booking
- Buy Merch
- Contact Form
- Discord
- Donate
- Github
- Google Play
- Other
- Patreon
- Phone
- Snapchat
- Soundcloud
- Spotify
- Stream
- Telegram
- Tiktok
- Twitch
- Website
- X (formerly Twitter)
- Yelp
- Youtube
Check back for updates or contribute to extend support for other platforms.
Here is some example code for displaying all supported social icons:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Mike Wall
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of social-links with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0||^11.0||^12.0