Skip to content

polr

Lightweight self-hosted PHP URL shortener with an API, for people who want branded links

Copyleft (OSI) · GPL-2.0

Listed by , founder & editor

23

Health

Dormant

Overview

Stars

5,081

Last commit

3 years ago

Sep 2023

Repository age

13 years

since Oct 2013

Latest version

2.3.0b

Jan 2021

Contributors

–

Releases

0

last 12 months

Language

PHP

Polr is a URL shortener you host on your own server. It is written in PHP on the Lumen framework and stores its data in MySQL. You can brand your short links, manage them in a themable web interface, and create them through a JSON API.

Installation is manual. You clone the repository or download a release, point the web server document root at the public directory, create a MySQL database, and finish through a setup page in the browser. Upgrades within 2.x use git pull, composer install and php artisan migrate. A Python library, mypolr, is available for the API.

Polr is licensed under GPL-2.0 and has been around since 2013. The last commit was in September 2023 and the latest release is 2.3.0b, so expect little new development. It suits people who want to replace hosted link shorteners with a service they control.

Who it's for

Small sites wanting branded short links

You host it on your own domain and keep control of the link data.

Skip if: You need active development or frequent security updates.

Developers creating links from scripts

It has a JSON API and a Python client library.

Skip if: You want a hosted service with no server to maintain.

The problem it solves

Hosted link shorteners put your links and click data on someone else's platform. Polr lets you run the shortener on your own domain and database.

Strengths

  • Runs on a plain PHP and MySQL stack
  • JSON API for creating links from other tools
  • Themable interface and custom link branding
  • Over 5,000 GitHub stars and a long history since 2013

Trade-offs

  • No commits since September 2023
  • No Docker setup described; install is manual
  • Upgrading from 1.x to 2.x cannot be automated
  • GPL-2.0 license carries copyleft obligations

Self-host polr

Self-hostable
Yes

Frequently asked questions

Is Polr free?

Yes. It is open source under GPL-2.0.

Can I self-host it?

Yes. You need a web server with PHP and a MySQL database.

Is it still maintained?

Development has stalled. The last commit was in September 2023.

Does it have an API?

Yes. It provides a JSON API, and a Python library called mypolr wraps it.

Similar tools in Marketing and customer engagement tools

SurveyKing

Marketing and customer engagement tools

Self-hosted survey, exam and question-bank platform built on Java and Spring Boot

4k 602 3 months ago Dormant MIT

LinkStack

Marketing and customer engagement tools

Self-hosted link-in-bio page builder with multi-user support and themes

4k 449 33 days ago Active AGPL-3.0

OpenOutreach

Marketing and customer engagement tools

Self-hosted CLI agent that finds B2B leads, explains the fit and emails them

3.8k 681 3 days ago Active Apache-2.0

LittleLink

Marketing and customer engagement tools

Static link-in-bio page you host yourself, for people who want a Linktree-style profile

3.1k 1.6k 4 months ago Slowing MIT

Dittofeed

Marketing and customer engagement tools

Self-hosted messaging platform for teams sending email, SMS and push journeys

3.1k 436 42 days ago Slowing MIT

Social Stream Ninja

Marketing and customer engagement tools

Combine live chat from YouTube, Twitch, TikTok and Kick into one dock with OBS overlays

1.2k 215 2 days ago Active GPL-3.0