library shares-counter
Retrieves the number of shares from a certain social network
masnathan/shares-counter
Retrieves the number of shares from a certain social network
- Thursday, November 7, 2013
- by MASNathan
- Repository
- 1 Watchers
- 0 Stars
- 6 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
SharesCounter
Retrieves the number of shares from a certain social network, (*1)
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 />';