dev-master
9999999-dev http://www.github.com/linkorb/socialshareRetrieve sharing stats for any url for various social networks
MIT
The Requires
facebook twitter linkedin sharing share pinterest socialmedia
Wallogit.com
2017 © Pedro Peláez
Retrieve sharing stats for any url for various social networks
Retrieve sharing stats for any url for various social networks., (*1)
$url = new LinkORB\Component\SocialShare\Url('http://google.com');
print_r($url->getShareCounts());
Output:, (*2)
Array
(
[pinterest] => Array
(
[count] => 10610
[countlabel] => 10.6K
)
[twitter] => Array
(
[count] => 7485
[countlabel] => 7.5K
)
[facebook] => Array
(
[id] => http://google.com
[comments] => 133545
[shares] => 2
[likes] =>
[talking_about_count] =>
[were_here_count] =>
[count] => 133547
[countlabel] => 133.5K
)
[linkedin] => Array
(
[count] => 63420
[countlabel] => 63.4K
)
[googleplus] => Array
(
[count] => 5142375
[countlabel] => 5142.4K
)
)
Check out composer for details about installing and running composer., (*3)
Then, add linkorb/socialshare to your project's composer.json:, (*4)
{
"require": {
"linkorb/socialshare": "dev-master"
}
}
There is a simple example commandline utility to test the functionality:, (*5)
bin/console socialshare:urlsharecount http://google.com
This will retrieve all supported sharing stats, and output the resulting array to the console., (*6)
Ready to build and improve on this repo? Excellent! Go ahead and fork/clone this repo and we're looking forward to your pull requests!, (*7)
If you are unable to implement changes you like yourself, don't hesitate to open a new issue report so that we or others may take care of it., (*8)
Please check LICENSE.md for full license information, (*9)

Check out our other projects at linkorb.com/engineering., (*10)
Btw, we're hiring!, (*11)
Retrieve sharing stats for any url for various social networks
MIT
facebook twitter linkedin sharing share pinterest socialmedia