YOURLS is a self-hosted link shortener service written in PHP.
Install the AUR package.
A MySQL database and user are required, to complete the config file at
Set a random cookie key, for example using
pwgen 50 1 and a user/password combo for the admin user. You can write the hash or the plain-text, but in the latter case the web server needs
rw permissions to be able to hash it.