Download the PHP package terminal42/contao-shortlink without Composer
On this page you can find all versions of the php package terminal42/contao-shortlink. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download terminal42/contao-shortlink
More information about terminal42/contao-shortlink
Files in terminal42/contao-shortlink
Package contao-shortlink
Short Description Extension to create shortlinks in Contao CMS
License MIT
Informations about the package contao-shortlink
terminal42/contao-shortlink
This extension allows to create shortlinks in the Contao back end, similar to bit.ly and other shortener services.
Installation
Choose the installation method that matches your workflow!
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
Add a composer dependency for this bundle. Therefore, change in the project root and run the following:
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
Default configuration:
-
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
This bundle is released under the MIT
All versions of contao-shortlink with dependencies
composer-runtime-api Version ^2.0
composer/semver Version *
contao/core-bundle Version ^4.13 || ^5.0
hashids/hashids Version ^3.0 || ^4.1
bacon/bacon-qr-code Version ^2.0 || ^3.0
symfony/deprecation-contracts Version ^2.0 || ^3.0