PHPackages                             tatwerat/social-counter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. tatwerat/social-counter

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tatwerat/social-counter
=======================

PHP Social Counter Plugin grabs the latest counts of your Fans/Followers etc. from your Favorite Social Networks and then displays them on your Blog. It is the perfect solution to encourage more users to join your network

1.0.0(5y ago)102784[3 issues](https://github.com/abdo-host/PHP-Social-Counter/issues)MITPHPPHP &gt;=7.0

Since Mar 1Pushed 5y ago2 watchersCompare

[ Source](https://github.com/abdo-host/PHP-Social-Counter)[ Packagist](https://packagist.org/packages/tatwerat/social-counter)[ RSS](/packages/tatwerat-social-counter/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (2)Used By (0)

PHP Social Counter Plugin
=========================

[](#php-social-counter-plugin)

Grabs the latest counts of your fans/followers etc.
---------------------------------------------------

[](#grabs-the-latest-counts-of-your-fansfollowers-etc)

You can define what social networking sites you want to the plugin to display the information for. You can add any user ID or website URL to the plugin so that you can retrieve the counts for a different site than the one you have the plugin installed on.

[![Demo](https://camo.githubusercontent.com/7df6640b482b741cdf73145d587082b441124afcb2f936d2288978cddd7167d4/68747470733a2f2f7777772e74617477657261742e636f6d2f64656d6f2f7068702d736f6369616c2d636f756e7465722f73637265656e73686f742e6a7067)](https://www.tatwerat.com/demo/php-social-counter)

[View Demo](https://www.tatwerat.com/demo/php-social-counter/)
==============================================================

[](#view-demo)

How To Use ?
------------

[](#how-to-use-)

##### Require Plugin File

[](#require-plugin-file)

\--

```
composer require tatwerat/social-counter

```

```
// use composer
use tatwerat\SocialCounter\SocialCounter;
```

```
// require plugin
require "./SocialCounter.php";
```

```
$SocialCounter = new SocialCounter([
    'facebook_id' => '{user_id}',
    'twitter_id' => '{user_id}',
    'youtube_id' => '{user_name or channel id}',
    'dribbble_id' => '{user_id}',
    'github_id' => '{user_id}',
    'soundcloud_id' => '{user_id}',
    'behance_id' => '{user_id}',
    'instagram_id' => '{user_id}',
    'google_api_key' => 'xxxxxxxx',
    'dribbble_access_token' => 'xxxxxxxxxxxxxx',
    'soundcloud_api_key' => 'xxxxxxxxxxxxxx',
    'behance_api_key' => 'xxxxxxxxxxxxxx',
]);

$SocialCounter->cache = true; // Cache Social Counts ( improvement the loading of your server )
```

> If you want to return all social count you can use this code

```
$counts_data = $SocialCounter->print_data();
echo $counts_data['facebook'];
echo $counts_data['twitter'];
echo $counts_data['instagram'];
echo $counts_data['youtube'];
echo $counts_data['dribbble'];
echo $counts_data['behance'];
echo $counts_data['soundcloud'];
echo $counts_data['github'];
```

> If you want to call function one by one use this code

```
echo $SocialCounter->facebook_count();
echo $SocialCounter->twitter_count();
echo $SocialCounter->youtube_count(); // parameter ($type = 'channel' or 'user') : default value='channel'
echo $SocialCounter->dribbble_count();
echo $SocialCounter->github_count();
echo $SocialCounter->soundcloud_count();
echo $SocialCounter->behance_count();
echo $SocialCounter->instagram_count();
```

List Of Social Networks
-----------------------

[](#list-of-social-networks)

- Display Facebook Fans Count
- Display Twitter Follower Count
- Display Instagram Follower Count
- Display YouTube Subscribers Count
- Display GitHub Follower Count
- Display SoundCloud Follower Count
- Display Behance Follower Count
- Display Dribbble Follower Count

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance14

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1898d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f9ba1f121df199966329d57b7203623e8ee43a67e1ada254ea02fc95604042fe?d=identicon)[Tatwerat](/maintainers/Tatwerat)

---

Top Contributors

[![abdo-host](https://avatars.githubusercontent.com/u/5564620?v=4)](https://github.com/abdo-host "abdo-host (1 commits)")

---

Tags

facebookinstagramgoogleyoutubetwittersocial networklinkedinpinterestFollowerssoundclouddribbblebehancesocial counter

### Embed Badge

![Health badge](/badges/tatwerat-social-counter/health.svg)

```
[![Health](https://phpackages.com/badges/tatwerat-social-counter/health.svg)](https://phpackages.com/packages/tatwerat-social-counter)
```

###  Alternatives

[hwi/oauth-bundle

Support for authenticating users using both OAuth1.0a and OAuth2 in Symfony.

2.4k21.5M69](/packages/hwi-oauth-bundle)[and/oauth

Simple and amazing OAuth library with many providers. Just try it out!

4645.2k2](/packages/and-oauth)[pdir/social-feed-bundle

Social feed extension for Contao CMS

1414.8k](/packages/pdir-social-feed-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
