Download the PHP package vladpak1/too-simple-qr without Composer
On this page you can find all versions of the php package vladpak1/too-simple-qr. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vladpak1/too-simple-qr
More information about vladpak1/too-simple-qr
Files in vladpak1/too-simple-qr
Package too-simple-qr
Short Description A wrapper for the chillerlan/php-qrcode library that allows you to generate a variety of QR codes with ease.
License MIT Apache-2.0
Homepage https://github.com/vladpak1/too-simple-qr
Informations about the package too-simple-qr
vladpak1\TooSimpleQR
TooSimpleQR is a wrapper over the wonderful chillerlan/php-qrcode, which simplifies QR code generation, paying more attention to customizations and ease of interface.
This small pet project is far from perfect, as I'm still a beginner developer learning the ropes. Please keep in mind my limited experience when using it, and proceed at your own risk.
If you want to generate QR codes in a serious project, it's better to use chillerlan/php-qrcode.
Examples of QR codes created with this library:
Requirements
- PHP 8.0+
- Composer
- GD or Imagick
Installation
There are plans to move to a stable version, so soon this will not be necessary.
Or if you already have minimum-stability set to dev, you can simply run:
Usage Example
As a result, we get:
We can also distort the QR code by adding, for example, a gradient:
Need to quickly generate a QR code?
Consider using presets — predefined settings for generating QR codes.
You can easily create your own presets by extending the vladpak1\TooSimpleQR\Preset\AbstractPreset
class.
Example of using a preset:
GD or Imagick?
This library will work with either GD or Imagick, but some settings are only supported by Imagick. Probably in the future, I will make everything more consistent and the difference in drivers will not be so noticeable. However, at the moment, Imagick is recommended.
The library will automatically select the driver to use, based on what is installed on your server, giving preference to Imagick.
But you can also forcibly specify the driver:
Testing
TooSimpleQR uses PHPUnit for testing. Currently, there are very few tests, mainly due to issues with the package architecture.
To run tests, use the following command:
License
TooSimpleQR is licensed under the MIT license.
All versions of too-simple-qr with dependencies
ext-mbstring Version *
ext-gd Version *
chillerlan/php-qrcode Version dev-main#c8c37a4e36300f1fc4a7fb44ee22186eac1e60a4 as 1.0.0
intervention/image Version ^2.7
libern/qr-code-reader Version ^1.0