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.
Use the package manager composer to install php-skype.
composer require akbv/php-skype
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!');
- 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
Pull requests are welcome.