fxkopp/statamic-shlink-manager
Composer 安装命令:
composer require fxkopp/statamic-shlink-manager
包简介
Manage Shlink short URLs from the Statamic Control Panel
README 文档
README
Manage your Shlink short URLs directly from the Statamic Control Panel.
Features
- List, create, edit, and delete short URLs
- Dynamic tag input with existing tag suggestions and inline creation
- Advanced options: title, valid since/until, max visits, crawlable, forward query params
- Visit statistics with country, referer, and bot filtering
- QR code generation for every short URL
- Dashboard widget showing recent links and total visit count
- Shlink Web Client integration with servers.csv export (super admins only)
- Status badges: expired, max reached, scheduled
- Permissions:
view short urls,edit short urls - Translations: English and German
Requirements
- PHP 8.4+
- Statamic 6.10+
- A running Shlink instance
Installation
composer require fxkopp/statamic-shlink-manager
Configuration
Add these environment variables to your .env:
SHLINK_BASE_URL=https://s.example.com SHLINK_API_KEY=your-shlink-api-key SHLINK_DEFAULT_DOMAIN=s.example.com
Generate an API key on your Shlink instance:
shlink api-key:generate --name="Statamic"
Dashboard Widget
Add the widget to config/statamic/cp.php:
'widgets' => [ ['type' => 'shlink_manager_recent_links', 'width' => 50], ],
Publish Config (optional)
php artisan vendor:publish --tag=shlink-manager-config
Usage
- Log in to the Statamic Control Panel
- Navigate to Tools > Short URLs
- Create, edit, and manage your short URLs
- View visit statistics and QR codes on the detail page
Permissions
The addon registers two permissions:
| Permission | Description |
|---|---|
view short urls |
View the short URL listing and statistics |
edit short urls |
Create, edit, and delete short URLs |
License
MIT License. See LICENSE for details.
fxkopp/statamic-shlink-manager 适用场景与选型建议
fxkopp/statamic-shlink-manager 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 50 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 04 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 fxkopp/statamic-shlink-manager 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 fxkopp/statamic-shlink-manager 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 50
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 26
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-24