PHP code example of vvb / max-laravel

1. Go to this page and download the library: Download vvb/max-laravel 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/ */

    

vvb / max-laravel example snippets


use Vvb\Max\DTO\NewMessageBody;

Max::send(userId: 123456, body: new NewMessageBody([
    'text' => 'Привет!',
    'notify' => true,
]));

$me = Max::getMe();