Welcome Guest, Not a member yet? Register   Sign In
Reports framework
#1

Hi all! I debated whether this one was worth publishing, but since I usually end up adding database reports to just about everything I do and thought someone else might be interested too. It also has an example of module namespace-harvesting (modeled after CI4's own MigrationRunner) that I'm working into a lot of packages.

Tatter\Reports

I will eventually flesh out the docs, tests, examples, and other portions of this project but the framework is all ready to go. Just run:
`composer require tatter/reports`

Reports are each individual classes that live in the Reports folder and namespace of your app or modules. They need a `$table`, a `generate()` method that checks for and processes each result, and a `run()` method to process results for missing metrics. Use the provided interface and base report to flesh out the class:

PHP Code:
use Tatter\Reports\BaseReport;
use 
Tatter\Reports\Interfaces\ReportInterface;
class 
MyReport extends BaseReport implements ReportInterface 

Package info: https://packagist.org/packages/tatter/reports
Code & issues: https://github.com/tattersoftware/codeigniter4-reports

Thanks for reading!
Reply
#2

Will be nice to have some example of report class.
Reply
#3

It is definitely on the list! This module is due for some updates and better docs, though it probably won't be soon - there are a lot more pressing updates ahead of it.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB