PHP code example of raziul / laravel-backup-telegram

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

    

raziul / laravel-backup-telegram example snippets


return [
    'token' => env('BACKUP_TELEGRAM_TOKEN'),
    'chat_id' => env('BACKUP_TELEGRAM_CHAT_ID'),
    'chunk_size' => env('BACKUP_TELEGRAM_CHUNK_SIZE', 49), // MB
];
bash
php artisan vendor:publish --tag="backup-telegram-config"
bash
php artisan backup:run