PHP code example of xdimedrolx / shares

1. Go to this page and download the library: Download xdimedrolx/shares 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/ */

    

xdimedrolx / shares example snippets




es = new \Shares\Shares(['defaults' => ['verify' => false]]);
$shares->addProvider(new \Shares\Providers\Vk());
$shares->addProvider(new \Shares\Providers\Facebook());
$shares->addProvider(new \Shares\Providers\Twitter());
$shares->addProvider(new \Shares\Providers\MailRu());
$shares->addProvider(new \Shares\Providers\Ok());
$results = $shares->getCounts('https://github.com');

print_r($results);