ShlinkSelf-hosted PHP URL shortener with CLI and REST API
YOURLSSelf-hosted PHP URL shortener with stats and plugins
Shlink vs YOURLS
How Shlink and YOURLS compare on popularity, activity, license and platforms: two open-source Marketing & Customer Engagement projects, both alternatives to Bitly.
At a glance
- YOURLS has more GitHub stars (12.3k vs 5.5k, about 2× as many).
- Both are actively maintained (last commits 5 days ago and 2 days ago).
- Both use the MIT license.
- Both can be self-hosted.
- YOURLS is the older project (repository started 2012; Shlink in 2016).
Side by side
| Shlink | YOURLS | |
|---|---|---|
| GitHub stars | ★ 5,450 | ★ 12,325 |
| Forks | 457 | 2,081 |
| Last commit | 5 days ago | 2 days ago |
| Latest version | v5.1.9 | 1.10.6 |
| Repository started | April 2016 | August 2012 |
| License | MIT · permissive | MIT · permissive |
| Self-hosted | Yes | Yes |
| Platforms | Web, Docker, CLI | – |
| Main language | PHP | PHP |
| Alternative to | Bitly | Bitly |
Highlighted: more stars or forks, or a last commit at least two weeks more recent. Data from GitHub, updated 27 November 2026.
Shlink
Shlink is a self-hosted URL shortener that serves short links under your own domains. It offers a command line, a REST API and a web client, and collects anonymized visit statistics with geolocation.
Key features
- Custom domains for short URLs
- Generated short codes or custom slugs
- REST API with API keys
- Command line interface
- Progressive web client for multiple instances
- Anonymized visit tracking with geolocation
YOURLS
YOURLS runs on your server as PHP scripts that create short links on your domain. It offers click analytics, an API, bookmarklets, and a plugin architecture.
Key features
- Short links on your own domain
- Click stats with referrers and geo data
- HTTP API and bookmarklets
- Plugin architecture for extensions
- Historical reporting on link usage