carmelosantana/coqui-toolkit-umami-admin
Composer 安装命令:
composer require carmelosantana/coqui-toolkit-umami-admin
包简介
Umami Analytics admin toolkit for Coqui — full website management, analytics, user/team admin, reports, and event tracking
README 文档
README
Full-featured Umami Analytics admin toolkit for Coqui. Provides complete API coverage for managing websites, querying analytics, tracking events, managing users and teams, generating reports, and producing tracking code snippets.
Requirements
- PHP 8.4+
- Coqui with
carmelosantana/php-agents ^0.7 - A self-hosted Umami Analytics instance
Installation
composer require coquibot/umami-admin-toolkit
Coqui auto-discovers the toolkit on boot. No code changes needed.
Credentials
Set these in your workspace .env or via Coqui's credentials tool:
| Variable | Required | Description |
|---|---|---|
UMAMI_API_URL |
Yes | Base URL of your Umami instance (e.g. https://umami.example.com) |
UMAMI_API_KEY |
Yes* | API key for authentication |
UMAMI_USERNAME |
No | Username for JWT fallback auth |
UMAMI_PASSWORD |
No | Password for JWT fallback auth |
*Either UMAMI_API_KEY or both UMAMI_USERNAME + UMAMI_PASSWORD must be set. API key is preferred.
Getting an API Key
- Log in to your Umami instance
- Go to Settings > API Keys
- Click Create API Key
- Copy the key and set it as
UMAMI_API_KEY
Tools
| Tool | Description | Actions |
|---|---|---|
umami_website |
Manage tracked websites | list, get, create, update, delete, reset |
umami_analytics |
Query website analytics | stats, pageviews, metrics, active_visitors, realtime |
umami_event |
Track and query events | list, metrics, data_events, data_fields, data_values, data_stats, send, batch |
umami_session |
Analyze visitor sessions | list, get, activity, data, properties, property_values |
umami_user |
Admin: manage users | list, get, create, update, delete, usage, websites, teams |
umami_team |
Admin: manage teams | list, get, create, update, delete, join, list_members, add_member, update_member, remove_member, list_websites, add_website, remove_website |
umami_report |
Manage custom reports | list, get, create, update, delete, website_reports |
umami_tracking_code |
Generate tracking snippets | Generates HTML <script> or GTM snippet |
umami_me |
Current user operations | profile, websites, teams, change_password |
Usage Examples
Add a new site and get tracking code
> Add example.com to Umami and give me the tracking code
The agent will:
1. Call umami_website(action: "create", name: "example.com", domain: "example.com")
2. Call umami_tracking_code(website_id: "<id>", format: "html")
Generate a traffic report
> Show me traffic stats for example.com for the last 30 days
The agent will:
1. Call umami_website(action: "list") to find the website ID
2. Call umami_analytics(action: "stats", website_id: "<id>", start_date: "...", end_date: "...")
3. Call umami_analytics(action: "metrics", website_id: "<id>", metric_type: "url", ...)
Manage users
> Create a new user "editor" with the user role
The agent will call umami_user(action: "create", username: "editor", password: "...", role: "user")
Set up a team
> Create a Marketing team and add user alice to it
The agent will:
1. Call umami_team(action: "create", name: "Marketing")
2. Call umami_user(action: "list") to find alice's user ID
3. Call umami_team(action: "add_member", team_id: "<id>", user_id: "<alice_id>", role: "member")
Authentication
The toolkit supports two authentication methods:
- API Key (recommended): Set
UMAMI_API_KEY. Sent viax-umami-api-keyheader on every request. - Username/Password (fallback): Set
UMAMI_USERNAMEandUMAMI_PASSWORD. The client authenticates viaPOST /api/auth/loginand caches the JWT token for subsequent requests.
API key auth is preferred because it doesn't require an initial login request and works with service accounts.
Development
# Install dependencies composer install # Run tests ./vendor/bin/pest # Static analysis ./vendor/bin/phpstan analyse
License
MIT
carmelosantana/coqui-toolkit-umami-admin 适用场景与选型建议
carmelosantana/coqui-toolkit-umami-admin 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 04 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「admin」 「toolkit」 「analytics」 「umami」 「php-agents」 「coqui」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 carmelosantana/coqui-toolkit-umami-admin 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 carmelosantana/coqui-toolkit-umami-admin 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 carmelosantana/coqui-toolkit-umami-admin 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
2lenet/EasyAdminPlusBundle
Analysis module for finding problematical shop data.
Analytics chooser extensions for site settings.
Symfony2 Bundle that adds basic user account entity and city/state/country setup as well
A Laravel Nova Card to show Fathom Analytics stats.
Common helpers and classes for ICanBoogie
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 39
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-08