The definitive self-hosted URL shortener
#2034 Modernize entities, using constructor property promotion and readonly wherever possible.
#2036 Deep performance improvement in some endpoints which involve counting visits:
This has been achieved by introducing a new table which tracks slotted visits counts. We can then SUM
all counts for certain short URL, avoiding COUNT(visits)
aggregates which are much less performant when there are a lot of visits.
#2049 Request ID is now propagated to the background tasks/jobs scheduled during a request.
This allows for a better traceability, as the logs generated during those jobs will have a matching UUID as the logs generated during the request the triggered the job.
#1330 All visit-related endpoints now expose the visitedUrl
prop for any visit.
Previously, this was exposed only for orphan visits, since this can be an arbitrary value for those.
#2077 When sending visits to Matomo, the short URL title is now used as document title in matomo.
#2059 Add new short-url:delete-expired
command that can be used to programmatically delete expired short URLs.
Expired short URLs are those that have a validUntil
date in the past, or optionally, that have reached the max amount of visits.
This command can be run periodically by those who create many disposable URLs which are valid only for a period of time, and then can be deleted to save space.
#1925 Add new integration:matomo:send-visits
console command that can be used to send existing visits to integrated Matomo instance.
#2087 Allow memory_limit
to be configured via the new MEMORY_LIMIT
env var or configuration option.
php-middleware/request-id
with userland simple middleware.league\uri
package.TEXT
type, which allows for much longer values.#1914 Add new dynamic redirects engine based on rules. Rules are conditions checked against the visitor's request, and when matching, they can result in a redirect to a different long URL.
Rules can be based on things like the presence of specific params, headers, locations, etc. This version ships with three initial rule condition types: device, query param and language.
#1902 Add dynamic redirects based on query parameters.
This is implemented on top of the new rule-based redirects.
#1915 Add dynamic redirects based on accept language.
This is implemented on top of the new rule-based redirects.
#1868 Add support for docker compose secrets to the docker image.
#1979 Allow orphan visits lists to be filtered by type.
This is supported both by the GET /visits/orphan
API endpoint via type=...
query param, and by the visit:orphan
CLI command, via --type
flag.
#1904 Allow to customize QR codes foreground color, background color and logo.
#1884 Allow a path prefix to be provided during short URL creation.
This can be useful to let Shlink generate partially random URLs, but with a known prefix.
Path prefixes are validated and filtered taking multi-segment slugs into consideration, which means slashes are replaced with dashes as long as multi-segment slugs are disabled.