Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 20, 2024 via composer

bacon/bacon-qr-code 2.0.8

BaconQrCode is a QR code generator for PHP.
Package summary
Share
0
issues
1
license
2
BSD-2-Clause
Package created
30 Mar 2013
Version published
7 Dec 2022
Maintainers
1
Total deps
2
Direct deps
1
License
BSD-2-Clause

Issues

0
This package has no issues

Licenses

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
bacon/bacon-qr-code@2.0.8
dasprid/enum@1.0.5
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

1
All Dependencies CSV
β“˜ This is a list of bacon/bacon-qr-code 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
dasprid/enum1.0.511.52 kBBSD-2-Clause
prod

Visualizations

Frequently Asked Questions

What does bacon/bacon-qr-code do?

The "bacon/bacon-qr-code" is a compositor package that casts as a QR code generator for PHP. It's an adopter of the QR code portion of the ZXing library. It was primarily designed to encode the QR code information. Its setting includes the Reed Solomon codec implementation which, despite being a bit slow in PHP, was chosen to replace the ZXing library's original implementation due to the latter's performance index.

How do you use bacon/bacon-qr-code?

Use of the package "bacon/bacon-qr-code" in your PHP code is quite straightforward. Once you have it installed, you can generate a QR code image file for any text like this:

use BaconQrCode\Renderer\ImageRenderer;
use BaconQrCode\Renderer\Image\ImagickImageBackEnd;
use BaconQrCode\Renderer\RendererStyle\RendererStyle;
use BaconQrCode\Writer;

$renderer = new ImageRenderer(
    new RendererStyle(400),
    new ImagickImageBackEnd()
);
$writer = new Writer($renderer);
$writer->writeFile('Hello World!', 'qrcode.png');

In this example, the text 'Hello World!' is being encoded as a QR code, and the QR code image is getting saved to a file called 'qrcode.png'.

There are several image rendering back ends available, including ImagickImageBackEnd for rendering raster images using the Imagick library, the SvgImageBackEnd for rendering SVG files using XMLWriter, and the EpsImageBackEnd for rendering EPS files.

Where are the bacon/bacon-qr-code docs?

The documentation for the "bacon/bacon-qr-code" package is embedded within the README file at the GitHub repository: https://github.com/Bacon/BaconQrCode. The README serves as a comprehensive guide for installing, learning, and effectively implementing the QR code generation features provided by this PHP library.