1. Go to this page and download the library: Download daikazu/social-links library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
daikazu / social-links example snippets
$url = social_url('facebook', 'username');
use Daikazu\SocialLinks\Enums\SocialNetwork;
$url = social_url(SocialNetwork::FACEBOOK, 'username');
// Or directly from the enum
$url = SocialNetwork::FACEBOOK->getUrl('username');
use Daikazu\SocialLinks\Enums\SocialNetwork;
// In your controller or view composer
$platform = SocialNetwork::FACEBOOK;
// In your Blade view
<x-social-links::social-link :platform="$platform" name="username" icon-styles="size-12 hover:text-red-500 fill-current"/>