{"id":20129259,"url":"https://github.com/radutopala/skype-bot-php","last_synced_at":"2025-06-19T08:06:47.235Z","repository":{"id":57046595,"uuid":"57277403","full_name":"radutopala/skype-bot-php","owner":"radutopala","description":"PHP CLI/Library for the Skype Bot API","archived":false,"fork":false,"pushed_at":"2021-05-27T10:41:25.000Z","size":29,"stargazers_count":65,"open_issues_count":2,"forks_count":16,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-27T20:47:59.406Z","etag":null,"topics":["bot-framework","php-cli","skype","skypebot","symfony"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/radutopala.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-28T06:41:49.000Z","updated_at":"2025-01-07T09:42:02.000Z","dependencies_parsed_at":"2022-08-24T03:40:36.648Z","dependency_job_id":null,"html_url":"https://github.com/radutopala/skype-bot-php","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radutopala%2Fskype-bot-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radutopala%2Fskype-bot-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radutopala%2Fskype-bot-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radutopala%2Fskype-bot-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/radutopala","download_url":"https://codeload.github.com/radutopala/skype-bot-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radutopala%2Fskype-bot-php/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":257717468,"owners_count":22590786,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot-framework","php-cli","skype","skypebot","symfony"],"created_at":"2024-11-13T20:33:09.206Z","updated_at":"2025-06-19T08:06:42.221Z","avatar_url":"https://github.com/radutopala.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP CLI/Library for the Skype Bot API\n\n### API Docs: https://developer.microsoft.com/en-us/skype/bots/docs\n\n## Installation\n\nThere are 2 ways to install it: \n \n  - Download the Phar\n  - Install as a Composer Package\n\n### Download the Phar\n\ndownload the latest version from the [Releases section](https://github.com/radutopala/skype-bot-php/releases/latest) or from the cli:\n\n```\n$ wget https://github.com/radutopala/skype-bot-php/releases/download/1.0.0/skype.phar \u0026\u0026 chmod +x skype.phar\n```\n\n### Install as a Composer Package\n\n```\n$ composer require radutopala/skype-bot-php\n```\n\n## Usage\n\n### programmatic:\n\n```php\n\u003c?php\n\nuse Skype\\Client;\n\n$client = new Client([\n    'clientId' =\u003e '\u003cyourClientId\u003e',\n    'clientSecret' =\u003e '\u003cyourClientSecret\u003e',\n]);\n$api = $client-\u003eauthorize()-\u003eapi('conversation');   // Skype\\Api\\Conversation\n$api-\u003eactivity('29:\u003cskypeHash\u003e', 'Your message');\n```\n\n### cli:\n\nHere some usage examples.\n\n```\n$ bin/skype auth \u003cyourClientId\u003e\n$ bin/skype conversation:activity \u003cto\u003e \u003cmessage\u003e\n```\n\nOr with the phar file. \n\n```\nphp skype.phar auth \u003cyourClientId\u003e\nphp skype.phar conversation:activity \u003cto\u003e \u003cmessage\u003e\n```\n\n## Tips\n - If used as a library, the HTTP Guzzle Client will automatically try to re-authenticate using a Guzzle middleware, if the `access_token` will expire in the following 10 minutes.\n - If used as a phar, you can update it to latest version using `skype.phar self-update`\n - If used as a library, you can store the token configs in your own preffered file path, as follows:\n \n   ```\n   $client = new Client([\n        'clientId' =\u003e '\u003cyourClientId\u003e',\n        'clientSecret' =\u003e '\u003cyourClientSecret\u003e',\n        'fileTokenStoragePath' =\u003e '\u003cyourOwnPath\u003e',\n   ]);\n   ```\n \n - You can also write your own `TokenStorageInterface::class`\n \n   ```\n   $client = new Client([\n       'clientId' =\u003e '\u003cyourClientId\u003e',\n       'clientSecret' =\u003e '\u003cyourClientSecret\u003e',\n       'tokenStorageClass' =\u003e DatabaseTokenStorage::class\n   ]);\n   ```\n - And you can also pass your custom `tokenStorageService`, a service that must implement `TokenStorageInterface`; usable in Symfony scenarios\n  \n    ```\n    $client = new Client([\n        'clientId' =\u003e '\u003cyourClientId\u003e',\n        'clientSecret' =\u003e '\u003cyourClientSecret\u003e',\n        'tokenStorageService' =\u003e $service\n    ]);\n    ```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fradutopala%2Fskype-bot-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fradutopala%2Fskype-bot-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fradutopala%2Fskype-bot-php/lists"}