定制 fxkopp/statamic-shlink-manager 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

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

  1. Log in to the Statamic Control Panel
  2. Navigate to Tools > Short URLs
  3. Create, edit, and manage your short URLs
  4. 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 我们能提供哪些服务?
定制开发 / 二次开发

基于 fxkopp/statamic-shlink-manager 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-24