Skip to content
This repository was archived by the owner on Apr 30, 2020. It is now read-only.
This repository was archived by the owner on Apr 30, 2020. It is now read-only.

Add a class to get count for an Event by month or week or day #13

@jeremyFreeAgent

Description

@jeremyFreeAgent

Something like:

$lastYear = new Year(new DateTime('last year'));
$stats = $bitter->getStats('action', $lastYear, 'month');
$max = $stats->getMax();
foreach ($stats as $stat) {
    echo $stat->getDate() . ' - ' . $stat->getCount() . "\n";
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions