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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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

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

PHP Build Version
Package Version
Requires php Version ^8.0
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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package vladpak1/too-simple-qr contains the following files

Loading the files please wait ....