PHP code example of larament / laravel-backup-telegram

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

    

larament / laravel-backup-telegram example snippets


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