定制 the-markup/wp-shlink 二次开发

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

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

the-markup/wp-shlink

Composer 安装命令:

composer require the-markup/wp-shlink

包简介

Create and manage Shlink short links from WordPress

README 文档

README

Create and manage Shlink short links from WordPress

Description

A WordPress dashboard interface for managing a self-hosted Shlink URL shortener instance.

  • Create and edit Shlinks short links from a manager interface
  • Optionally generate new short URLs upon saving new posts
  • Manage multiple short URL domains, with an assigned default
  • Automatically tag each short link, configurable with a filter hook
  • Customize long URLs automatically using a filter hook (e.g., to add query arguments)
  • Integrates with WordPress Sentry plugin, if installed

Filter hooks

  • smol_links_tags - assigns tags to each saved short link (default: ["smol-links-server:$hostname", "smol-links-user:$username"])
  • smol_links_long_url - automatically adjust the long URL redirect
  • smol_links_manager_tabs - customizes the manager tabs (array: ["Tab label" => [Shlink API query]])

Developer setup

Developer dependencies:

Build and start:

./bin/build
./bin/start

Running tests:

docker compose exec web composer --working-dir="/var/www/html/wp-content/plugins/smol-links" test

Installation

  1. Upload smol-links folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Configure the Smol Links settings from your WordPress dashboard

Screenshots

1. Create and manage Shlink short links from WordPress.

Create and manage Shlink short links from WordPress.

2. Configure your self-hosted Shlink server and optionally generate a short URL whenever a post is published.

Configure your self-hosted Shlink server and optionally generate a short URL whenever a post is published.

3. The post editor includes the short URL in the sidebar.

The post editor includes the short URL in the sidebar.

Changelog

0.4.5

  • Fix type issue

0.4.4

  • Rerelease

0.4.3

  • Fix PHP warnings

0.4.2

  • Fix bug causing settings to not get saved
  • Update dependencies

0.4.1

  • Validate and sanitize settings

0.4.0

  • Add search to manager interface
  • URL validation on form inputs

0.3.1

  • Remove Composer from installation

0.3.0

  • Add pagination to Smol Links manager interface

0.2.0

  • Update to Shlink v3 API

0.1.1

  • Fix a bug with the Short Links manager
  • Upgrade dependencies

0.1.0

  • Release to WordPress plugin directory
  • Security improvements

0.0.1

  • Generate short URLs upon saving a post
  • Create/edit short URLs from a manager

Upgrade Notice

Stable tag: 0.4.5

the-markup/wp-shlink 适用场景与选型建议

the-markup/wp-shlink 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 26 次下载、GitHub Stars 达 16, 最近一次更新时间为 2022 年 01 月 14 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 the-markup/wp-shlink 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 the-markup/wp-shlink 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

  • Stars: 16
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2022-01-14