saifulislam07/qr-generator-laravel 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

saifulislam07/qr-generator-laravel

Composer 安装命令:

composer require saifulislam07/qr-generator-laravel

包简介

A beautiful QR Code Generator package for Laravel with custom color support, premium dark UI, and SVG download.

README 文档

README

QR Code Generator

🔲 QR Code Generator for Laravel

A modern, stylish QR Code Generator package for Laravel — featuring custom color support, premium dark UI, instant preview, and SVG download.

Packagist Version Laravel PHP License

✨ Features

  • 🎨 Custom Colors — Pick any foreground and background color for your QR code
  • 📱 Fully Responsive — Beautiful dark-themed UI that works on all devices
  • ⬇️ SVG Download — Download your QR code as a high-quality SVG file
  • 🔄 Reset Button — Quickly clear the form and start fresh
  • Instant Preview — See your QR code immediately after generation
  • 🌙 Premium Dark UI — Glassmorphism design with smooth animations
  • 📦 Easy Install — Install via Composer in seconds

📸 Screenshots

Generator Form Generated QR Code
Form Result

📦 Installation (Composer Package)

Install the package via Composer:

composer require saifulislam07/qr-generator-laravel

The package will auto-register its service provider via Laravel's package discovery.

Access the Generator

After installation, visit:

http://your-app.test/qr-generator

Publish Views (Optional)

If you want to customize the UI, publish the views:

php artisan vendor:publish --tag=qr-generator-views

This will copy the views to resources/views/vendor/qr-generator/.

🛠️ Manual Setup (Clone & Run as Standalone App)

If you want to run this as a standalone Laravel application:

Prerequisites

  • PHP >= 8.2
  • Composer (PHP dependency manager)
  • A local server (e.g., Laragon, XAMPP, WAMP, or Laravel Valet)

Step-by-Step

1. Clone the repository

git clone https://github.com/saifulislam07/qr-generator-laravel.git

2. Navigate to the project folder

cd qr-generator-laravel

3. Install PHP dependencies

composer install

4. Create the environment file

cp .env.example .env

5. Generate the application key

php artisan key:generate

6. Run the development server

php artisan serve

7. Open in your browser

http://localhost:8000

🛠️ Tech Stack

Technology Purpose
Laravel 10/11/12 Backend framework
SimpleSoftwareIO/QrCode QR code generation
HTML/CSS/JS Frontend with custom dark theme

📁 Package Structure

qr-generator-laravel/
├── src/
│   ├── Http/Controllers/
│   │   └── QRController.php            # QR generation & download logic
│   ├── resources/views/
│   │   └── index.blade.php             # Premium dark-themed UI
│   ├── routes/
│   │   └── web.php                     # Package routes (/qr-generator)
│   └── QrGeneratorServiceProvider.php  # Service provider
├── public/img/                         # Screenshots
├── composer.json                       # Package definition
└── README.md

📝 Usage

  1. Install the package or clone the repo
  2. Open the QR generator page in your browser
  3. Enter any text or URL in the input field
  4. Choose a foreground color (QR code color)
  5. Choose a background color
  6. Click "✦ Generate QR Code"
  7. Click "Download SVG" to save the file
  8. Use the "Reset" button to start over

👤 Author

Md. Saiful Islam

📄 License

This project is open-sourced under the MIT License.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固