$ composer require webup/share-links
<?php
require_once 'vendor/autoload.php';
use Webup\ShareLinks\ShareLinks;
echo ShareLinks::twitter('http:https://example.com', 'text to share', 'hashtag1,hashtag2');
echo ShareLinks::facebook('http:https://example.com');
echo ShareLinks::googleplus('http:https://example.com');
echo ShareLinks::linkedin('http:https://example.com', 'title', 'summary', 'source');
echo ShareLinks::email('[email protected]', 'subject', 'body');
The MIT License (MIT). Please see License File for more information