Back to directory

Shlink

A PHP-based, self-hosted URL shortener that serves shortened links under your own domain, with a REST API and official Docker image.

Shlink

Shlink is a PHP-based self-hosted URL shortener that can be used to serve shortened URLs under your own domain. It requires PHP 8.4 or 8.5 with extensions including json, curl, pdo, intl, gd, and gmp or bcmath, and a database such as MySQL, MariaDB, PostgreSQL, Microsoft SQL Server, or SQLite.

It can be run from an official Docker image configured through environment variables, or installed from a pre-bundled distributable package matching the host's PHP version, downloaded and decompressed in place. Building from source instead clones the repository, downloads the Composer package manager into the project folder, and runs a build script that produces the same kind of distributable package. Full documentation covers everything the shortener can do beyond this basic setup.

More in APIs

See all 103
  • Grabbit

    grabbit.live

    An agent-first screenshot API that captures a hosted, pixel-perfect image of any URL through a one-line CLI, a hosted MCP server, or a plain REST call.

  • App2Api

    app2api.com

    A tool that reverse-engineers the real API behind a mobile app you own or are authorized to test, then hands an AI agent a runnable call and an OpenAPI spec for it.

  • Apitomy Codegen

    github.com

    Generates JAX-RS server stubs, Quarkus-optimized applications, data models and client libraries from OpenAPI specifications.