🔗 Shlink

The definitive self-hosted URL shortener

★ 3.5K URL shortener

Homepage · Source code

Author: Alejandro Celaya · License: MIT

Version: 4.4.2 ·

About Shlink

A PHP-based self-hosted URL shortener that can be used to serve shortened URLs under your own domain.


Features

  • Progressive web app: Manage multiple Shlink instances using this beautiful and intuitive progressive web application.
  • API-first: Access your shortened URLs from anywhere. Simple authentication and easy to integrate.
  • Command line: Generate and manage short URLs from the command line. List URLs, see visits, manage your domains, etc.

Environment variables

View environment variables
PROJECT
  shlink
DOMAIN
  stack.localhost
DEFAULT_DOMAIN
  $PROJECT.$DOMAIN
IS_HTTPS_ENABLED
  true
GEOLITE_LICENSE_KEY
  kjh23ljkbndskj345
INITIAL_API_KEY
  secretApiKey
DB_DRIVER
  postgres # Use the value mysql, maria, postgres or mssql to prevent the SQLite database to be used.
DB_NAME
  shlink # The database name to be used. Defaults to shlink.
DB_USER
  shlink # The username credential for the database server.
DB_PASSWORD
  password # The password credential for the database server.
DB_HOST
  shlink-postgres # The host name of the server running the database engine.
DB_PORT
  5432 # The port in which the database service is running.