承接 sgmendez/socialcount 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

sgmendez/socialcount

最新稳定版本:v1.0.2

Composer 安装命令:

composer require sgmendez/socialcount

包简介

A PHP library get share count from social networks

README 文档

README

License SensioLabsInsight Latest Stable Version Total Downloads Latest Unstable Version

Introduction

This PHP library get the share count for URI in Social Networks, like Facebook, Twitter, Linkedin, Google+, ...

Requirements

This library require: - PHP 5.3.3 or higher - sgmendez/json 1.0 or higher

Installation

You can use Composer to use this library in your application.

If you don't have Composer yet, download it following the instructions on http://getcomposer.org/ or just run the following command:

curl -s http://getcomposer.org/installer | php

And then execute this command to add libary to your project:

$ composer require sgmendez/socialcount

Or require sgmendez/socialcount into your composer.json file:

json
{
    "require": {
        "sgmendez/socialcount": "*"
    }
}

Tests

You can run the PHPUnit tests, in directory tests execute:

$ php phpunit.phar .

In this directory there are a copy of phpunit.phar for execution test

Examples

php

$socialCount = new SocialCount();

$url = 'http://www.sgmendez.com/';

$fb = $socialCount->getCountFacebook($url);
$tw = $socialCount->getCountTwitter($url);
$li = $socialCount->getCountLinkedin($url);
$go = $socialCount->getCountGoogle($url);

echo 'FB: '.$fb.' | TW: '.$tw.' | LI: '.$li.' | GO: '.$go;

License

Licensed under the BSD License:

http://opensource.org/licenses/bsd-license.php

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-2-Clause
  • 更新时间: 2015-04-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固