PHPackages                             tatter/reports - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. tatter/reports

ActiveLibrary[Framework](/categories/framework)

tatter/reports
==============

Report management framework for CodeIgniter 4

v1.1.0(5y ago)54.9k4[6 PRs](https://github.com/tattersoftware/codeigniter4-reports/pulls)2MITPHPPHP &gt;=7.2

Since May 20Pushed 3y ago2 watchersCompare

[ Source](https://github.com/tattersoftware/codeigniter4-reports)[ Packagist](https://packagist.org/packages/tatter/reports)[ Docs](https://github.com/tattersoftware/codeigniter4-reports)[ RSS](/packages/tatter-reports/feed)WikiDiscussions develop Synced 2mo ago

READMEChangelog (2)Dependencies (7)Versions (11)Used By (2)

Tatter\\Reports
===============

[](#tatterreports)

Report management framework for CodeIgniter 4

Quick Start
-----------

[](#quick-start)

1. Install with Composer: `> composer require tatter/reports`
2. Create your reports in `App/Reports/`
3. Generate contents from CLI: `> php spark reports:generate`
4. Access report content: `$reports = new \App\Reports\MyReport(); $results = $reports->get();`

Features
--------

[](#features)

Provides a concise, non-intrusive framework for writing database reports for CodeIgniter 4

Installation
------------

[](#installation)

Install easily via Composer to take advantage of CodeIgniter 4's autoloading capabilities and always be up-to-date:

- `> composer require tatter/reports`

Or, install manually by downloading the source files and adding the directory to `app/Config/Autoload.php`.

Create reports
--------------

[](#create-reports)

Once the library is included all the resources are ready to go and you are ready to start making your report classes. Reports are detected across any namespace so can come from your `App\Reports` namespace or any module under **Reports**. See `ReportInterface` for requirements when writing a report class.

Generate results
----------------

[](#generate-results)

Once all the report classes are written, use the command-line interface to generate report results:

`> php spark reports:generate`

Each report class handles checking for missing report values so this command can be run routinely (e.g. by a daily cron).

Access results
--------------

[](#access-results)

Load the report class of choice and then pull whatever contents you need using its `get()`method. Called without parameters `get()` will return all contents straight from the database. Optionally you may specify criteria to the database query, e.g.:

```
$results = $reports->get([
	'user_id'       => 56,
	'created_at >=' => '2019-03-01',
]);

```

Other parameters to `get()` allow recursive result grouping (e.g. `$results[user_id][date] => contents`) and ordering of returned content.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~479 days

Total

2

Last Release

2072d ago

PHP version history (2 changes)v1.0.0PHP ^7.0

v1.1.0PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ebe908b4fe73807ecdd9f88733342199c9991b7de800329f5b2b787c8210d62?d=identicon)[MGatner](/maintainers/MGatner)

---

Top Contributors

[![MGatner](https://avatars.githubusercontent.com/u/17572847?v=4)](https://github.com/MGatner "MGatner (17 commits)")

---

Tags

codeigniterreportingreportscodeigniter4

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/tatter-reports/health.svg)

```
[![Health](https://phpackages.com/badges/tatter-reports/health.svg)](https://phpackages.com/packages/tatter-reports)
```

###  Alternatives

[composer/installers

A multi-framework Composer library installer

1.4k136.0M6.0k](/packages/composer-installers)[michalsn/codeigniter-htmx

HTMX helper for CodeIgniter 4 framework

8140.9k](/packages/michalsn-codeigniter-htmx)[codeigniter/phpstan-codeigniter

CodeIgniter extensions and rules for PHPStan

17457.2k30](/packages/codeigniter-phpstan-codeigniter)[luthier/luthier

Improved routing, middleware support, authentication tools and more for CodeIgniter 3 framework

150108.8k](/packages/luthier-luthier)[tatter/frontend

Opinionated suite of frontend tech for CodeIgniter 4

125.3k](/packages/tatter-frontend)[monken/tablesigniter

CodeIgniter4 starter app

133.2k](/packages/monken-tablesigniter)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
