PHPackages                             sujanshresthanet/php-qrcode-generator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. sujanshresthanet/php-qrcode-generator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sujanshresthanet/php-qrcode-generator
=====================================

Generate QRCode with PHP

v2.0.2(4y ago)143LGPL-3.0PHPPHP &gt;=7.2

Since Jun 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/sujanshresthanet/PHP-QRCode-Generator)[ Packagist](https://packagist.org/packages/sujanshresthanet/php-qrcode-generator)[ Docs](http://www.sujanshrestha.net)[ RSS](/packages/sujanshresthanet-php-qrcode-generator/feed)WikiDiscussions master Synced today

READMEChangelog (2)DependenciesVersions (5)Used By (0)

PHP QR Code Generator
=====================

[](#php-qr-code-generator)

[![Latest Stable Version](https://camo.githubusercontent.com/203e07b303d8ee260481bebbcf9c8687d046d2d3f688f94db82e0071fe846224/687474703a2f2f706f7365722e707567782e6f72672f73756a616e73687265737468616e65742f7068702d7172636f64652d67656e657261746f722f76)](https://packagist.org/packages/sujanshresthanet/php-qrcode-generator) [![Total Downloads](https://camo.githubusercontent.com/247b23983e3d93f332d6d60ab6110ef5f2b5845bf3cca21a1b5eaa986eeac486/687474703a2f2f706f7365722e707567782e6f72672f73756a616e73687265737468616e65742f7068702d7172636f64652d67656e657261746f722f646f776e6c6f616473)](https://packagist.org/packages/sujanshresthanet/php-qrcode-generator) [![Latest Unstable Version](https://camo.githubusercontent.com/9881df851cd9032ae8a1c8cefa662f207f564179e467c4c5d8d703ddc695bf18/687474703a2f2f706f7365722e707567782e6f72672f73756a616e73687265737468616e65742f7068702d7172636f64652d67656e657261746f722f762f756e737461626c65)](https://packagist.org/packages/sujanshresthanet/php-qrcode-generator) [![License](https://camo.githubusercontent.com/b93992a1dd2ae3528407c4b17a553f88020b4c318ede005565bd03bdbcb8e47a/687474703a2f2f706f7365722e707567782e6f72672f73756a616e73687265737468616e65742f7068702d7172636f64652d67656e657261746f722f6c6963656e7365)](https://packagist.org/packages/sujanshresthanet/php-qrcode-generator) [![PHP Version Require](https://camo.githubusercontent.com/055fb6545d2873057ab4c56784bb7b2cd66535bb5ede118bbf7ae43f43e3556f/687474703a2f2f706f7365722e707567782e6f72672f73756a616e73687265737468616e65742f7068702d7172636f64652d67656e657261746f722f726571756972652f706870)](https://packagist.org/packages/sujanshresthanet/php-qrcode-generator)

[![Donate via PayPal](https://camo.githubusercontent.com/e5f561f4f549822da3fbfb75d0be9059a60eac15b1ff7af66500ca1dd4dba91b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f6e6174652d70617970616c2d3837636565622e737667)](https://www.paypal.com/donate/?hosted_button_id=2L5XM9USTV4K4)*Please consider supporting this project by making a donation via [PayPal](https://www.paypal.com/donate/?hosted_button_id=2L5XM9USTV4K4)*

Description
-----------

[](#description)

This is an easy to use, non-bloated, framework independent, QR Code generator in PHP.

Installation
------------

[](#installation)

Install through [composer](https://getcomposer.org/doc/00-intro.md):

```
composer require sujanshresthanet/php-qrcode-generator

```

**Getting started:-**

We start off by creating a folder named **PHP QRCode Generator**. We open this folder in an editor. I am using Atom for it. Having done that, we will create a file named ‘index.html’ which will be storing the Html structure of our web page.

**Creating index.html file:-**

We give our web page the title **“PHP QRCode Generator”**. We include css in our project with the following code:-

``

We also include jQuery in our project with the following code:-

``

and we include custom jQuery code in our project with the following code:-

``

We include the QR code library with the following code:- ` include('libs/phpqrcode/qrlib.php');`

**index.php file**

```
