💾 Archived View for code.lanterne.chilliet.eu › vendor › mcmic › gemini-server › gemini-stats.php captured on 2022-04-29 at 12:37:02.

View Raw

More Information

⬅️ Previous capture (2021-11-30)

-=-=-=-=-=-=-

#!/bin/php
<?php

require __DIR__ . '/vendor/autoload.php';

use MCMic\Gemini;

if (!isset($argv[1])) {
    echo "Usage: $argv[0] <csvfile>\n";
    die();
}

$containers = Gemini\Statistics\Container::computeData($argv[1]);
foreach ($containers as $label => $container) {
    if (!$container->isEmpty()) {
        echo '# ' . $label . "\r\n";
        echo $container->render();
    }
}