Download the PHP package tekintian/phpqrcode without Composer

On this page you can find all versions of the php package tekintian/phpqrcode. 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 phpqrcode

php qrcode 二维码生成工具 base64图片二维码

php生成带LOGO的二维码图片, 支持自定义LOGO,自定义输出目录和自定义返回类型,静态方法调用,方便快捷,高效,简洁的PHP二维码生成工具

支持二维码直接返回符合 RFC 2045规范 的 base64, b64 二维码, 首创方法!

支持PHP版本: 5.x -- 8.2, 推荐php8中使用

使用方法

# 切换至项目根目录后执行以下命令安装本工具

composer require tekintian/phpqrcode

生成二维码 封装工具类使用方法

$str = "http://dev.tekin.cn"; // 直接生成并输出二维码图片,默认大小 // \tekintian\TekinQR::getQRImg($str);

// 返回base64图片流 $qr = \tekintian\TekinQR::getQRImg($str, 10, null, 1); echo $qr;

// 生成带loog的二维码 // $qr = \tekintian\TekinQR::getQRImg($str, 10, "http://tekin.cn/logo.png", 0);

// 生成二维码并写入到 /var/www/static/qr/123.png // $qr =\tekintian\TekinQR::getQRImg($str, 10, "http://tekin.cn/logo.png", 2, "/var/www/static/qr/123.png");

// getQRImg(String $str, int $size = 10, String $logo = null, int $ret_type = 0, String $out_file = null)

// 生成二维码并返回二进制二维码图片数据 $img_data = \tekintian\TekinQR::getQRImg($qr_str, 10, null, 3); // laravel 写入图片数据 // Storage::disk('local')->put('myqrfile.png', $img_data); // 将二进制图片数据写入到文件 file_put_contents('myqrfile.png', $img_data);


## phpqrcode原生工具类使用方法
- 官方模式, 可支持png, jpg格式图片

~~~php
# autoload.php自动载入
require_once __DIR__ . '/vendor/autoload.php';

//生成PNG图片
\tekintian\QRcode::png($str, false, 3, 10, 1, 4, 1);
//生成JPG图片
// \tekintian\QRcode::jpg($str, false, 3, 10, 1, 4, 1);

更多用法,请参考官方文档 http://phpqrcode.sourceforge.net/


All versions of phpqrcode with dependencies

PHP Build Version
Package Version
Requires php Version ^5.3|^7.0|^8.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 tekintian/phpqrcode contains the following files

Loading the files please wait ....