PHP code example of sgmendez / socialcount
1. Go to this page and download the library: Download sgmendez/socialcount library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sgmendez / socialcount example snippets
php
$socialCount = new SocialCount();
$url = 'http://www.sgmendez.com/';
$fb = $socialCount->getCountFacebook($url);
$tw = $socialCount->getCountTwitter($url);
$li = $socialCount->getCountLinkedin($url);
$go = $socialCount->getCountGoogle($url);
echo 'FB: '.$fb.' | TW: '.$tw.' | LI: '.$li.' | GO: '.$go;