sagautam5/social-share-count 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sagautam5/social-share-count

Composer 安装命令:

composer require sagautam5/social-share-count

包简介

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

README 文档

README

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

Latest Stable Version Total Downloads Issues Stars License Forks Twitter

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 >= 7.3.*

Laravel >= 7.0.*

Support

  • Facebook
  • Pinterest
  • Reddit

Installation

composer require sagautam5/social-share-count

Configuration

Facebook

At first, get App ID and App Secret by creating new app in https://developers.facebook.com. Get App ID and Secret

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

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

Reddit

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

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

Please see CONTRIBUTING for details.

📄 License

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

统计信息

  • 总下载量: 252
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-09-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固