Ejemplo n.º 1
0
#!/bin/env php
<?php 
/**
 * BAV updater for the Bundesbank bank data file.
 *
 * @author Markus Malkusch <*****@*****.**>
 * @license WTFPL
 * @see DataBackend
 */
namespace malkusch\bav;

require_once __DIR__ . "/../autoloader/autoloader.php";
try {
    ConfigurationRegistry::getConfiguration()->setUpdatePlan(null);
    $bav = new BAV();
    $bav->update();
    echo "Bundesbank file downloaded.\n";
} catch (DataBackendException $error) {
    die("Installation failed: {$error->getMessage()}\n");
}