labile / vk-longpoll
Bots Long Poll API component
Installs: 241
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/labile/vk-longpoll
Requires
- php: >=7.4
- ext-curl: *
- ext-json: *
- ext-pcntl: *
- ext-posix: *
- labile/astaroth-contracts: ^1.0
README
Installation
composer require labile/vk-longpoll
Implementation of long polling VK in php
<?php use Astaroth\Longpoll\Longpoll; const ACCESS_TOKEN = "saassasasassssa"; const VK_VERSION = "5.131"; $longpoll = new Longpoll(ACCESS_TOKEN, VK_VERSION); $longpoll->setWait(30); $longpoll->listen(static function($data){ //.... });