# shlinkio/shlink

The definitive self-hosted URL shortener

Repository: https://github.com/shlinkio/shlink
Canonical: https://ross.abutalabs.com/products/shlink
Homepage: https://shlink.io
Language: PHP
License: MIT
License Family: permissive
Topics: php, url-shortener, rest-api, mezzio, laminas
Last push: 2026-08-06T08:06:58+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 89, longevity 100
- inputs: {"age_days": 3799, "days_push": 27, "days_rel": 72, "gap_med": 10, "n_releases_24m": 28}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5248, forks 410 (observed 2026-08-28T04:09:13.652321+00:00)

## What it is
Shlink is a self-hosted, PHP-based URL shortener that serves shortened URLs under your own domains. It provides a REST API, a CLI interface, and visit analytics with features like custom slugs, multi-domain support, dynamic redirects, and bot detection.

## Use cases
- self-host a URL shortener on my own domain
- track clicks and visit stats for short links
- create short URLs with custom slugs via an API
- serve multiple short domains from one instance
- redirect visitors based on device or geolocation
- import short URLs from bit.ly or YOURLS
- manage short URLs from the command line

## When to choose
- you want full control and ownership of your short URLs and analytics data
- you need an API-first shortener to integrate into other systems
- you need multi-domain support, dynamic redirects, or GDPR-compliant IP anonymization
- you prefer deploying via Docker or a dist file on your own infrastructure

## When to avoid
- you want a zero-maintenance hosted service without running a server
- you need a shortener with no PHP 8.4+ runtime or database requirement
- you only need simple link shortening without stats or API access

## Facets
- artifact type: application
- maturity: stable
- function: http-server, api-framework, cli, analytics, routing
- domain: web-development, self-hosted, analytics, apis, developer-tools
- platform: self-hosted, cli, php
- tags: url-shortener, rest-api, link-tracking, multi-domain, gdpr-compliant, visit-stats, docker-image, mezzio, web-server, docker, linux

## Member repositories
- shlinkio/shlink (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:13.652321+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:59:34.470032+00:00, confidence not recorded.
  - readme: https://github.com/shlinkio/shlink (fetched 2026-08-28T04:09:13.652321+00:00, sha 65550e21a0e5)
  - homepage: https://shlink.io (fetched 2026-08-29T08:54:44.554959+00:00, sha cc6190c084a0)
  - site_page: https://shlink.io/features (fetched 2026-08-29T08:54:44.557411+00:00, sha 6169ec23202b)
  - site_page: https://shlink.io/documentation (fetched 2026-08-29T08:54:44.559082+00:00, sha 2590909f16bc)
  - site_page: https://shlink.io/documentation/shlink-web-client (fetched 2026-08-29T08:54:44.560685+00:00, sha 007803cbad5e)
  - site_page: https://shlink.io/documentation/api-docs (fetched 2026-08-29T08:54:44.562188+00:00, sha 51ab7f4be31b)
  - site_page: https://shlink.io/documentation/command-line-interface/entry-point (fetched 2026-08-29T08:54:44.563872+00:00, sha d4202bb1609d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
