eliseekn/laravel-metrics

Generate metrics and trends data from your database

v1.0.1 2021-09-25 12:09 UTC

This package is auto-updated.

Last update: 2021-09-25 12:13:34 UTC


README

Latest Version on Packagist Total Downloads

Generate metrics and trends data from your database.

Installation

You can install the package via composer:

composer require eliseekn/laravel-metrics

Usage

//generate user count trends for your chart
$userTrends = LaravelMetrics::getTrends('users', 'id', LaravelMetrics::YEAR, LaravelMetrics::COUNT);

//track expenses for a specific period
$expensesMetrics = LaravelMetrics::getMetrics('expenses', 'amount', LaravelMetrics::QUATER_YEAR, LaravelMetrics::SUM);

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email eliseekn@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.