PHPackages                             terminal42/contao-shortlink - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. terminal42/contao-shortlink

ActiveContao-bundle[Utility &amp; Helpers](/categories/utility)

terminal42/contao-shortlink
===========================

Extension to create shortlinks in Contao CMS

1.5.4(5mo ago)68.8k↓31%7MITPHPPHP ^8.1CI passing

Since Feb 24Pushed 5mo ago5 watchersCompare

[ Source](https://github.com/terminal42/contao-shortlink)[ Packagist](https://packagist.org/packages/terminal42/contao-shortlink)[ GitHub Sponsors](https://github.com/terminal42)[ Fund](https://ko-fi.com/terminal42)[ RSS](/packages/terminal42-contao-shortlink/feed)WikiDiscussions main Synced 4d ago

READMEChangelogDependencies (8)Versions (42)Used By (0)

terminal42/contao-shortlink
===========================

[](#terminal42contao-shortlink)

This extension allows to create shortlinks in the Contao back end, similar to bit.ly and other shortener services.

Installation
------------

[](#installation)

Choose the installation method that matches your workflow!

### Installation via Contao Manager

[](#installation-via-contao-manager)

Search for `terminal42/contao-shortlink` in the Contao Manager and add it to your installation. Finally, update the packages.

### Manual installation

[](#manual-installation)

Add a composer dependency for this bundle. Therefore, change in the project root and run the following:

```
composer require terminal42/contao-shortlink
```

Depending on your environment, the command can differ, i.e. starting with `php composer.phar …` if you do not have composer installed globally.

Bundle configuration
--------------------

[](#bundle-configuration)

**Default configuration:**

```
terminal42_shortlink:
    host: ~
    prefix: ~
    min_length: 0
    catchall_redirect: ~
    salt: terminal42_shortlink
    log_ip: false
```

- **host:** The host to use for shortlinks. Can be different than the website host, but make sure it is set up on your hosting/server.
- **prefix:** Optionally configure a prefix, e.g. `go/` to generate with all shortlinks.
- **min\_length:** Minimum lengths of shortlinks. Applies to the generated hash ID as well as to the alias input in the back end.

    This can be useful if you want to use the same domain for shortlinks and a regular website. By setting the shortlink length to something higher than the root page URL prefix, you can make sure there's never a conflict between a shortlink and the regular website.
- **catchall\_redirect:** If you configure a host exclusively for shortlinks, you can redirect all unknown requests to a URL (e.g. your regular website).
- **salt:** If a shortlink does not have a custom alias (path), a unique hash ID is generated from the database ID. By changing the salt you can get unique IDs for your installation.
- **log\_ip:** This extension records how often a shortlink is accessed. Enable this flag to also capture IP addresses (not allowed under DSGVO in europe!)

License
-------

[](#license)

This bundle is released under the [MIT](LICENSE)

###  Health Score

55

—

FairBetter than 97% of packages

Maintenance70

Regular maintenance activity

Popularity32

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 82.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~63 days

Recently: every ~148 days

Total

41

Last Release

173d ago

Major Versions

0.4.4 → 1.0.02021-06-14

PHP version history (3 changes)0.1PHP ^7.1

1.0.0PHP ^7.4 || ^8.0

1.3.0PHP ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1073273?v=4)[Andreas Schempp](/maintainers/aschempp)[@aschempp](https://github.com/aschempp)

![](https://avatars.githubusercontent.com/u/481937?v=4)[Yanick Witschi](/maintainers/Toflar)[@Toflar](https://github.com/Toflar)

---

Top Contributors

[![aschempp](https://avatars.githubusercontent.com/u/1073273?v=4)](https://github.com/aschempp "aschempp (67 commits)")[![richardhj](https://avatars.githubusercontent.com/u/1284725?v=4)](https://github.com/richardhj "richardhj (8 commits)")[![leonexcc](https://avatars.githubusercontent.com/u/7428636?v=4)](https://github.com/leonexcc "leonexcc (2 commits)")[![lukasbableck](https://avatars.githubusercontent.com/u/42083846?v=4)](https://github.com/lukasbableck "lukasbableck (2 commits)")[![fritzmg](https://avatars.githubusercontent.com/u/4970961?v=4)](https://github.com/fritzmg "fritzmg (1 commits)")[![qzminski](https://avatars.githubusercontent.com/u/193483?v=4)](https://github.com/qzminski "qzminski (1 commits)")

---

Tags

contaoshortcutshortlinkurlurlcontaoshortcutshortlink

### Embed Badge

![Health badge](/badges/terminal42-contao-shortlink/health.svg)

```
[![Health](https://phpackages.com/badges/terminal42-contao-shortlink/health.svg)](https://phpackages.com/packages/terminal42-contao-shortlink)
```

###  Alternatives

[symfony/symfony

The Symfony PHP framework

31.4k87.2M2.2k](/packages/symfony-symfony)[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k251.7M11.6k](/packages/symfony-framework-bundle)[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k51.2M339](/packages/api-platform-core)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M577](/packages/shopware-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
