{"id":19931371,"url":"https://github.com/devtical/nova-qrcode-field","last_synced_at":"2025-04-04T13:13:05.312Z","repository":{"id":40359882,"uuid":"152273882","full_name":"devtical/nova-qrcode-field","owner":"devtical","description":"A Laravel Nova field to generate QR Code","archived":false,"fork":false,"pushed_at":"2025-01-30T11:20:53.000Z","size":470,"stargazers_count":43,"open_issues_count":0,"forks_count":15,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T12:09:34.015Z","etag":null,"topics":["laravel","laravel-nova","laravel-package","nova","qr","qr-code","qr-codes","qr-generator","qrcode","qrcode-generator"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/devtical/nova-qrcode-field","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devtical.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-09T15:17:15.000Z","updated_at":"2025-01-30T11:20:56.000Z","dependencies_parsed_at":"2023-11-25T12:22:13.705Z","dependency_job_id":"7b206b71-5841-4398-90df-6ce728e0df10","html_url":"https://github.com/devtical/nova-qrcode-field","commit_stats":{"total_commits":37,"total_committers":7,"mean_commits":5.285714285714286,"dds":0.2702702702702703,"last_synced_commit":"90cdb22783d1c850866274dde6de3edb441a386c"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devtical%2Fnova-qrcode-field","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devtical%2Fnova-qrcode-field/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devtical%2Fnova-qrcode-field/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devtical%2Fnova-qrcode-field/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devtical","download_url":"https://codeload.github.com/devtical/nova-qrcode-field/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247182401,"owners_count":20897381,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["laravel","laravel-nova","laravel-package","nova","qr","qr-code","qr-codes","qr-generator","qrcode","qrcode-generator"],"created_at":"2024-11-12T23:06:52.920Z","updated_at":"2025-04-04T13:13:05.288Z","avatar_url":"https://github.com/devtical.png","language":"PHP","readme":"# Nova QR Code\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/devtical/nova-qrcode-field.svg?style=flat-square)](https://packagist.org/packages/devtical/laravel-drunk-on-419)\n[![Total Downloads](https://img.shields.io/packagist/dt/devtical/nova-qrcode-field.svg?style=flat-square)](https://packagist.org/packages/devtical/laravel-drunk-on-419)\n\nA Laravel Nova field to generate QR Code.\n\n![Logo \u0026 background](art/cover.png)\n\n## Installation\n\nYou can install the Nova field in to a [Laravel](http://laravel.com) app that uses [Nova](http://nova.laravel.com) via composer :\n\n```cli\ncomposer require devtical/nova-qrcode-field\n```\n\n## Usage\n\n```\nuse Devtical\\Qrcode\\Qrcode;\n```\n\n#### Basic QR Code\n\nTo create a basic QR code with default settings:\n\n```php\nQrcode::make('QR Code', 'field')\n```\n\n#### Setting QR Code Sizes\n\nSpecify the sizes for index and detail views:\n\n```php\nQrcode::make('QR Code', 'field')\n    -\u003eindexSize(100)     // QR size for index view\n    -\u003edetailSize(500)    // QR size for detail view\n```\n\n![Size](art/1-size.png)\n\n### Margin Customization\n\nControl the padding around the QR code for optimal appearance:\n\n```php\nQrcode::make('QR Code', 'field')\n    -\u003emargin(10)\n```\n\nThe 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 `-\u003emargin()`, otherwise it defaults to a margin value of `1`.\n\n### Adding a Logo\n\nAdd a logo to the center of the QR code:\n\n```php\nQrcode::make('QR Code', 'field')\n    -\u003elogo('http://source.to/logo.png')\n```\n\n![Logo](art/2-logo.png)\n\n### Setting a Background Image\n\nSet a background image for the QR code:\n\n```php\nQrcode::make('QR Code', 'field')\n    -\u003ebackground('http://source.to/background.png')\n```\n\n![Background](art/3-background.png)\n\n### Combining Logo \u0026 Background\n\nInclude both a logo and a background image for the QR code:\n\n```php\nQrcode::make('QR Code', 'field')\n    -\u003elogo('http://source.to/logo.png')\n    -\u003ebackground('http://source.to/background.png')\n```\n\n![Logo \u0026 background](art/4-logo-background.png)\n\n## Dynamic Field Visibility\n\nYou can dynamically hide the QR Code field based on another field's value:\n\n#### Hiding the Field Conditionally\n\nUse `hideWhen()` to hide the QR Code field when a condition is met:\n\n```php\nQrcode::make('QR Code', 'code')\n    -\u003ehideWhen(function ($resource) {\n        return $resource-\u003estatus === 0; // Hide if status is inactive\n    });\n```\n\n## Related\n\n- [Nova QR Code Manager](https://github.com/Devtical/nova-qrcode-manager)\n\n## Credits\n\n- [vue-qr](https://github.com/Binaryify/vue-qr)\n- [Awesome-qr.js](https://github.com/SumiMakito/Awesome-qr.js)\n\n## License\n\nThe MIT License (MIT).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevtical%2Fnova-qrcode-field","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevtical%2Fnova-qrcode-field","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevtical%2Fnova-qrcode-field/lists"}