• PHP 78.4%
  • CSS 17.3%
  • Shell 3.9%
  • JavaScript 0.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-05-17 17:43:33 +05:30
locales Updated to my instance 2026-03-23 22:33:51 +05:30
tests Synced 2026-05-17 17:14:53 +05:30
themes Synced 2026-05-17 17:14:53 +05:30
utils Synced 2026-05-17 17:14:53 +05:30
.gitignore Synced 2026-03-23 22:10:27 +05:30
.php-cs-fixer.dist.php Synced 2026-03-23 22:10:27 +05:30
CHANGELOG.md Synced 2026-03-23 22:10:27 +05:30
common.php Synced 2026-05-17 17:14:53 +05:30
composer.json Synced 2026-05-17 17:14:53 +05:30
composer.lock Added missing composer lock file 2026-05-17 17:43:33 +05:30
config.inc.php Updated to my instance 2026-03-23 22:33:51 +05:30
htaccess.txt indexing fix 2025-09-08 20:15:48 +05:30
index.php Synced 2026-05-17 17:14:53 +05:30
LICENSE D 2019-08-13 21:17:08 +02:00
LICENSE.html Use tabs instead of spaces, better indentation 2022-05-30 20:16:36 +02:00
phpstan.dist.neon Synced 2026-03-23 22:10:27 +05:30
README.md Synced 2026-05-17 17:14:53 +05:30
style.css Synced 2026-05-17 17:14:53 +05:30
stylelint.config.mjs Synced 2026-05-17 17:14:53 +05:30
synclog.txt Synced 2026-05-17 17:14:53 +05:30

LibreQR

A PHP Web interface for generating QR codes.

Demo

A LibreQR instance is available at https://qr.antopie.org.

Installation

Generic

Place this source code in a Web server with PHP8.0+, extensions gd, mbstring and iconv, and writing rights on the css/ directory. Every request needs to be sent to index.php.

Security hardening

HTTP headers

Your HTTP server can reply the following headers:

Content-Security-Policy: default-src 'none'; img-src 'self' data:; style-src 'self'; frame-ancestors 'none'; form-action 'self';
Referrer-Policy: no-referrer
PHP-FPM chroot

LibreQR can be chrooted using PHP-FPM.

YunoHost

There is a package for YunoHost.

For historical reasons, LibreQR is technically named qr in YunoHost.

You can install it from the WebAdmin or with this command:

sudo yunohost app install qr

Themes

Themes are located in themes/*, the default theme is in themes/libreqr/.

You can customize your LibreQR instance look by changing the colors in theme.php, the logo in logo.less or the icons in icons/<size>.png (then list the sizes in theme.php).

Contribute

You can open issues and pull requests on the public forge.

Translations

Contribute on Codeberg's Weblate

You can also manually edit translations in locales/<language-code>.php.

Contact

You can get contact details for the maintainer, feel free to use them if you want more information about using or contributing to LibreQR.

License

LibreQR is published under AGPLv3+. Librairies located in the vendor subdirectory use their own compatible licenses.