PHPackages                             devtical/nova-qrcode-field - 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. devtical/nova-qrcode-field

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

devtical/nova-qrcode-field
==========================

Nova QR code field

v2.0.6(10mo ago)4560.6k—0.9%142MITPHPPHP ^8.2CI failing

Since Oct 9Pushed 10mo ago2 watchersCompare

[ Source](https://github.com/devtical/nova-qrcode-field)[ Packagist](https://packagist.org/packages/devtical/nova-qrcode-field)[ GitHub Sponsors](https://github.com/Kristories)[ RSS](/packages/devtical-nova-qrcode-field/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (15)Used By (2)

Nova QR Code
============

[](#nova-qr-code)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7523ea65ff202eadc193762b00d28fe47e849f934dec67c8d93208cd28f690a5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646576746963616c2f6e6f76612d7172636f64652d6669656c642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/devtical/laravel-drunk-on-419)[![Total Downloads](https://camo.githubusercontent.com/91d5ac364cfcc8b116afeff03388cdb758105971859769eedc3de854d6a725dc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646576746963616c2f6e6f76612d7172636f64652d6669656c642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/devtical/laravel-drunk-on-419)

A Laravel Nova field to generate QR Code.

[![Logo & background](art/cover.png)](art/cover.png)

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

[](#installation)

You can install the Nova field in to a [Laravel](http://laravel.com) app that uses [Nova](http://nova.laravel.com) via composer :

```
composer require devtical/nova-qrcode-field

```

Usage
-----

[](#usage)

```
use Devtical\Qrcode\Qrcode;

```

#### Basic QR Code

[](#basic-qr-code)

To create a basic QR code with default settings:

```
Qrcode::make('QR Code', 'field')
```

#### Setting QR Code Sizes

[](#setting-qr-code-sizes)

Specify the sizes for index and detail views:

```
Qrcode::make('QR Code', 'field')
    ->indexSize(100)     // QR size for index view
    ->detailSize(500)    // QR size for detail view
```

[![Size](art/1-size.png)](art/1-size.png)

### Margin Customization

[](#margin-customization)

Control the padding around the QR code for optimal appearance:

```
Qrcode::make('QR Code', 'field')
    ->margin(10)
```

The margin value for the QR code adjusts based on its size: if the size is greater than `250`, it uses the margin value specified in `->margin()`, otherwise it defaults to a margin value of `1`.

### Adding a Logo

[](#adding-a-logo)

Add a logo to the center of the QR code:

```
Qrcode::make('QR Code', 'field')
    ->logo('http://source.to/logo.png')
```

[![Logo](art/2-logo.png)](art/2-logo.png)

### Setting a Background Image

[](#setting-a-background-image)

Set a background image for the QR code:

```
Qrcode::make('QR Code', 'field')
    ->background('http://source.to/background.png')
```

[![Background](art/3-background.png)](art/3-background.png)

### Combining Logo &amp; Background

[](#combining-logo--background)

Include both a logo and a background image for the QR code:

```
Qrcode::make('QR Code', 'field')
    ->logo('http://source.to/logo.png')
    ->background('http://source.to/background.png')
```

[![Logo & background](art/4-logo-background.png)](art/4-logo-background.png)

Dynamic Field Visibility
------------------------

[](#dynamic-field-visibility)

You can dynamically hide the QR Code field based on another field's value:

#### Hiding the Field Conditionally

[](#hiding-the-field-conditionally)

Use `hideWhen()` to hide the QR Code field when a condition is met:

```
Qrcode::make('QR Code', 'code')
    ->hideWhen(function ($resource) {
        return $resource->status === 0; // Hide if status is inactive
    });
```

Related
-------

[](#related)

- [Nova QR Code Manager](https://github.com/Devtical/nova-qrcode-manager)

Credits
-------

[](#credits)

- [vue-qr](https://github.com/Binaryify/vue-qr)
- [Awesome-qr.js](https://github.com/SumiMakito/Awesome-qr.js)

License
-------

[](#license)

The MIT License (MIT).

###  Health Score

54

—

FairBetter than 97% of packages

Maintenance54

Moderate activity, may be stable

Popularity44

Moderate usage in the ecosystem

Community21

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 89.6% 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

Every ~224 days

Recently: every ~148 days

Total

12

Last Release

311d ago

Major Versions

v0.0.4 → v1.0.02022-05-13

v1.0.0 → v2.0.02022-09-21

PHP version history (6 changes)v0.0.1PHP &gt;=7.1.0

v1.0.0PHP ^7.3|^8.0

v2.0.1PHP ^7.4|^8.0

v2.0.2PHP ^8.0

v2.0.5PHP ^8.1

v2.0.6PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/6aec55704f55f6828d892ca89d2bb8d830422a35f210a786ab6903a668caf3b5?d=identicon)[Kristories](/maintainers/Kristories)

---

Top Contributors

[![Kristories](https://avatars.githubusercontent.com/u/774338?v=4)](https://github.com/Kristories "Kristories (60 commits)")[![DanielLavoie90](https://avatars.githubusercontent.com/u/11962001?v=4)](https://github.com/DanielLavoie90 "DanielLavoie90 (2 commits)")[![mark-nicepants](https://avatars.githubusercontent.com/u/62654433?v=4)](https://github.com/mark-nicepants "mark-nicepants (2 commits)")[![metrixinfo](https://avatars.githubusercontent.com/u/43896192?v=4)](https://github.com/metrixinfo "metrixinfo (2 commits)")[![bsormagec](https://avatars.githubusercontent.com/u/965219?v=4)](https://github.com/bsormagec "bsormagec (1 commits)")

---

Tags

laravellaravel-novalaravel-packagenovaqrqr-codeqr-codesqr-generatorqrcodeqrcode-generatorqrcodeqrlaravelnova

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/devtical-nova-qrcode-field/health.svg)

```
[![Health](https://phpackages.com/badges/devtical-nova-qrcode-field/health.svg)](https://phpackages.com/packages/devtical-nova-qrcode-field)
```

###  Alternatives

[genealabs/laravel-changelog

A Laravel Nova tool.

55250.7k](/packages/genealabs-laravel-changelog)[genealabs/laravel-overridable-model

Provide a uniform method of allowing models to be overridden in Laravel.

92398.0k2](/packages/genealabs-laravel-overridable-model)[linkxtr/laravel-qrcode

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

295.1k](/packages/linkxtr-laravel-qrcode)[advoor/nova-editor-js

A Laravel Nova field bringing EditorJs magic to Nova.

92179.0k3](/packages/advoor-nova-editor-js)[amirezaeb/heroqr

A Powerful QR Code Management Library For PHP

9510.3k](/packages/amirezaeb-heroqr)[datomatic/nova-enum-field

A Laravel Nova PHP 8.1 enum field with filters

20134.2k](/packages/datomatic-nova-enum-field)

PHPackages © 2026

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