Download the PHP package tonsoo/php-qr-code without Composer

On this page you can find all versions of the php package tonsoo/php-qr-code. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php-qr-code

tonsoo/php-qr-code

A QR code styling and rendering library for PHP.

tonsoo/php-qr-code separates QR encoding from styling and rendering so the package can focus on how a QR code looks: module shapes, finder styling, logo placement, SVG output, and raster output.

Status

Current focus:

Installation

For raster output you also need GD:

Quick Start

Helper API

Factory API

Public API

Creation

QRCode styling

Output

Shapes

Built-in module shapes:

classy-rounded is neighbor-aware and is intended to approximate the popular QR styling variants used by tools such as Mini QR / qr-code-styling.

Custom shapes

Custom shapes receive a ShapeContext and return a vector Path.

Logos

Logos are placed in the center of the QR code and reserve a clean exclusion area behind them.

SVG logo handling

SvgRenderer supports four logo modes through SvgLogoMode:

Auto is the default. SVG files are normally inlined as nested SVG so the final output stays vector-native.

Error Correction

The package uses the four QR standard levels:

Higher correction improves resilience but there is no level above High in the QR standard.

CLI Example

The repository ships with a minimal CLI in examples/cli.php.

Logo example:

Show all options:

Architecture

The package is split into a few layers:

Automated Tests

The repository uses PHPUnit.

Run all tests:

or directly:

Covered areas currently include:

Notes


All versions of php-qr-code with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
bacon/bacon-qr-code Version ^3.1
kaareln/php-svg-path-data Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package tonsoo/php-qr-code contains the following files

Loading the files please wait ...