Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/giauphan/laravel-qr-code
QR Code Generator for PHP wrapper for Laravel
https://github.com/giauphan/laravel-qr-code
laravel laravel11 laravelqrcode qrcode qrcode-generator qrcode-scanner qrcodelaravel vcard
Last synced: about 1 month ago
JSON representation
QR Code Generator for PHP wrapper for Laravel
- Host: GitHub
- URL: https://github.com/giauphan/laravel-qr-code
- Owner: giauphan
- License: mit
- Created: 2023-10-03T01:24:45.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-21T13:54:48.000Z (2 months ago)
- Last Synced: 2024-12-21T15:14:10.536Z (about 1 month ago)
- Topics: laravel, laravel11, laravelqrcode, qrcode, qrcode-generator, qrcode-scanner, qrcodelaravel, vcard
- Language: PHP
- Homepage: https://github.com/giauphan/laravel-qr-code
- Size: 59.6 KB
- Stars: 17
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Laravel QR Code Generator
Create QR Codes with Laravel
This is a wrapper for [QR Code Generator for PHP], a standalone library to generate QR Codes in PNG and SVG.
## Installation
Install using **composer**:
```bash
composer require giauphan/laravel-qr-code:v1.0.2
```
##### Laravel 5.4 (5.5+ can skip this step)
You need to add provider and alias to your `config/app.php` file:
```php
[
LaravelQRCode\Providers\QRCodeServiceProvider::class,
],
'aliases' => [
'QRCode' => LaravelQRCode\Facades\QRCode::class,
]
```
## QR Code TypesLaravel QR Code Generator supports the following QR Codes:
- Calendar Event
- Email Message
- Phone
- SMS
- Text
- URL
- meCard
- vCard v3
- Wi-fi Network Settings
## Usage
```php
setOutfile($path )
->png();
return '';
});
```
The above route should print a PNG image for a text QR Code.
## [Contributing](CONTRIBUTING.md)
To contribute to this project, please do the following:
- Fork it
- Create a new branch for your contribution
- Test it! Make sure it works and it won't break the master code
- Send pull request