{"id":14975130,"url":"https://github.com/Minhazulmin/laravel-11-QR-Code-Generate","last_synced_at":"2025-10-27T12:32:04.654Z","repository":{"id":228141112,"uuid":"710903090","full_name":"Minhazulmin/laravel-11-QR-Code-Generate","owner":"Minhazulmin","description":"Laravel-11-QR-Code-Generate is a versatile Laravel package that simplifies the generation of QR codes in Laravel 11 applications. With an easy-to-use interface and robust features, it empowers developers to seamlessly integrate QR code functionality, For Sponsor WhatsApp me +8801751337061.","archived":false,"fork":false,"pushed_at":"2024-12-28T04:06:40.000Z","size":102,"stargazers_count":27,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-11T19:11:29.351Z","etag":null,"topics":["laravel","laravel-framework","laravel-qr-code-generator","laravel-qr-generation","laravel10","laravel11","qr-code-generator","qrcode","qrcode-scanner"],"latest_commit_sha":null,"homepage":"","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/Minhazulmin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["minhazulmin"]}},"created_at":"2023-10-27T17:29:33.000Z","updated_at":"2024-12-28T11:27:45.000Z","dependencies_parsed_at":"2024-03-17T08:47:43.241Z","dependency_job_id":"ed0bf755-79e6-4889-b5b9-f4a8dfe80a17","html_url":"https://github.com/Minhazulmin/laravel-11-QR-Code-Generate","commit_stats":null,"previous_names":["minhazulmin/laravel-10-qr-code-generate","minhazulmin/laravel-11-qr-code-generate"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Minhazulmin%2Flaravel-11-QR-Code-Generate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Minhazulmin%2Flaravel-11-QR-Code-Generate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Minhazulmin%2Flaravel-11-QR-Code-Generate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Minhazulmin%2Flaravel-11-QR-Code-Generate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Minhazulmin","download_url":"https://codeload.github.com/Minhazulmin/laravel-11-QR-Code-Generate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238497546,"owners_count":19482272,"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-framework","laravel-qr-code-generator","laravel-qr-generation","laravel10","laravel11","qr-code-generator","qrcode","qrcode-scanner"],"created_at":"2024-09-24T13:51:33.460Z","updated_at":"2025-10-27T12:32:04.043Z","avatar_url":"https://github.com/Minhazulmin.png","language":"PHP","funding_links":["https://github.com/sponsors/minhazulmin"],"categories":[],"sub_categories":[],"readme":"\n# QR Code Generator in Laravel 11\n\n![Sponsor](https://i.postimg.cc/QdPWVf9Y/Screenshot-1.png) \u003c/br\u003e \n**For Sponsor WhatsApp me +8801751337061**\u003c/br\u003e\nWatch video on YouTube: https://www.youtube.com/minit61 \u003c/br\u003e\nWatch video on Facebook: https://www.facebook.com/minit61\u003c/br\u003e\n\nI will give you a very simple example of generating QR code with image, QR code with color, QR code with SMS, QR code with email, and QR code in Laravel 11\n\n## Output\n![App Screenshot](https://i.postimg.cc/9MQBzGCg/qr-code-generator.png)\n\n\n## Installation\n\n**[Step - 1]** **Create new Project:**\u003cbr/\u003e\n(Open PowerShell In Your Local Machine and put this command)\n ```bash\nLaravel new laravel10-qrcode-generator\n```\n**[Step - 2]** **Install package:** \n```bash\n composer require simplesoftwareio/simple-qrcode\n```\n**[Step - 3]** **Remove unnecessary code from inital Project:** \u003cbr/\u003e\n**[Step - 4]** **Make a controller:** \n```bash\n php artisan make:controller QRcodeGenerateController\n```\n**[Step - 5]** **Make a Route on the web.php:** \n```bash\n Route::get('/', [QRcodeGenerateController::class,'qrcode']);\n```\n**[Step - 6]** **Make Function with name in controller:** \n```bash\n public function qrcode()\n```\n**[Step - 7]** **Copy Code and paste on function:** \n\nUse it on the top of the controller\n```bash\nuse SimpleSoftwareIO\\QrCode\\Facades\\QrCode;\n```\n```bash\n    $qrCodes = [];\n    $qrCodes['simple'] = \n    QrCode::size(150)-\u003egenerate('https://minhazulmin.github.io/');\n    $qrCodes['changeColor'] = \n    QrCode::size(150)-\u003ecolor(255, 0, 0)-\u003egenerate('https://minhazulmin.github.io/');\n    $qrCodes['changeBgColor'] = \n    QrCode::size(150)-\u003ebackgroundColor(255, 0, 0)-\u003egenerate('https://minhazulmin.github.io/');\n    $qrCodes['styleDot'] = \n    QrCode::size(150)-\u003estyle('dot')-\u003egenerate('https://minhazulmin.github.io/');\n    $qrCodes['styleSquare'] = QrCode::size(150)-\u003estyle('square')-\u003egenerate('https://minhazulmin.github.io/');\n    $qrCodes['styleRound'] = QrCode::size(150)-\u003estyle('round')-\u003egenerate('https://minhazulmin.github.io/');\n\n    return view('qrcode',$qrCodes);\n\n```\n**[Step - 8]** **Make a blade file:qrcode.blade.php** \u003c/br\u003e\n**[Step - 9]** **Add Bootstrap cdn** \n```bash\n==\u003e css\n    \u003clink href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css\" rel=\"stylesheet\" integrity=\"sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC\" crossorigin=\"anonymous\"\u003e\n==\u003e js \n\u003cscript src=\"https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/js/bootstrap.bundle.min.js\" \u003e\u003c/script\u003e\n```\n**[Step - 10]** **Copy Code and paste on qrcode.blade.php file** \n```bash\n\u003cdiv class=\"container text-center\"\u003e\n            \u003cdiv class=\"row\"\u003e\n                \u003cdiv class=\"col-md-2\"\u003e\n                    \u003cp class=\"mb-0\"\u003eSimple\u003c/p\u003e\n                    \u003ca href=\"\" id=\"container\" \u003e{!! $simple !!}\u003c/a\u003e\u003cbr/\u003e\n                    \u003cbutton id=\"download\" class=\"mt-2 btn btn-info text-light\" onclick=\"downloadSVG()\"\u003eDownload SVG\u003c/button\u003e\n                \u003c/div\u003e\n                \u003cdiv class=\"col-md-2\"\u003e\n                    \u003cp class=\"mb-0\"\u003eColor Change\u003c/p\u003e\n                    {!! $changeColor !!}\n                \u003c/div\u003e\n                \u003cdiv class=\"col-md-2\"\u003e\n                    \u003cp class=\"mb-0\"\u003eBackground Color Change \u003c/p\u003e\n                    {!! $changeBgColor !!}\n                \u003c/div\u003e\n\n\n                \u003cdiv class=\"col-md-2\"\u003e\n                    \u003cp class=\"mb-0\"\u003eStyle Square\u003c/p\u003e\n                    {!! $styleSquare !!}\n                \u003c/div\u003e\n                \u003cdiv class=\"col-md-2\"\u003e\n                    \u003cp class=\"mb-0\"\u003eStyle Dot\u003c/p\u003e\n                    {!! $styleDot !!}\n                \u003c/div\u003e\n                \u003cdiv class=\"col-md-2\"\u003e\n                    \u003cp class=\"mb-0\"\u003eStyle Round\u003c/p\u003e\n                    {!! $styleRound !!}\n                \u003c/div\u003e\n            \u003c/div\u003e\n        \u003c/div\u003e\n```\n**[Step - 11]** **Copy Code and paste on the bottom of the qrcode.blade.php** \n```bash\n \u003cscript\u003e\n\n    function downloadSVG() {\n      const svg = document.getElementById('container').innerHTML;\n      const blob = new Blob([svg.toString()]);\n      const element = document.createElement(\"a\");\n      element.download = \"w3c.svg\";\n      element.href = window.URL.createObjectURL(blob);\n      element.click();\n      element.remove();\n    }\n    \u003c/script\u003e\n```\n**[Step - 12]** **run the command on the project terminal**\n```bash \n\tphp artisan serve\n```\nHit the url\n```bash\n\thttp://127.0.0.1:8000/\n```\n## Authors\n\n- [@minhazulmin](https://www.github.com/minhazulmin)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMinhazulmin%2Flaravel-11-QR-Code-Generate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMinhazulmin%2Flaravel-11-QR-Code-Generate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMinhazulmin%2Flaravel-11-QR-Code-Generate/lists"}