PHP code example of andrew-svirin / skype-client-php

1. Go to this page and download the library: Download andrew-svirin/skype-client-php library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

andrew-svirin / skype-client-php example snippets


 use AndrewSvirin\SkypeClient\SkypeClient;
 use AndrewSvirin\SkypeClient\Services\SessionManager;

      $sessionManager = new SessionManager(
         __PROTECTED_DIR__ . '/sessions',
         EnvUtil::getSecret()
      );
      $client = new SkypeClient($sessionManager);

      $account = new Account($username, $password);
      $session = $client->login($account);

      $conversation = new Conversation(__SKYPE_ID__, __SKYPE_LABEL__);
      $client->sendMessage($session, $conversation, 'Hi');
bash
$ composer