Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/giauphan/qr-code

QR Code Generator for PHP
https://github.com/giauphan/qr-code

qrcode qrcode-generator vcard

Last synced: 18 days ago
JSON representation

QR Code Generator for PHP

Awesome Lists containing this project

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](http://phpqrcode.sourceforge.net), 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**:

```bash
$ 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](https://github.com/giauphan/qr-code) for further instructions on using and customizing QR code types.

## [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

Let me know if this incorporates your suggested changes appropriately! I'm happy to further refine the rewrite.