wecreative / app-qr-code
App Qr Code API
1.0.5
2024-07-12 04:17 UTC
Requires
- php: >=7.0.0
README
安装
通过 composer 安装此包。
要使用最新稳定版本,请使用
php composer.phar require wecreative/app-qr-code
基本用法
您可以为它定义自己的目录:define( 'APP_QR_CODE_IMAGES_DIRECTORY', 'YOUR_DIRECTORY' );
<?php use Wecreative\AppQrCodeAPI\Client; use Wecreative\AppQrCodeAPI\AppQrCode; $client = new Client( 'your_api_key' ); $appQrCode = new AppQrCode( $client ); $data = [ "frame_name" => "no-frame", "qr_code_text" => "https://www.qr-code-generator.com/", "image_format" => "SVG", "qr_code_logo" => "scan-me-square" ]; $res = $appQrCode->create( 'qr_code_name', $data );
More information about creating qrcodes https://www.qr-code-generator.com/qr-code-api/