Download the PHP package yellowskies/qr-code-bundle without Composer

On this page you can find all versions of the php package yellowskies/qr-code-bundle. 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 qr-code-bundle

YellowskiesQRcodeBundle

Latest Stable Version License

A Symfony Barcode & QR Code Generator Bundle with Twig extension.

Supports PHP 8.2+ and Symfony 6.4 / 7.x / 8.x

Features

Installation

The bundle uses Symfony Flex and will be automatically configured.

Manual registration (if not using Flex)

Add to config/bundles.php:

Usage

Generate options

Option Type Required Allowed values Description
code string required What you want to encode
type string required See types below Type of barcode
format string required html, svg, png Output format
width int optional Width of unit
height int optional Height of unit
color string/array optional HTML color / [R,G,B] Barcode color

Default width/height: 2D = 5x5, 1D = 2x30 Default color: html/svg = "black", png = [0, 0, 0]

In Twig templates

In a controller/service

Standalone usage

Save to file

Supported Barcode Types

2D Barcodes

Type Name Example
qrcode QR Code
pdf417 PDF417
datamatrix Data Matrix

1D Barcodes

Type Name
c128 Code 128
c128a/b/c Code 128 A/B/C
c39 Code 39
c39+ Code 39 with check digit
c39e Code 39 Extended
c39e+ Code 39 Extended with check digit
c93 Code 93
ean8 EAN-8
ean13 EAN-13
upca UPC-A
upce UPC-E
i25 Interleaved 2 of 5
s25 Standard 2 of 5
msi MSI
postnet POSTNET
planet PLANET
rms4cc RMS4CC
kix KIX-code
imb Intelligent Mail
codabar Codabar
code11 Code 11
pharma Pharmacode
pharma2t Pharmacode Two-Track

Requirements

Upgrade from 1.x

If upgrading from version 1.x:

  1. Update your composer.json to require "yellowskies/qr-code-bundle": "^2.0"
  2. Ensure you're running PHP 8.2+ and Symfony 6.4+
  3. The Twig function now returns the barcode string instead of echoing it (no change needed in templates)

License

Apache-2.0


All versions of qr-code-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
symfony/framework-bundle Version ^6.4 || ^7.0 || ^8.0
symfony/twig-bundle Version ^6.4 || ^7.0 || ^8.0
symfony/options-resolver Version ^6.4 || ^7.0 || ^8.0
twig/twig Version ^3.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 yellowskies/qr-code-bundle contains the following files

Loading the files please wait ...