承接 myth/betta 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

myth/betta

Composer 安装命令:

composer require myth/betta

包简介

A CodeIgniter 4 beta feedback collection and triage system.

README 文档

README

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 →

Requirements

  • PHP 8.2+
  • CodeIgniter 4.3+

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

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

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

All triage workflows run via php spark 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

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

php spark feedback:group 142 3

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)

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

MIT — see LICENSE.

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固