Skip to content

barcode.php - Generate QR Code from a single PHP file. MIT license.

License

Notifications You must be signed in to change notification settings

splitbrain/php-qrcode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phpQRCode

Generate SVG QR Codes. MIT license.

This is a stripped down version of https://github.com/kreativekorp/barcode inspired by another version at https://github.com/psyon/php-qrcode

Install via composer:

composer require splitbrain/php-qrcode

Usage:

use splitbrain\phpQRCode\QRCode;
echo QRCode::svg('hello world');

The above will directly output the generated SVG file. This file has no styles attached. Use CSS to style howver you want it:

svg {
    width: 10em;
    height: 10em;
    fill: #ff0000;
}

Options:

s - Symbology (type of QR code). One of:

    qrl
    qrm
    qrq
    qrh

About

barcode.php - Generate QR Code from a single PHP file. MIT license.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%