Skip to content

A Skype PHP Library. Allow you get conversations and messages, send messages, create group, etc...

License

Notifications You must be signed in to change notification settings

alissonpelizaro/SkypePHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

logo SkypePHP

LinkedIn: Alisson Pelizaro

Welcome to the Skype PHP API Interface, a versatile tool that enables you to seamlessly send and receive messages, access contacts, retrieve conversations, and much more! While this project is currently in active development, your support and contributions are greatly appreciated

Project Status: In Development

Please keep in mind that this project is an ongoing endeavor, and we are continuously working to enhance its functionality and capabilities. Your patience and understanding are invaluable as we strive to make this interface the best it can be.

Contributions

We invite you to become a part of this project's journey by contributing through pull requests. Your ideas, enhancements, and bug fixes are invaluable in shaping the future of this interface. Together, we can make it even more powerful and user-friendly.

IMPORTANT NOTE: In the current version, only pure text messages working in chat.

Installation

We are suggesting you to use composer, with the following :

php composer.phar require alissonpelizaro/SkypePHP

Basic usage

include 'src/Core.php';

$sk = new Skype;
$sk->login('username', 'password') or die ('Username or password is invalid');

NOTE: If the login returns with an error of Authentication failed with the correct username and password, its asking for CAPTCHA, Please perform a login/(re)login manually using a browser to solve the CAPTCHA. After that, you can try to perfom the API login again.

After login, you'll be able to run the following Skype functions:

Getting basic informations

Get your local ID:

$sk->getLocalUserId();

Get you profile info:

$sk->readMyProfile();

Handling contacts

Get your conversation list:

$sk->getConversationsList();

Get contacts list:

$sk->getContactsList();

Get users profile info:

$sk->readProfile([{USER_ID}, {USER_ID}]);

NOTE: The parameter must be an array of users id, at least 1 item

Search a Skype user by username:

$sk->searchSomeone('jonny_depp');

Add a contact by username:

$sk->addContact('jonny_depp', 'Hi Jonny, please add me to talk about pirates');

Handling chats

Get messages in a chat:

$sk->getMessagesList({USER_ID}, $size = 10);

NOTE: Size is optional. Default is 100, that means will bring the 100 last messages chatted

Send a chat message:

$sk->sendMessage({USER_ID}, 'Hi, how are you doing today?');

Handling groups

Creates a group:

$sk->createGroup([{USER_ID}, {USER_ID}], 'Next trip group');

Changes the group name:

$sk->setGroupTopic({GROUP_ID}, '(cancelled) Next trip group :( ');

Gets group info:

$sk->getGroupInfo({GROUP_ID});

Adds someone to group:

$sk->addUserToGroup({GROUP_ID}, {USER_ID});

Removes someone from group:

$sk->kickUser({GROUP_ID}, {USER_ID});

Leaves a group:

$sk->leaveGroup({GROUP_ID});

For groups messaging, you can use the same method for chat. You'll only need to provide the group id instead the chat id.

Documentation

Please note that a comprehensive documentation is currently in the works, but hasn't been finalized yet due to time constraints. In the meantime, you can explore the technical details by referring to the example/example.php file provided within the project.

For additional information and support related to the Skype API, please visit the official Skype API documentation at: Skype API Documentation

I really hope this can helps you somehow, good luck!

About

A Skype PHP Library. Allow you get conversations and messages, send messages, create group, etc...

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages