masnathan/shares-counter

Retrieves the number of shares from a certain social network

1.0 2013-11-07 16:24 UTC

README

Retrieves the number of shares from a certain social network

How to use

$counter = new MASNathan\Social\SharesCounter('https://github.com');

echo 'Twitter: ' . $counter->getTwitter() . '<br />';
echo 'Facebook: ' . $counter->getFacebook() . '<br />';
echo 'Google Plus: ' . $counter->getGooglePlus() . '<br />';
echo 'LinkedIn: ' . $counter->getLinkedIn() . '<br />';
echo 'Pinterest: ' . $counter->getPinterest() . '<br />';
echo 'StumbleUpon: ' . $counter->getStumbleUpon() . '<br />';