• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.