You can install the package via composer, but first you need to add PDF's composer repository to your composer.json file:
{
"repositories": [
{
"type": "composer",
"url": "https://composer.pdfsystems.com"
}
]
}You can install the package via composer:
composer require pdfsystems/backup-sdk$client = new \Pdfsystems\BackupSdk\BackupClient('{Auth Token}');$client = new \Pdfsystems\BackupSdk\BackupClient('{Auth Token}');
$client->applications()->list();$client = new \Pdfsystems\BackupSdk\BackupClient('{Auth Token}');
$client->applications()->find(1);$client = new \Pdfsystems\BackupSdk\BackupClient('{Auth Token}');
$client->applications()->create(
new \Pdfsystems\BackupSdk\Dtos\Application([
'name' => 'My Application',
])
);$client = new \Pdfsystems\BackupSdk\BackupClient('{Auth Token}');
$application = $client->applications()->find(1);
$application->name = 'My Updated Application';
$client->applications()->update($application);$client = new \Pdfsystems\BackupSdk\BackupClient('{Auth Token}');
$client->backups()->list(); // All backups
$client->backups()->list(1); // Backups for a specific application
$client->backups()->list(1, 'database'); // Backups for a specific application + type$client = new \Pdfsystems\BackupSdk\BackupClient('{Auth Token}');
$client->backups()->find(1);$client = new \Pdfsystems\BackupSdk\BackupClient('{Auth Token}');
$file = new SplFileInfo('/path/to/file.ext');
$client->backups()->create(
1,
$file,
[
'field1' => 'value1',
'field2' => 'value2',
],
'database'
);$client = new \Pdfsystems\BackupSdk\BackupClient('{Auth Token}');
$backup = $client->backups()->find(1);
$backup->name = 'My Updated Backup';
$client->backups()->update($backup);composer testPlease see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.