$arrayFile) { if (!empty($arrayFile)) { $resultFiles[] = $arrayFile; } } $options = new ProviderOptions\Yandex(); $options->token = $token; $options->remoteDirectoryPath = $baseRemoteDirectoryPath; $options->fileWebPath = "https://your.site.there/backups/there/"; $yandexProvider = new Yandex($options); try { $yandexProvider->proceedBackup($resultFiles); } catch (ProviderException $e) { echo $e->getMessage(); }