A simple way to generate social share links.
MIT License
Um jeito simples de gerar links de compartilhamento social.
SocialShare is available via Composer:
"elephpant/social-share": "2.0.*"
or run
composer require elephpant/social-share
Para mais detalhes sobre como usar, veja uma pasta de exemplo no diretório do componente. Nela terá um exemplo de uso da classe. Ele funciona assim:
<?php
require __DIR__ . '/../vendor/autoload.php';
use ElePHPant\SocialShare\SocialShare;
// [required] $url, [required] $text
$share = new SocialShare('https://github.com', 'Build software better, together');
?>
<ul>
<li><a href="<?= $share::facebook(); ?>" target="_blank">Facebook</a></li>
<li><a href="<?= $share::twitter(/* $username */); ?>" target="_blank">Twitter</a></li>
<li><a href="<?= $share::linkedin(/* $summary, $source */); ?>" target="_blank">LinkedIn</a></li>
<li><a href="<?= $share::pinterest(/* $image */); ?>" target="_blank">Pinterest</a></li>
<li><a href="<?= $share::whatsapp(); ?>" target="_blank">WhatsApp</a></li>
<li><a href="<?= $share::telegram(); ?>" target="_blank">Telegram</a></li>
<li><a href="<?= $share::reddit(); ?>" target="_blank">Reddit</a></li>
<li><a href="<?= $share::email(/* $recipientEmail */); ?>" target="_blank">Email</a></li>
</ul>
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.