Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 902 Bytes

File metadata and controls

30 lines (19 loc) · 902 Bytes

vk-longpoll

GitHub license Packagist Stars Packagist Stats

Документация на русском языке

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){
//....
});