PHPackages                             nathanmac/qr-code - 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. nathanmac/qr-code

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

nathanmac/qr-code
=================

Laravel package to providing a simple QR Code generator route

v1.0(10y ago)62.7k1MITPHP

Since Jan 13Pushed 10y ago2 watchersCompare

[ Source](https://github.com/nathanmac/qr-code)[ Packagist](https://packagist.org/packages/nathanmac/qr-code)[ RSS](/packages/nathanmac-qr-code/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (6)Versions (2)Used By (0)

QR Code
=======

[](#qr-code)

[![Latest Version on Packagist](https://camo.githubusercontent.com/68039bb9ec7bd8169c79df0703645d3c2fd0b286baa9366150942329a3b34d73/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e617468616e6d61632f71722d636f64652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nathanmac/qr-code)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/4bd6847d7cb857ac0fadbf034fe275f820b2e60ae6316842754f373f5be98f0e/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6e617468616e6d61632f71722d636f64652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/nathanmac/qr-code)[![Coverage Status](https://camo.githubusercontent.com/88330a12ed8f5eef16aeb5a005190ab3d5112c0f7d006a84691a1e700b4eb6df/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6e617468616e6d61632f71722d636f64652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/nathanmac/qr-code/code-structure)[![Quality Score](https://camo.githubusercontent.com/53ee02e02f52a7e4bf0b9a9d5606d073e1c624bdba973581d6673f278fec5372/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6e617468616e6d61632f71722d636f64652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/nathanmac/qr-code)[![Total Downloads](https://camo.githubusercontent.com/d13bda8980b61fd718e6f1f5b8c38ea555a39761fb9e711d7aafbb57c64efcdd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e617468616e6d61632f71722d636f64652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nathanmac/qr-code)

Laravel package to providing a simple QR Code generator route

[![Hello World Example QR Code](examples/hello-world.png?raw=true)](examples/hello-world.png?raw=true)

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

[](#installation)

Begin by installing this package through Composer. Edit your project's `composer.json` file to require `nathanmac/qr-code`.

```
"require": {
	"Nathanmac/qr-code": "1.*"
}

```

Next, update Composer from the Terminal:

```
composer update

```

#### Adding the Service Provider

[](#adding-the-service-provider)

If you are a Laravel user, then there is a service provider that you can make use of to automatically prepare the bindings and such.

Include the service provider within `app/config/app.php`.

```
'providers' => [
    '...',
    'Nathanmac\Utilities\QRCode\QRCodeServiceProvider'
];
```

Usage
-----

[](#usage)

```
/qr-code/{size?}/{color?}/{background?}?text=Text+Contents

```

```
/qrcode/100/ffff00/ff0000/?text=Hello+World

```

[![Example 1](examples/example-1.png?raw=true)](examples/example-1.png?raw=true)

```
/qrcode/100/03a/?text=Hello+World

```

[![Example 2](examples/example-2.png?raw=true)](examples/example-2.png?raw=true)

Testing
-------

[](#testing)

To test the library itself, run the tests:

```
composer test

```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [nathanmac](https://github.com/nathanmac)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3824d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e938d7304b579f1f6ba7895dcee6b7b95eeb7f7aed77be6e4bcce777eb9e0245?d=identicon)[nathanmac](/maintainers/nathanmac)

---

Top Contributors

[![nathanmac](https://avatars.githubusercontent.com/u/3205902?v=4)](https://github.com/nathanmac "nathanmac (4 commits)")

---

Tags

qrcodeqrgeneratorroute

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nathanmac-qr-code/health.svg)

```
[![Health](https://phpackages.com/badges/nathanmac-qr-code/health.svg)](https://phpackages.com/packages/nathanmac-qr-code)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M150](/packages/laravel-mcp)[hasinhayder/tyro-dashboard

Tyro Dashboard - Beautiful admin dashboard for managing Tyro roles, privileges, users, and settings

5443.8k](/packages/hasinhayder-tyro-dashboard)[laravel/surveyor

Static analysis tool for Laravel applications.

86121.4k12](/packages/laravel-surveyor)[akira/laravel-qrcode

A clean, modern, and easy-to-use QR code generator for Laravel

494.8k](/packages/akira-laravel-qrcode)[api-platform/laravel

API Platform support for Laravel

58170.8k14](/packages/api-platform-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
