akbv / php-skype
PHP library that wraps Skype Web API
Installs: 2 232
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 1
Forks: 3
Open Issues: 3
Requires
- php: >=7.3.21 <9.0
- symfony/http-client: >=4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.3
- phpstan/phpstan: ~1.4
README
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.