/skype-status-php

PHP class to get Skype user's online status

Primary LanguagePHPMIT LicenseMIT

skype-status-php

Latest Stable Version Total Downloads Downloads Month License Code Climate

PHP class to get Skype user's online status

Installation

Install this package through Composer. Edit your project's composer.json file to require stichoza/skype-status-php.

"require": {
    "stichoza/skype-status-php": "~2.1"
}

Or run a command in your command line:

composer require stichoza/skype-status-php

Usage

Instantiate SkypeStatus object

use Stichoza\Skype\SkypeStatus;

$mySkype = new SkypeStatus("echo123");

Get online status code and/or string

echo "User is " . $mySkype->getStatusString();    // output: User is online
echo "Status code: " . $mySkype->getStatusCode(); // output: Status code: 2

Status Codes

  • 0 - Unknown
  • 1 - Offline
  • 2 - Online
  • 3 - Away
  • 4 - Unavailable
  • 5 - Do Not Disturb
  • 6 - Invisible
  • 7 - SkypeME