PHP class to get Skype user's online status
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
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
- 0 - Unknown
- 1 - Offline
- 2 - Online
- 3 - Away
- 4 - Unavailable
- 5 - Do Not Disturb
- 6 - Invisible
- 7 - SkypeME