PHPackages                             sagautam5/social-share-count - 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. sagautam5/social-share-count

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

sagautam5/social-share-count
============================

A laravel package to count number of time a url is shared in social media

v1.0.3.1(5y ago)42522[1 issues](https://github.com/sagautam5/social-share-count/issues)MITPHP

Since Sep 17Pushed 5y ago1 watchersCompare

[ Source](https://github.com/sagautam5/social-share-count)[ Packagist](https://packagist.org/packages/sagautam5/social-share-count)[ RSS](/packages/sagautam5-social-share-count/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)DependenciesVersions (7)Used By (0)

Social Share Count
==================

[](#social-share-count)

This will help to count the social share count of a url
-------------------------------------------------------

[](#this-will-help-to-count-the-social-share-count-of-a-url)

[![Latest Stable Version](https://camo.githubusercontent.com/cd996316be6115e969c5ed1ae4a22e63ba82806ba597c9d65bb298dfedd98752/68747470733a2f2f706f7365722e707567782e6f72672f736167617574616d352f736f6369616c2d73686172652d636f756e742f76)](//packagist.org/packages/sagautam5/social-share-count)[![Total Downloads](https://camo.githubusercontent.com/75db3660b0e664f44cb36d7d9cd751d1dc946f55dcf7e1a08f79aa979878ccda/68747470733a2f2f706f7365722e707567782e6f72672f736167617574616d352f736f6369616c2d73686172652d636f756e742f646f776e6c6f616473)](//packagist.org/packages/sagautam5/social-share-count)[![Issues](https://camo.githubusercontent.com/6939475c890491a0881f16a766f57995e2ee5e4a2677dc9c529a4a71bb473a41/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f736167617574616d352f736f6369616c2d73686172652d636f756e74)](https://camo.githubusercontent.com/6939475c890491a0881f16a766f57995e2ee5e4a2677dc9c529a4a71bb473a41/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f736167617574616d352f736f6369616c2d73686172652d636f756e74) [![Stars](https://camo.githubusercontent.com/08f06ddc650b58b168141839263422f4d7559e88ec174595fb891a2e7b3171c9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f736167617574616d352f736f6369616c2d73686172652d636f756e74)](https://github.com/sagautam5/social-share-count/stargazers) [![License](https://camo.githubusercontent.com/4bcafcfc6caf49c7a418b06a39a18f5953d62b164122644cf568a9318c5ec25f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f736167617574616d352f736f6369616c2d73686172652d636f756e74)](https://github.com/sagautam5/social-share-count/stargazers) [![Forks](https://camo.githubusercontent.com/587eab696d41054cc3b29842f0e01b3097ec18b9ee38441558d5baf0355d98c0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f736167617574616d352f736f6369616c2d73686172652d636f756e74)](https://github.com/sagautam5/social-share-count/stargazers) [![Twitter](https://camo.githubusercontent.com/548d931e00f8cde3ffb01978feb75872812755d0664d02ed82d2179944e93053/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f75726c3f75726c3d68747470732533412532462532466769746875622e636f6d253246736167617574616d35253246736f6369616c2d73686172652d636f756e74)](https://github.com/sagautam5/social-share-count/stargazers)

Description
-----------

[](#description)

Social share count is the laravel package to determine number of times a url is shared on social media like facebook.

Social Share Count Requires

PHP &gt;= 7.3.\*

Laravel &gt;= 7.0.\*

Support
-------

[](#support)

- Facebook
- Pinterest
- Reddit

Installation
------------

[](#installation)

```
composer require sagautam5/social-share-count
```

Configuration
-------------

[](#configuration)

#### Facebook

[](#facebook)

At first, get App ID and App Secret by creating new app in . [![Get App ID and Secret](https://raw.githubusercontent.com/sagautam5/social-share-count/master/src/images/facebook%20credentials.png)](https://raw.githubusercontent.com/sagautam5/social-share-count/master/src/images/facebook%20credentials.png)

Now, add those credentials in .env file.

```
FB_APP_ID='xxxxxxxxxxxxxxxx'
FB_APP_SECRET='XXXXXXXXXXXXXXXXXXXXXXXXXX'
```

Now, Clear the configuration cache.

```
php artisan config:cache
```

#### Pinterest

[](#pinterest)

Currently, you don't need any application id or secret to count pinterest shares. You can just call the function.

#### Reddit

[](#reddit)

Currently, you don't need any application id or secret to count reddit shares. You can just call the function.

Basic Usage
-----------

[](#basic-usage)

After installation, you can use the share count feature like this:

```
use Sagautam5\SocialShareCount\ShareCounter;

$url = 'https://www.example.com';

$facebookShares = ShareCounter::getFacebookShares($url);
echo $facebookShares;

$pinterestShares = ShareCounter::getPinterestShares($url);
echo $pinterestShares;

$redditShares = ShareCounter::getRedditShares($url);
echo $redditShares;
```

🤝 Contributing
--------------

[](#-contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

📄 License
---------

[](#-license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

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

Every ~1 days

Total

5

Last Release

2059d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10434281?v=4)[Sagar Gautam](/maintainers/sagautam5)[@sagautam5](https://github.com/sagautam5)

---

Top Contributors

[![sagautam5](https://avatars.githubusercontent.com/u/10434281?v=4)](https://github.com/sagautam5 "sagautam5 (20 commits)")

---

Tags

countsharesocial

### Embed Badge

![Health badge](/badges/sagautam5-social-share-count/health.svg)

```
[![Health](https://phpackages.com/badges/sagautam5-social-share-count/health.svg)](https://phpackages.com/packages/sagautam5-social-share-count)
```

###  Alternatives

[trentrichardson/jquery-timepicker-addon

Adds a timepicker to jQueryUI Datepicker.

2.6k70.2k](/packages/trentrichardson-jquery-timepicker-addon)[vsn4ik/bootstrap-checkbox

A checkbox component based on Bootstrap framework

2109.0k3](/packages/vsn4ik-bootstrap-checkbox)[arietimmerman/laravel-url-shortener

Laravel Package for shortening urls

2867.4k](/packages/arietimmerman-laravel-url-shortener)[onapp/onapp-php-wrapper-external

OnApp PHP Client Library

2616.2k](/packages/onapp-onapp-php-wrapper-external)

PHPackages © 2026

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