akbv/php-skype

PHP library that wraps Skype Web API

3.1.4 2023-11-21 09:25 UTC

This package is auto-updated.

Last update: 2024-04-24 09:00:58 UTC


README

php-skype-logo

php-skype

php-skype is a library that wraps Skype Web API. The library is designed to be user-friendly and comes with comprehensive documentation and examples to help integrate Skype functionality into projects quickly and easily.

Installation

Use the package manager composer to install php-skype.

composer require akbv/php-skype

Usage

Note this is just the basic example to get you started. For more examples, please see the documentation and examples folder.

<?php 
// Create a connection to Skype
$connection = new \Akbv\PhpSkype\Connection('email', 'password', __DIR__ . '/var/session');

// Get all contacts
$contacts = $connection->getContacts();

// Start one-to-one chat with a contact
$chat = $connection->chat('8:live:username');

// Send a message to the chat
$message = $chat->sendMessage('Hello World!');

Supported features

  • Login With Microsoft Account (SOAP)
  • Login With Microsoft Account (Live)
  • Get Contacts
  • Get Conversations
  • Create a one-to-one chat
  • Create a group chat
  • Get a user profile
  • Get user invites
  • Configure endpoint
  • Subscribe to contact and conversation events
  • Send messages (text, files, images, contacts)
  • Edit messages
  • Delete messages
  • Set consumption horizon
  • Set typing indicator
  • Get chat messages
  • Set group chat topic
  • Set group chat as moderated/unmoderated
  • Set group chat as open/closed for joining
  • Set group chat history disclosed/undisclosed
  • Add and remove group chat members
  • Make a group chat member an admin
  • Remove admin status from a group chat member
  • Leave a group chat

Contributing

Pull requests are welcome.

License

BSD-3-Clause

NOTE: This library is not affiliated with Skype or Microsoft in any way. Use at your own risk