Skip to content

labi-le/vk-longpoll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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