{"id":35303888,"url":"https://github.com/sagautam5/social-share-count","last_synced_at":"2026-04-05T18:32:41.734Z","repository":{"id":62539182,"uuid":"296084233","full_name":"sagautam5/social-share-count","owner":"sagautam5","description":"Count social shares of a url","archived":false,"fork":false,"pushed_at":"2020-09-21T09:06:22.000Z","size":107,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-17T01:37:56.933Z","etag":null,"topics":["count","share","social"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sagautam5.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-16T16:10:38.000Z","updated_at":"2022-10-30T16:49:35.000Z","dependencies_parsed_at":"2022-11-02T16:16:09.605Z","dependency_job_id":null,"html_url":"https://github.com/sagautam5/social-share-count","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/sagautam5/social-share-count","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagautam5%2Fsocial-share-count","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagautam5%2Fsocial-share-count/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagautam5%2Fsocial-share-count/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagautam5%2Fsocial-share-count/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sagautam5","download_url":"https://codeload.github.com/sagautam5/social-share-count/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagautam5%2Fsocial-share-count/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31446524,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T15:22:31.103Z","status":"ssl_error","status_checked_at":"2026-04-05T15:22:00.205Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["count","share","social"],"created_at":"2025-12-30T17:00:41.910Z","updated_at":"2026-04-05T18:32:41.723Z","avatar_url":"https://github.com/sagautam5.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Social Share Count\n\n## This will help to count the social share count of a url\n[![Latest Stable Version](https://poser.pugx.org/sagautam5/social-share-count/v)](//packagist.org/packages/sagautam5/social-share-count)\n[![Total Downloads](https://poser.pugx.org/sagautam5/social-share-count/downloads)](//packagist.org/packages/sagautam5/social-share-count)\n![Issues](https://img.shields.io/github/issues/sagautam5/social-share-count\n) [![Stars](https://img.shields.io/github/stars/sagautam5/social-share-count\n)](https://github.com/sagautam5/social-share-count/stargazers) [![License](https://img.shields.io/github/license/sagautam5/social-share-count\n)](https://github.com/sagautam5/social-share-count/stargazers) [![Forks](https://img.shields.io/github/forks/sagautam5/social-share-count\n)](https://github.com/sagautam5/social-share-count/stargazers) [![Twitter](https://img.shields.io/twitter/url?url=https%3A%2F%2Fgithub.com%2Fsagautam5%2Fsocial-share-count\n)](https://github.com/sagautam5/social-share-count/stargazers)\n\n## Description\n\n  Social share count is the laravel package to determine number of times a url is shared on social media like facebook. \n  \n  Social Share Count Requires \n  \n  PHP \u003e= 7.3.*\n  \n  Laravel \u003e= 7.0.*\n  \n## Support\n- Facebook\n- Pinterest\n- Reddit  \n   \n## Installation\n\n```sh\ncomposer require sagautam5/social-share-count\n```\n\n## Configuration\n\n#### Facebook\n\nAt first, get App ID and App Secret by creating new app in https://developers.facebook.com. \n![Get App ID and Secret](https://raw.githubusercontent.com/sagautam5/social-share-count/master/src/images/facebook%20credentials.png)\n\nNow, add those credentials in .env file.\n```dotenv\nFB_APP_ID='xxxxxxxxxxxxxxxx'\nFB_APP_SECRET='XXXXXXXXXXXXXXXXXXXXXXXXXX'\n```\n\nNow, Clear the configuration cache.\n\n```shell script\nphp artisan config:cache\n```\n\n#### Pinterest\n\nCurrently, you don't need any application id or secret to count pinterest shares. You can just call the function.\n\n#### Reddit\n\nCurrently, you don't need any application id or secret to count reddit shares. You can just call the function.\n\n## Basic Usage\n\nAfter installation, you can use the share count feature like this:\n\n```php\nuse Sagautam5\\SocialShareCount\\ShareCounter;\n\n$url = 'https://www.example.com';\n\n$facebookShares = ShareCounter::getFacebookShares($url);\necho $facebookShares;\n\n$pinterestShares = ShareCounter::getPinterestShares($url);\necho $pinterestShares;\n\n$redditShares = ShareCounter::getRedditShares($url);\necho $redditShares;\n``` \n\n\n## 🤝 Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## 📄 License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsagautam5%2Fsocial-share-count","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsagautam5%2Fsocial-share-count","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsagautam5%2Fsocial-share-count/lists"}