|
@@ -17377,6 +17377,286 @@ namespace Illuminate\Support\Facades {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+namespace SimpleSoftwareIO\QrCode\Facades {
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ */ class QrCode {
|
|
|
+ /**
|
|
|
+ * Generates the QrCode.
|
|
|
+ *
|
|
|
+ * @param string $text
|
|
|
+ * @param string|null $filename
|
|
|
+ * @return void|\Illuminate\Support\HtmlString|string
|
|
|
+ * @throws WriterException
|
|
|
+ * @throws InvalidArgumentException
|
|
|
+ * @static
|
|
|
+ */ public static function generate($text, $filename = null)
|
|
|
+ {
|
|
|
+ /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
|
|
|
+ return $instance->generate($text, $filename);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * Merges an image over the QrCode.
|
|
|
+ *
|
|
|
+ * @param string $filepath
|
|
|
+ * @param float $percentage
|
|
|
+ * @param \SimpleSoftwareIO\QrCode\SimpleSoftwareIO\QrCode\boolean|bool $absolute
|
|
|
+ * @return \Generator
|
|
|
+ * @static
|
|
|
+ */ public static function merge($filepath, $percentage = 0.2, $absolute = false)
|
|
|
+ {
|
|
|
+ /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
|
|
|
+ return $instance->merge($filepath, $percentage, $absolute);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * Merges an image string with the center of the QrCode.
|
|
|
+ *
|
|
|
+ * @param string $content
|
|
|
+ * @param float $percentage
|
|
|
+ * @return \Generator
|
|
|
+ * @static
|
|
|
+ */ public static function mergeString($content, $percentage = 0.2)
|
|
|
+ {
|
|
|
+ /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
|
|
|
+ return $instance->mergeString($content, $percentage);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * Sets the size of the QrCode.
|
|
|
+ *
|
|
|
+ * @param int $pixels
|
|
|
+ * @return \Generator
|
|
|
+ * @static
|
|
|
+ */ public static function size($pixels)
|
|
|
+ {
|
|
|
+ /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
|
|
|
+ return $instance->size($pixels);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * Sets the format of the QrCode.
|
|
|
+ *
|
|
|
+ * @param string $format
|
|
|
+ * @return \Generator
|
|
|
+ * @throws InvalidArgumentException
|
|
|
+ * @static
|
|
|
+ */ public static function format($format)
|
|
|
+ {
|
|
|
+ /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
|
|
|
+ return $instance->format($format);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * Sets the foreground color of the QrCode.
|
|
|
+ *
|
|
|
+ * @param int $red
|
|
|
+ * @param int $green
|
|
|
+ * @param int $blue
|
|
|
+ * @param null|int $alpha
|
|
|
+ * @return \Generator
|
|
|
+ * @static
|
|
|
+ */ public static function color($red, $green, $blue, $alpha = null)
|
|
|
+ {
|
|
|
+ /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
|
|
|
+ return $instance->color($red, $green, $blue, $alpha);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * Sets the background color of the QrCode.
|
|
|
+ *
|
|
|
+ * @param int $red
|
|
|
+ * @param int $green
|
|
|
+ * @param int $blue
|
|
|
+ * @param null|int $alpha
|
|
|
+ * @return \Generator
|
|
|
+ * @static
|
|
|
+ */ public static function backgroundColor($red, $green, $blue, $alpha = null)
|
|
|
+ {
|
|
|
+ /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
|
|
|
+ return $instance->backgroundColor($red, $green, $blue, $alpha);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * Sets the eye color for the provided eye index.
|
|
|
+ *
|
|
|
+ * @param int $eyeNumber
|
|
|
+ * @param int $innerRed
|
|
|
+ * @param int $innerGreen
|
|
|
+ * @param int $innerBlue
|
|
|
+ * @param int $outterRed
|
|
|
+ * @param int $outterGreen
|
|
|
+ * @param int $outterBlue
|
|
|
+ * @return \Generator
|
|
|
+ * @throws InvalidArgumentException
|
|
|
+ * @static
|
|
|
+ */ public static function eyeColor($eyeNumber, $innerRed, $innerGreen, $innerBlue, $outterRed = 0, $outterGreen = 0, $outterBlue = 0)
|
|
|
+ {
|
|
|
+ /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
|
|
|
+ return $instance->eyeColor($eyeNumber, $innerRed, $innerGreen, $innerBlue, $outterRed, $outterGreen, $outterBlue);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * @static
|
|
|
+ */ public static function gradient($startRed, $startGreen, $startBlue, $endRed, $endGreen, $endBlue, $type)
|
|
|
+ {
|
|
|
+ /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
|
|
|
+ return $instance->gradient($startRed, $startGreen, $startBlue, $endRed, $endGreen, $endBlue, $type);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * Sets the eye style.
|
|
|
+ *
|
|
|
+ * @param string $style
|
|
|
+ * @return \Generator
|
|
|
+ * @throws InvalidArgumentException
|
|
|
+ * @static
|
|
|
+ */ public static function eye($style)
|
|
|
+ {
|
|
|
+ /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
|
|
|
+ return $instance->eye($style);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * Sets the style of the blocks for the QrCode.
|
|
|
+ *
|
|
|
+ * @param string $style
|
|
|
+ * @param float $size
|
|
|
+ * @return \Generator
|
|
|
+ * @throws InvalidArgumentException
|
|
|
+ * @static
|
|
|
+ */ public static function style($style, $size = 0.5)
|
|
|
+ {
|
|
|
+ /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
|
|
|
+ return $instance->style($style, $size);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * Sets the encoding for the QrCode.
|
|
|
+ *
|
|
|
+ * Possible values are
|
|
|
+ * ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5, ISO-8859-6,
|
|
|
+ * ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-10, ISO-8859-11,
|
|
|
+ * ISO-8859-12, ISO-8859-13, ISO-8859-14, ISO-8859-15, ISO-8859-16,
|
|
|
+ * SHIFT-JIS, WINDOWS-1250, WINDOWS-1251, WINDOWS-1252, WINDOWS-1256,
|
|
|
+ * UTF-16BE, UTF-8, ASCII, GBK, EUC-KR.
|
|
|
+ *
|
|
|
+ * @param string $encoding
|
|
|
+ * @return \Generator
|
|
|
+ * @static
|
|
|
+ */ public static function encoding($encoding)
|
|
|
+ {
|
|
|
+ /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
|
|
|
+ return $instance->encoding($encoding);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * Sets the error correction for the QrCode.
|
|
|
+ *
|
|
|
+ * L: 7% loss.
|
|
|
+ * M: 15% loss.
|
|
|
+ * Q: 25% loss.
|
|
|
+ * H: 30% loss.
|
|
|
+ *
|
|
|
+ * @param string $errorCorrection
|
|
|
+ * @return \Generator
|
|
|
+ * @static
|
|
|
+ */ public static function errorCorrection($errorCorrection)
|
|
|
+ {
|
|
|
+ /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
|
|
|
+ return $instance->errorCorrection($errorCorrection);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * Sets the margin of the QrCode.
|
|
|
+ *
|
|
|
+ * @param int $margin
|
|
|
+ * @return \Generator
|
|
|
+ * @static
|
|
|
+ */ public static function margin($margin)
|
|
|
+ {
|
|
|
+ /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
|
|
|
+ return $instance->margin($margin);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * Fetches the Writer.
|
|
|
+ *
|
|
|
+ * @param \BaconQrCode\Renderer\ImageRenderer $renderer
|
|
|
+ * @return \BaconQrCode\Writer
|
|
|
+ * @static
|
|
|
+ */ public static function getWriter($renderer)
|
|
|
+ {
|
|
|
+ /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
|
|
|
+ return $instance->getWriter($renderer);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * Fetches the Image Renderer.
|
|
|
+ *
|
|
|
+ * @return \BaconQrCode\Renderer\ImageRenderer
|
|
|
+ * @static
|
|
|
+ */ public static function getRenderer()
|
|
|
+ {
|
|
|
+ /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
|
|
|
+ return $instance->getRenderer();
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * Returns the Renderer Style.
|
|
|
+ *
|
|
|
+ * @return \BaconQrCode\Renderer\RendererStyle\RendererStyle
|
|
|
+ * @static
|
|
|
+ */ public static function getRendererStyle()
|
|
|
+ {
|
|
|
+ /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
|
|
|
+ return $instance->getRendererStyle();
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * Fetches the formatter.
|
|
|
+ *
|
|
|
+ * @return \BaconQrCode\Renderer\Image\ImageBackEndInterface
|
|
|
+ * @static
|
|
|
+ */ public static function getFormatter()
|
|
|
+ {
|
|
|
+ /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
|
|
|
+ return $instance->getFormatter();
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * Fetches the module.
|
|
|
+ *
|
|
|
+ * @return \BaconQrCode\Renderer\Module\ModuleInterface
|
|
|
+ * @static
|
|
|
+ */ public static function getModule()
|
|
|
+ {
|
|
|
+ /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
|
|
|
+ return $instance->getModule();
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * Fetches the eye style.
|
|
|
+ *
|
|
|
+ * @return \BaconQrCode\Renderer\Eye\EyeInterface
|
|
|
+ * @static
|
|
|
+ */ public static function getEye()
|
|
|
+ {
|
|
|
+ /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
|
|
|
+ return $instance->getEye();
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * Fetches the color fill.
|
|
|
+ *
|
|
|
+ * @return \BaconQrCode\Renderer\RendererStyle\Fill
|
|
|
+ * @static
|
|
|
+ */ public static function getFill()
|
|
|
+ {
|
|
|
+ /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
|
|
|
+ return $instance->getFill();
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * Creates a RGB or Alpha channel color.
|
|
|
+ *
|
|
|
+ * @param int $red
|
|
|
+ * @param int $green
|
|
|
+ * @param int $blue
|
|
|
+ * @param null|int $alpha
|
|
|
+ * @return \BaconQrCode\Renderer\Color\ColorInterface
|
|
|
+ * @static
|
|
|
+ */ public static function createColor($red, $green, $blue, $alpha = null)
|
|
|
+ {
|
|
|
+ /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
|
|
|
+ return $instance->createColor($red, $green, $blue, $alpha);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
namespace Illuminate\Http {
|
|
|
/**
|
|
|
*
|
|
@@ -21138,6 +21418,7 @@ namespace {
|
|
|
class URL extends \Illuminate\Support\Facades\URL {}
|
|
|
class Validator extends \Illuminate\Support\Facades\Validator {}
|
|
|
class View extends \Illuminate\Support\Facades\View {}
|
|
|
+ class QrCode extends \SimpleSoftwareIO\QrCode\Facades\QrCode {}
|
|
|
}
|
|
|
|
|
|
|