Download the PHP package shlinkio/shlink-installer without Composer
On this page you can find all versions of the php package shlinkio/shlink-installer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download shlinkio/shlink-installer
More information about shlinkio/shlink-installer
Files in shlinkio/shlink-installer
Package shlink-installer
Short Description A PHP command line tool used to install shlink
License MIT
Homepage https://shlink.io
Informations about the package shlink-installer
Shlink installer
A PHP command line tool used to install shlink.
Installation
Install this tool using composer.
composer install shlinkio/shlink-installer
Usage
This is the command line tool used by shlink to guide you through the installation process.
The tool expects the working directory to be a valid shlink instance.
In order to run it, use the built-in CLI entry point.
Run vendor/bin/shlink-installer
to print all available commands.
The most important ones are these:
install
: Used to set up Shlink from scratch.update
: Used to update an existing Shlink instance. Will allow importing the config, skipping the options that already have a value.set-option
: Allows to set the value for an individual option, in case you want to update it.
Customize options
Questions to ask the user
In order to retain backwards compatibility, it is possible to configure the installer to ask just a specific subset of questions.
Add a configuration file including a configuration like this:
If
installer.enabled_options
is not provided at all, all the config options will be asked.
Commands to run after installation
After the user has been asked for all the config, the installer will run a set of scripts which will create/update the database, download assets, etc.
It is possible to overwrite those commands via configuration too, using a syntax like this:
This example shows all the currently available commands. They are run in the order they have been set here.
Important: Take into consideration that all the commands must be PHP scripts, since the installer will prefix all of them with the php binary.
All versions of shlink-installer with dependencies
laminas/laminas-config Version ^3.9
laminas/laminas-config-aggregator Version ^1.15
laminas/laminas-servicemanager Version ^4.2 || ^3.22
laminas/laminas-stdlib Version ^3.19
shlinkio/shlink-config Version ^3.1
symfony/console Version ^7.1
symfony/filesystem Version ^7.1
symfony/process Version ^7.1