Support the ongoing development of Laravel.io →
posted 10 years ago
Packages

Simple-QrCode

What is Simple-QrCode?

Simple QrCode is an easy to use library made for Laravel. We found ourselves needing to make quite a few QrCodes and were not able to find an easy to use library for Laravel.

How We Use It

We use this by adding

<div class="visible-print text-center">
    {{ QrCode::size(100)->generate(Request::url()); }}
    <p>Scan me to return to the original page.</p>
</div>

into our footer file and only displaying the code when they are in print mode. This makes it very easy for people to return to our pages after they have printed a page.

Features:

  • Creates QrCodes in 3 formats. (PNG, EPS, SVG)
  • Adjustable size
  • Change the foreground color
  • Change the background color
  • 4 levels of error correction
  • Adjust the margin’s surrounding a QrCode.
  • Compatible with HHVM

Links:

Requirements:

  • PHP 5.3+
  • Laravel 4.x
Last updated 3 years ago.
0

We just pushed another update to this.

If you all find this useful or find an issue, please let us know! We love to hear any and all feedback! :D

Last updated 3 years ago.
0

Life saver. I will test it tonight. Thanks!

Last updated 3 years ago.
0

Hi SimplyCorey,

Thanks for sharing. Only a question, is there any limit for number of Qr Codes?

Thanks in advanced

Last updated 3 years ago.
0

codeATbusiness said:

Hi SimplyCorey,

Thanks for sharing. Only a question, is there any limit for number of Qr Codes?

Thanks in advanced

No limit. You can make as many qr codes as you want.

echo QrCode::generate('something');
echo QrCode::generate('something else');
Last updated 3 years ago.
0

mschinis said:

Life saver. I will test it tonight. Thanks!

Awesome! Hopefully it was able to meet your needs!

Last updated 3 years ago.
0

Hi SimplyCorey,

It was a cakewalk using this package !! Thanks for that .

However I was wondering is there an api to read the data from qr code as well?

Regards, Yashaswini

Last updated 3 years ago.
0

Yashaswini said:

Hi SimplyCorey,

It was a cakewalk using this package !! Thanks for that .

However I was wondering is there an api to read the data from qr code as well?

Regards, Yashaswini

There is not currently a way to decode a qrcode using the API. Sorry.

Last updated 3 years ago.
0

SimplyCorey said:

Yashaswini said:

Hi SimplyCorey,

It was a cakewalk using this package !! Thanks for that .

However I was wondering is there an api to read the data from qr code as well?

Regards, Yashaswini

There is not currently a way to decode a qrcode using the API. Sorry.

Hello how to attach QR code as image into emel blade template.?

0

SimplyCorey said:

codeATbusiness said:

Hi SimplyCorey,

Thanks for sharing. Only a question, is there any limit for number of Qr Codes?

Thanks in advanced

No limit. You can make as many qr codes as you want.

echo QrCode::generate('something'); echo QrCode::generate('something else');

so, what's mean This method must be called last if using within a chain, how can i generate more than one in a chain

0

Sign in to participate in this thread!

PHPverse

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.