PHPackages                             myth/betta - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. myth/betta

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

myth/betta
==========

A CodeIgniter 4 beta feedback collection and triage system.

v1.0.0-beta.1(1mo ago)01↓90%[2 PRs](https://github.com/lonnieezell/betta/pulls)MITPHPPHP ^8.2CI passing

Since Jun 3Pushed 1mo agoCompare

[ Source](https://github.com/lonnieezell/betta)[ Packagist](https://packagist.org/packages/myth/betta)[ RSS](/packages/myth-betta/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (6)Versions (4)Used By (0)

Betta
=====

[](#betta)

A drop-in CodeIgniter 4 package that gives beta-stage applications a complete feedback collection and triage system. It ships with a public-facing form endpoint, a database-backed storage layer, and a full CLI toolkit for filtering, reviewing, grouping, and prioritizing user feedback — with no separate admin UI required.

An optional AI-powered grouping command uses an LLM to cluster similar feedback items on demand.

**[Full Documentation →](https://lonnieezell.github.io/betta)**

---

Requirements
------------

[](#requirements)

- PHP 8.2+
- CodeIgniter 4.3+

---

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

[](#installation)

```
composer require newmythmedia/ci4-beta-feedback
php spark migrate --all
```

That's it. Routes, Spark commands, and migrations are all auto-discovered by CI4 — no manual bootstrapping required.

---

Configuration
-------------

[](#configuration)

Override the default config by creating `app/Config/BetaFeedback.php` in your host app:

```
// app/Config/BetaFeedback.php
use Myth\Betta\Config\BetaFeedback as BaseBetaFeedback;

class BetaFeedback extends BaseBetaFeedback
{
    public string $routePrefix = 'feedback';
    public bool   $acceptSubmissions = true;
    public string $anthropicApiKey   = '';   // or use env('ANTHROPIC_API_KEY')
}
```

To enable the AI-powered `feedback:analyze` command, add your Anthropic API key to `.env`:

```
ANTHROPIC_API_KEY=sk-ant-...

```

To publish views for customization:

```
php spark feedback:publish --views
```

---

Collecting Feedback
-------------------

[](#collecting-feedback)

The package registers these routes automatically:

```
GET  /feedback         → renders the embeddable feedback form
POST /feedback/submit  → accepts and stores submissions

```

Embed the form in any view:

```
echo view('Myth\Betta\Views\form');
```

The form submits via `fetch()` with a non-JS POST fallback. No frontend framework required.

---

CLI Commands
------------

[](#cli-commands)

All triage workflows run via `php spark feedback:*`.

### List feedback

[](#list-feedback)

```
php spark feedback:list
php spark feedback:list --category=bug --status=new
php spark feedback:list --ungrouped
php spark feedback:list --cluster=3 --limit=50
```

### Review a single item

[](#review-a-single-item)

```
php spark feedback:review 142
```

Opens an interactive prompt to assign the item to a cluster, create a new cluster, or dismiss it.

### Assign to a cluster

[](#assign-to-a-cluster)

```
php spark feedback:group 142 3
```

### Manage clusters

[](#manage-clusters)

```
php spark feedback:clusters
php spark feedback:clusters --priority=high
php spark feedback:clusters --create "Mobile Layout Issues" --priority=high
php spark feedback:clusters --edit=3 --label="Mobile Navigation" --priority=critical
php spark feedback:clusters --delete=7
```

### AI-powered grouping *(optional — requires Anthropic API key)*

[](#ai-powered-grouping-optional--requires-anthropic-api-key)

```
php spark feedback:analyze            # review suggestions interactively
php spark feedback:analyze --dry-run  # print suggestions only, no writes
php spark feedback:analyze --apply    # auto-accept all suggestions
```

Reads ungrouped feedback, asks AI to suggest clusters, and presents them for confirmation before writing anything. Costs roughly $0.002–$0.01 per run at 50 items.

---

License
-------

[](#license)

MIT — see [LICENSE](LICENSE).

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance91

Actively maintained with recent releases

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

51d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/65f693f45781e767ed8557b776fd775309e7a262629892b99cf38462931e9b26?d=identicon)[lonnieezell](/maintainers/lonnieezell)

---

Top Contributors

[![lonnieezell](https://avatars.githubusercontent.com/u/51931?v=4)](https://github.com/lonnieezell "lonnieezell (51 commits)")

---

Tags

codeignitercodeigniter4

### Embed Badge

![Health badge](/badges/myth-betta/health.svg)

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

###  Alternatives

[codeigniter4/settings

Settings library for CodeIgniter 4

95589.6k35](/packages/codeigniter4-settings)[codeigniter4/tasks

Task Scheduler for CodeIgniter 4

124177.3k1](/packages/codeigniter4-tasks)[codeigniter4/devkit

Development toolkit for CodeIgniter libraries and projects

70201.9k122](/packages/codeigniter4-devkit)[tatter/alerts

Lightweight user alerts for CodeIgniter 4

3980.9k6](/packages/tatter-alerts)[tatter/patches

Automated project updates for CodeIgniter 4

3692.9k3](/packages/tatter-patches)[michalsn/minifier

Assets minification and versioning library for CodeIgniter 4.

5438.2k](/packages/michalsn-minifier)

PHPackages © 2026

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