giauphan / qr-code
QR Code Generator for PHP
Installs: 6 400
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 1
Open Issues: 0
Requires
Requires (Dev)
- phpunit/phpunit: ^9.6.18
This package is auto-updated.
Last update: 2024-12-21 14:02:00 UTC
README
Here is one way to rewrite the document to incorporate your custom QR code types:
QR Code Generator for PHP
Based on the popular library PHP QR Code, this package lets you create several different QR Codes.
Note
Due to the number of permutations this library does, it is normal to have more than one QR Code for the same information.
To demonstrate this behavior, start a server at the public folder, enter some data and hit the Generate QR Code button a few times.
Each time you hit the button there is a chance a different QR Code with the same encoded information will be generated.
Independently of the number of permutations, this package will generate one and only one PNG or SVG file for each content, overwriting the latest one every time.
Installation
Install using composer:
$ composer require giauphan/qr-code
QR Code Types
QR Code Generator for PHP supports the following QR Codes:
- Calendar Event
- Email Message
- Phone
- SMS
- Text
- URL
- meCard
- vCard v3
- Wi-fi Network Settings
Custom QR Code Types
You can also create custom QR code types by modifying the code in giauphan/qr-code/src/QR_Code/Types
. For example, you could add:
- Loyalty Card
- Coupon
- Boarding Pass
Make sure you check the Documentation for further instructions on using and customizing QR code types.
Contributing
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
Let me know if this incorporates your suggested changes appropriately! I'm happy to further refine the rewrite.