Online Free Qr Code and Barcode Generator

Free Online Qr Code Generator



Generate free Qr Code to link any website or display any text.


Welcome to our free Qr Code Generator website.

If you want to generate a free Qr Code quickly, please fill the reqired places to create one.

If you want to generate a custom Qr Code using Php and Html5 go down and read the totarials.

Free Online Barcode Generator



Generate free Barcode to link any website or display any text.


Welcome to our free Barcode Generator website.

If you want to generate a free Barcode quickly, please fill the reqired places to create one.

If you want to generate a custom Barcode using Php and Html5 go down and read the totarials.

PHP Barcode Generator


This is an easy to use, non-bloated, framework independent, barcode generator in PHP. It creates SVG, PNG, JPG and HTML images, from the most used 1D barcode standards. The codebase is based on the TCPDF barcode generator by Nicola Asuni. This code is therefor licensed under LGPLv3.

Haw to install Php Barcode Generator

You can use this command to install it by composer. Code : composer require picqer/php-barcode-generator

How to use PHP Barcode Generator

Initiate the barcode generator for the output you want, then call the ->getBarcode() routine as many times as you want.

					<?php
					require 'vendor/autoload.php';

					// This will output the barcode as HTML output to display in the browser
					$generator  = new Picqer\Barcode\BarcodeGeneratorHTML();
					echo $generator->getBarcode('081231723897', $generator::TYPE_CODE_128);
				

The getBarcode() method accepts the following parameters:

Example of usage of all parameters:

					<?php

					require 'vendor/autoload.php';

					$redColor = [255, 0, 0];

					$generator = new Picqer\Barcode\BarcodeGeneratorPNG();
					file_put_contents('barcode.png', $generator->getBarcode('tugrulyildirim.com', $generator::TYPE_CODE_128, 3, 50, $redColor));

Accepted Image Types

  1. $generatorSVG = new Picqer\Barcode\BarcodeGeneratorSVG();
  2. $generatorPNG = new Picqer\Barcode\BarcodeGeneratorPNG();
  3. $generatorJPG = new Picqer\Barcode\BarcodeGeneratorJPG();
  4. $generatorHTML = new Picqer\Barcode\BarcodeGeneratorHTML();
If you want to use PNG or JPG images, you need to install Imagick or the GD library. This package will use Imagick if that is installed, or fall back to GD. If you have both installed but you want a specific method, you can use $generator->useGd() or $generator->useImagick() to force your preference.

Php Qr Code Generator

This library helps you generate QR codes in a jiffy. Makes use of bacon/bacon-qr-code to generate the matrix and khanamiryan/qrcode-detector-decoder for validating generated QR codes. Further extended with Twig extensions, generation routes, a factory and a Symfony bundle for easy installation and configuration.

Different writers are provided to generate the QR code as PNG, SVG, EPS or in binary format.

How to install Php Qr Code Generator

You can use this command to install it by composer. Code : composer require endroid/qr-code

Basic Usage

						use Endroid\QrCode\QrCode;

						$qrCode = new QrCode('https://tugrulyildirim.com');

						header('Content-Type: '.$qrCode->getContentType());
						echo $qrCode->writeString();

Readability

The readability of a QR code is primarily determined by the size, the input length, the error correction level and any possible logo over the image so you can tweak these parameters if you are looking for optimal results.

You can also check $qrCode->getRoundBlockSize() value to see if block dimensions are rounded so that the image is more sharp and readable. Please note that rounding block size can result in additional padding to compensate for the rounding difference.

Built-in validation reader

You can enable the built-in validation reader (disabled by default) by calling setValidateResult(true). This validation reader does not guarantee that the QR code will be readable by all readers but it helps you provide a minimum level of quality.

Take note that the validator can consume quite amount of additional resources.

Advanced Usage

							use Endroid\QrCode\ErrorCorrectionLevel;
							use Endroid\QrCode\LabelAlignment;
							use Endroid\QrCode\QrCode;
							use Endroid\QrCode\Response\QrCodeResponse;

							// Create a basic QR code
							$qrCode = new QrCode('https://tugrulyildirim.com');
							$qrCode->setSize(300);

							// Set advanced options
							$qrCode->setWriterByName('png');
							$qrCode->setEncoding('UTF-8');
							$qrCode->setErrorCorrectionLevel(ErrorCorrectionLevel::HIGH());
							$qrCode->setForegroundColor(['r' => 0, 'g' => 0, 'b' => 0, 'a' => 0]);
							$qrCode->setBackgroundColor(['r' => 255, 'g' => 255, 'b' => 255, 'a' => 0]);
							$qrCode->setLabel('Scan the code', 16, __DIR__.'/../assets/fonts/noto_sans.otf', LabelAlignment::CENTER());
							$qrCode->setLogoPath(__DIR__.'/../assets/images/symfony.png');
							$qrCode->setLogoSize(150, 200);
							$qrCode->setValidateResult(false);

							// Apply a margin and round block sizes to improve readability
							// Please note that rounding block sizes can result in additional margin
							$qrCode->setRoundBlockSize(true);
							$qrCode->setMargin(10); 

							// Set additional writer options (SvgWriter example)
							$qrCode->setWriterOptions(['exclude_xml_declaration' => true]);

							// Directly output the QR code
							header('Content-Type: '.$qrCode->getContentType());
							echo $qrCode->writeString();

							// Save it to a file
							$qrCode->writeFile(__DIR__.'/qrcode.png');

							// Generate a data URI to include image data inline (i.e. inside an <img> tag)
							$dataUri = $qrCode->writeDataUri();