PHP code example of laswitchtech / php-updater

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

    

laswitchtech / php-updater example snippets




// Import phpUpdater class into the global namespace
// These must be at the top of your script, not inside a function
use LaswitchTech\phpUpdater\phpUpdater;

// Load Composer's autoloader
lize Updater
$phpUpdater = new phpUpdater();

// Backup
$phpUpdater->backup();

// Restore
$phpUpdater->restore();

// Upgrade
$phpUpdater->upgrade();