2017 © Pedro Peláez
 

library socialcount

A PHP library get share count from social networks

image

sgmendez/socialcount

A PHP library get share count from social networks

  • Monday, April 6, 2015
  • by sgmendez
  • Repository
  • 2 Watchers
  • 3 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 8 Versions
  • 6 % Grown

The README.md

License SensioLabsInsight Latest Stable Version Total Downloads Latest Unstable Version, (*1)

# Introduction

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

# Requirements

This library require: - PHP 5.3.3 or higher - sgmendez/json 1.0 or higher, (*3)

# Installation

You can use Composer to use this library in your application., (*4)

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

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

And then execute this command to add libary to your project:, (*6)

$ composer require sgmendez/socialcount

Or require sgmendez/socialcount into your composer.json file:, (*7)

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

# Tests

You can run the PHPUnit tests, in directory tests execute:, (*8)

$ php phpunit.phar .

In this directory there are a copy of phpunit.phar for execution test, (*9)

# 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:, (*10)

http://opensource.org/licenses/bsd-license.php, (*11)

The Versions

06/04 2015

dev-master

9999999-dev https://github.com/sgmendez/socialcount

A PHP library get share count from social networks

  Sources   Download

BSD-2-Clause

The Requires

 

by Salvador Mendez

facebook twitter linkedin share count googleplus

06/04 2015

v1.0.2

1.0.2.0 https://github.com/sgmendez/socialcount

A PHP library get share count from social networks

  Sources   Download

BSD-2-Clause

The Requires

 

by Salvador Mendez

facebook twitter linkedin share count googleplus

06/04 2015

dev-develop

dev-develop https://github.com/sgmendez/socialcount

A PHP library get share count from social networks

  Sources   Download

BSD-2-Clause

The Requires

 

by Salvador Mendez

facebook twitter linkedin share count googleplus

06/04 2015

v1.0.1

1.0.1.0 https://github.com/sgmendez/socialcount

A PHP library get share count from social networks

  Sources   Download

BSD-2-Clause

The Requires

 

by Salvador Mendez

facebook twitter linkedin share count googleplus

06/04 2015

v1.0.0

1.0.0.0 https://github.com/sgmendez/socialcount

A PHP library get share count from social networks

  Sources   Download

BSD-2-Clause

The Requires

 

by Salvador Mendez

facebook twitter linkedin share count googleplus

01/04 2015

v0.0.3

0.0.3.0 https://github.com/sgmendez/socialcount

A PHP library get share count from social networks

  Sources   Download

BSD-2-Clause

The Requires

 

by Salvador Mendez

facebook twitter linkedin share count googleplus

01/04 2015

v0.0.2

0.0.2.0 https://github.com/sgmendez/socialcount

A PHP library get share count from social networks

  Sources   Download

BSD-2-Clause

The Requires

 

by Salvador Mendez

facebook twitter linkedin share count

01/04 2015

v0.0.1

0.0.1.0

  Sources   Download

The Requires