PHP code example of weinrebe / vk-webhook-client

1. Go to this page and download the library: Download weinrebe/vk-webhook-client library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

weinrebe / vk-webhook-client example snippets



Weinrebe\VkWebhook\Client;
use Weinrebe\VkWebhook\EventList;

$client = new Client();

$client->attach(new \Weinrebe\VkWebhook\Examples\Observers\Logger(__DIR__ . '/../log.txt'), '*');
$client->attach(new \Weinrebe\VkWebhook\Examples\Observers\Confirmation('206136423'), EventList::CONFIRMATION);

$client->initialize();