Polr

Open source

Polr is an open-source link shortener written in PHP that you host on your own domain, with a REST API and admin interface.

Open-source alternative to

polrproject.org
Polr homepage screenshot
GitHub stars
5.1k
Last 30 days
-7(+0%)
Last commit
2 yr ago
Repository age
13 years
Version
2.3.0b
Licence
GPL-2.0
Self-hosted
Yes

About Polr

Polr lets you run your own URL shortener on a domain you control, so links carry your branding and the data stays with you. It has an interface for managing links and for administering the instance.

Behind the interface sits a REST API. API keys can be assigned to users automatically or generated by hand, and the API can create new links or look up existing ones. You can also adjust who may shorten links, how redirects behave, and the theme.

The project is written in PHP on the Lumen microframework with Blade templating and an MVC layout. It uses the Eloquent ORM with MySQL, PostgreSQL or SQLite. A public demo instance lets you try the interface, admin panel and API.

Key features

  • Self-hosted shortener on your own domain
  • REST API for other services
  • API keys issued automatically or by hand
  • Adjustable permissions, redirects and theme
  • Works with MySQL, PostgreSQL or SQLite

Good fit for

  • Branded short links on a custom domain
  • Link creation from other apps via the API
Tags
url shortener
link shortener
php
self-hosted
api
lumen

Polr: questions and answers

What is Polr used for?
Polr is an open-source link shortener written in PHP that you host on your own domain, with a REST API and admin interface. It is a good fit for branded short links on a custom domain and link creation from other apps via the API.
Is Polr open source?
Yes. Polr is open source under the GPL-2.0 licence. Its source code is on GitHub at cydrobolt/polr and is written mainly in PHP.
Is Polr free?
Yes. Polr is open source, so the software itself is free to use.
Can I self-host Polr?
Yes. Polr can be self-hosted on your own server or infrastructure.
What is Polr an alternative to?
Polr is an open-source alternative to Rebrandly, Short.io and Bitly. Other open-source alternatives to Rebrandly include YOURLS, Kutt and Shlink.
Is Polr actively maintained?
The most recent commit to Polr was on 28 May 2024, and the latest release is 2.3.0b, published on 28 January 2021. The project has 5.1k stars on GitHub.

Open-source alternatives to Polr

See all

SaaS alternatives to Polr

See all