Download the PHP package cruide/qrcode-native-php without Composer

On this page you can find all versions of the php package cruide/qrcode-native-php. 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 qrcode-native-php

cruide/qrcode-native-php

Alexander Tischenko — http://alex-tisch.ru

Генерация QR-кодов на чистом PHP — без сторонних сервисов и без зависимостей.

Основной сценарий — маркировка товаров и складских единиц: название, артикул, UUID, дата прихода, комментарий. Подходит для печати этикеток (SVG — векторный, даёт чёткий отпечаток при любом размере).

Возможности

Установка

Быстрый старт

Этикетка товара

Содержимое QR (формат по умолчанию — строки KEY:значение):

Форматы полезной нагрузки

Настройки генерации

Уровень Восстановление Когда использовать
L ~7% максимум данных, чистые условия
M ~15% по умолчанию
Q ~25% транспортировка
H ~30% царапающиеся/грязные этикетки

Ёмкость (байты, версия 40): L — 2953, M — 2331, Q — 1663, H — 1273.

API

Метод Описание
QrCode::make($payload) создать генератор (строка или ProductLabel)
setEcLevel(string) уровень коррекции L/M/Q/H
setMinVersion(?int) минимальная версия 1–40
setMask(?int) маска 0–7
toSvg($moduleSize=8, $quietZone=4, $fg, $bg) SVG-строка
toPng($width=512, $quietZone=4) бинарный PNG (GD)
toText($quietZone=2, $invert=false) Unicode-превью
toDataUri() SVG в виде data-URI
saveSvg($path, ...), savePng($path, ...) запись в файл
getMatrix(), getSize(), getVersion(), getMask() интроспекция

Проверка

Как это работает

  1. Данные кодируются в байтовом режиме (индикатор 0100, длина, байты UTF-8, терминатор, пад-байты 0xEC/0x11).
  2. Подбирается минимальная версия, поток разбивается на RS-блоки, для каждого считаются коды коррекции (GF(256), полином 0x11D), блоки интерливируются.
  3. Строится матрица: поисковые паттерны, тайминг, выравнивание, служебная информация (формат/версия, BCH), данные размещаются зигзагом.
  4. Примеряются 8 масок, выбирается минимальный штраф по четырём правилам.

Лицензия

MIT


All versions of qrcode-native-php with dependencies

PHP Build Version
Package Version
Requires php Version >=8.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 cruide/qrcode-native-php contains the following files

Loading the files please wait ...