Download the PHP package brzuchal/ansi-qr-code without Composer
On this page you can find all versions of the php package brzuchal/ansi-qr-code. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download brzuchal/ansi-qr-code
More information about brzuchal/ansi-qr-code
Files in brzuchal/ansi-qr-code
Download brzuchal/ansi-qr-code
More information about brzuchal/ansi-qr-code
Files in brzuchal/ansi-qr-code
Vendor brzuchal
Package ansi-qr-code
Short Description PHP library for creating QR codes in ANSI format for terminal
License MIT
Package ansi-qr-code
Short Description PHP library for creating QR codes in ANSI format for terminal
License MIT
Please rate this library. Is it a good library?
Informations about the package ansi-qr-code
ANSI QR Code
A PHP library for generating QR codes in the terminal using ANSI escape codes.
Command Line Tool
Features
- ANSI Renderer: Uses half-block characters (
▀,▄,█) and ANSI colors to render high-resolution QR codes in the terminal. - ASCII Renderer: Fallback renderer using full block characters (
██) and spaces for broader compatibility. - Auto-detection: Automatically selects the best renderer based on terminal capabilities (TTY,
NO_COLOR,TERM). - Zero Dependencies: Only requires
bacon/bacon-qr-codefor matrix generation. - Static Analysis: Strict type checking with PHPStan (max level).
- Coding Standard: Adheres to
brzuchal/coding-standard.
Installation
Installation
One-liner (Recommended)
Installs the qr command to ~/.local/bin.
Composer
Usage
Command Line
After installing the package globally or in a project, you can use the qr command:
PHP Code
Customizing Renderer
You can choose between AnsiRenderer (default) and AsciiRenderer:
Requirements
- PHP ^8.3
- bacon/bacon-qr-code ^2.0
License
MIT
All versions of ansi-qr-code with dependencies
PHP Build Version
Package Version
The package brzuchal/ansi-qr-code contains the following files
Loading the files please wait ...