vendor/endroid/qrcode/src/QrCode.php
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
/*
* (c) Jeroen van den Enden <info@endroid.nl>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Endroid\QrCode;
use Endroid\QrCode\Exceptions\DataDoesntExistsException;
use Endroid\QrCode\Exceptions\FreeTypeLibraryMissingException;
use Endroid\QrCode\Exceptions\ImageFunctionFailedException;
use Endroid\QrCode\Exceptions\ImageTypeInvalidException;
use Endroid\QrCode\Exceptions\VersionTooLargeException;
use Endroid\QrCode\Exceptions\ImageSizeTooLargeException;
use Endroid\QrCode\Exceptions\ImageFunctionUnknownException;
use ReflectionFunction;
/**
* Generate QR Code.
*/
class QrCode
{
/** @const int Error Correction Level Low (7%) */
const LEVEL_LOW = 1;
/** @const int Error Correction Level Medium (15%) */
const LEVEL_MEDIUM = 0;
/** @const int Error Correction Level Quartile (25%) */
const LEVEL_QUARTILE = 3;
/** @const int Error Correction Level High (30%) */
const LEVEL_HIGH = 2;
/** @const string Image type png */
const IMAGE_TYPE_PNG = 'png';
/** @const string Image type gif */
const IMAGE_TYPE_GIF = 'gif';
/** @const string Image type jpeg */
const IMAGE_TYPE_JPEG = 'jpeg';
/** @const string Image type wbmp */
const IMAGE_TYPE_WBMP = 'wbmp';
/** @const int Horizontal label alignment to the center of image */
const LABEL_HALIGN_CENTER = 0;
/** @const int Horizontal label alignment to the left side of image */
const LABEL_HALIGN_LEFT = 1;
/** @const int Horizontal label alignment to the left border of QR Code */
const LABEL_HALIGN_LEFT_BORDER = 2;
/** @const int Horizontal label alignment to the left side of QR Code */
const LABEL_HALIGN_LEFT_CODE = 3;
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。