PHP code example of olafnorge / borgphp
1. Go to this page and download the library: Download olafnorge/borgphp 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/ */
olafnorge / borgphp example snippets
// list the contents of a repository or an archive
use olafnorge\borgphp\ListCommand;
$listCommand = new ListCommand(['<REPOSITORY_OR_ARCHIVE>']);
$contents = $listCommand->mustRun()->getOutput();
var_dump($contents);