Skip to content

oytuntez/klout-sdk-php

 
 

Repository files navigation

Klout

A PHP library for the Klout API

Build Status

=========

Installation

Use Composer to download and install this package as well as its dependencies.

To add this package as dependency for your project, add mtougeron/klout-sdk-php to your project's composer.json file.

{
    "require": {
        "mtougeron/klout-sdk-php": "1.0.*"
    }
}

Usage

use Klout\Klout;
$klout = new Klout('<your Klout API license key');

$user = $klout->getUserByTwitterUsername('mtougeron');

echo $user->getNickname() . '\'s Klout score is ' . round($user->getScore()->getScore());
// outputs: mtougeron's Klout score is 49

Other

Use of the Klout API is bound by Klout's developer Terms of Service

Packages

No packages published

Languages

  • PHP 100.0%