💾 Archived View for code.lanterne.chilliet.eu › vendor › mcmic › gemini-server › gemini-stats.php captured on 2023-04-26 at 13:17:49.

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();
    }
}