{"id":15017648,"url":"https://github.com/weinrebe/vk-webhook-client","last_synced_at":"2026-02-08T17:05:13.308Z","repository":{"id":57079677,"uuid":"391059048","full_name":"weinrebe/vk-webhook-client","owner":"weinrebe","description":"Client for webhooks vk.com","archived":false,"fork":false,"pushed_at":"2021-08-09T19:34:56.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-19T00:41:21.380Z","etag":null,"topics":["chatbot","php","vk","vk-api","vk-bot"],"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/weinrebe.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":"2021-07-30T12:35:29.000Z","updated_at":"2021-08-09T20:04:42.000Z","dependencies_parsed_at":"2022-08-24T14:56:29.777Z","dependency_job_id":null,"html_url":"https://github.com/weinrebe/vk-webhook-client","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/weinrebe/vk-webhook-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weinrebe%2Fvk-webhook-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weinrebe%2Fvk-webhook-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weinrebe%2Fvk-webhook-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weinrebe%2Fvk-webhook-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weinrebe","download_url":"https://codeload.github.com/weinrebe/vk-webhook-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weinrebe%2Fvk-webhook-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29237159,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T14:18:14.570Z","status":"ssl_error","status_checked_at":"2026-02-08T14:18:14.071Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["chatbot","php","vk","vk-api","vk-bot"],"created_at":"2024-09-24T19:50:47.944Z","updated_at":"2026-02-08T17:05:13.283Z","avatar_url":"https://github.com/weinrebe.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n![GitHub release (latest by date)](https://img.shields.io/github/v/release/weinrebe/vk-webhook-client?style=flat-square)\n\u003cimg src=\"https://img.shields.io/github/license/weinrebe/vk-webhook-client?style=flat-square\u0026logo=star\" alt=\"License\"\u003e\n\u003cimg src=\"https://img.shields.io/badge/PHP-v8.0.*-green??style=flat-square\u0026logo=php\"\u003e\n\n# vk-webhook-client\nWebhook клиент, для CALLBACK API Вконтакте, реализующий паттерн \"Наблюдатель\"\n\n\n## Установка и использование\n**vk-webhook-client** доступен в [Packagist](https://packagist.org/packages/weinrebe/vk-webhook-client) (_с использованием семантического управления версиями_), и установка через **Composer** является единственным способом установки.\n\nДля установки, выполните команду:\n```sh\ncomposer require weinrebe/vk-webhook-client\n```\n\n## Реализация\nКласс \n`Weinrebe\\VkWebhook\\Client` реализует интерфейс [SplSubject](https://www.php.net/manual/ru/class.splsubject.php).\n\nКлиенский код наблюдателя, должен реализовать интерфейс [SplObserver](https://www.php.net/manual/ru/class.splobserver.php)\nи может быть присоединен с помощью метода `-\u003eattach()`\n\nНапример: \n```php\n\u003c?php\nrequire_once __DIR__ . '/../vendor/autoload.php';\n\nuse Weinrebe\\VkWebhook\\Client;\nuse Weinrebe\\VkWebhook\\EventList;\n\n$client = new Client();\n\n$client-\u003eattach(new \\Weinrebe\\VkWebhook\\Examples\\Observers\\Logger(__DIR__ . '/../log.txt'), '*');\n$client-\u003eattach(new \\Weinrebe\\VkWebhook\\Examples\\Observers\\Confirmation('206136423'), EventList::CONFIRMATION);\n\n$client-\u003einitialize();\n```\n\n### События\nНаблюдатели, могут подписываться на все или некоторые события. \nСобытия, указаны в константах класса `Weinrebe\\VkWebhook\\EventList`\n\n\n## Полезные ссылки:\n1. [Типы событий](https://vk.com/dev/groups_events)\n2. [Документация Vk.com API](https://vk.com/dev/first_guide)\n3. [Паттерн \"Наблюдатель\"](https://refactoring.guru/ru/design-patterns/observer)\n4. [Примеры реализации](https://github.com/weinrebe/vk-webhook-client/tree/main/examples)\n\n## Лицензия\nMIT License\n\nCopyright (c) 2021 Victor Vinogradov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n## Контакты:\n1. [Вконтакте](https://vk.com/winogradow.wiktor)\n2. [Telegram](https://t.me/victor_dialogbox)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweinrebe%2Fvk-webhook-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweinrebe%2Fvk-webhook-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweinrebe%2Fvk-webhook-client/lists"}