PHP code example of bancuadrian / mysqlbackup

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

    

bancuadrian / mysqlbackup example snippets


  
      $backupStatus = \BancuAdrian\MysqlBackup\BackupService::backup('username','password',['database1','database2'],'/path/to/backup');
  

  BancuAdrian\MysqlBackup\Support\ServiceProvider::class

  'BackupManager' => BancuAdrian\MysqlBackup\Support\Facade::class

  php artisan vendor:publish --provider="BancuAdrian\MysqlBackup\Support\ServiceProvider"

  \BackupManager::backupAll();
  // or for single database
  \BackupManager::backup('databaseName');

  havefun() && contribute() && !criticize() && give_advice();