skype-status-php
skype-status-php copied to clipboard
PHP class to get Skype user's online status
skype-status-php
PHP class to get Skype user's online status.
THIS PACKAGE DOES NOT WORK ANYMORE. Skype deprecated its XML response of status codes. I hope someday I will (or you will) find a way to make this package still work. Thanks! 🙂
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