mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-25 12:27:56 +00:00
750 lines
59 KiB
HTML
750 lines
59 KiB
HTML
<!DOCTYPE html>
|
||
<html class="writer-html5" lang="en" data-content_root="../">
|
||
<head>
|
||
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||
<title>Configuration settings — PHP-QRCode main
|
||
Manual</title>
|
||
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
|
||
<link rel="stylesheet" type="text/css" href="../_static/css/theme.css?v=19f00094" />
|
||
|
||
|
||
<!--[if lt IE 9]>
|
||
<script src="../_static/js/html5shiv.min.js"></script>
|
||
<![endif]-->
|
||
|
||
<script src="../_static/jquery.js?v=5d32c60e"></script>
|
||
<script src="../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
|
||
<script src="../_static/documentation_options.js?v=a8da1a53"></script>
|
||
<script src="../_static/doctools.js?v=888ff710"></script>
|
||
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
|
||
<script src="../_static/js/theme.js"></script>
|
||
<link rel="index" title="Index" href="../genindex.html" />
|
||
<link rel="search" title="Search" href="../search.html" />
|
||
<link rel="next" title="Module values" href="../Customizing/Module-Values.html" />
|
||
<link rel="prev" title="Advanced usage" href="Advanced-usage.html" />
|
||
</head>
|
||
|
||
<body class="wy-body-for-nav">
|
||
<div class="wy-grid-for-nav">
|
||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||
<div class="wy-side-scroll">
|
||
<div class="wy-side-nav-search" >
|
||
|
||
|
||
|
||
<a href="../index.html" class="icon icon-home">
|
||
PHP-QRCode
|
||
</a>
|
||
<div role="search">
|
||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
||
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
|
||
<input type="hidden" name="check_keywords" value="yes" />
|
||
<input type="hidden" name="area" value="default" />
|
||
</form>
|
||
</div>
|
||
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
|
||
<p class="caption" role="heading"><span class="caption-text">Usage</span></p>
|
||
<ul class="current">
|
||
<li class="toctree-l1"><a class="reference internal" href="Overview.html">Overview</a><ul>
|
||
<li class="toctree-l2"><a class="reference internal" href="Overview.html#features">Features</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="Overview.html#requirements">Requirements</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="Overview.html#framework-integration">Framework Integration</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="Overview.html#shameless-advertising">Shameless advertising</a></li>
|
||
</ul>
|
||
</li>
|
||
<li class="toctree-l1"><a class="reference internal" href="Installation.html">Installation</a><ul>
|
||
<li class="toctree-l2"><a class="reference internal" href="Installation.html#installation-with-composer">Installation with Composer</a><ul>
|
||
<li class="toctree-l3"><a class="reference internal" href="Installation.html#composer-json">composer.json</a><ul>
|
||
<li class="toctree-l4"><a class="reference internal" href="Installation.html#version-switch">Version switch</a></li>
|
||
</ul>
|
||
</li>
|
||
<li class="toctree-l3"><a class="reference internal" href="Installation.html#terminal">Terminal</a></li>
|
||
</ul>
|
||
</li>
|
||
<li class="toctree-l2"><a class="reference internal" href="Installation.html#manual-installation">Manual installation</a><ul>
|
||
<li class="toctree-l3"><a class="reference internal" href="Installation.html#can-i-use-this-library-without-using-composer">Can i use this library without using composer?</a></li>
|
||
</ul>
|
||
</li>
|
||
<li class="toctree-l2"><a class="reference internal" href="Installation.html#supported-php-versions-extension-requirements">Supported PHP versions & extension requirements</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="Installation.html#imagemagick">ImageMagick</a></li>
|
||
</ul>
|
||
</li>
|
||
<li class="toctree-l1"><a class="reference internal" href="Quickstart.html">Quickstart</a><ul>
|
||
<li class="toctree-l2"><a class="reference internal" href="Quickstart.html#import-the-library">Import the library</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="Quickstart.html#create-your-first-qr-code">Create your first QR Code</a><ul>
|
||
<li class="toctree-l3"><a class="reference internal" href="Quickstart.html#configuration">Configuration</a></li>
|
||
</ul>
|
||
</li>
|
||
<li class="toctree-l2"><a class="reference internal" href="Quickstart.html#reading-qr-codes">Reading QR Codes</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="Quickstart.html#notes">Notes</a></li>
|
||
</ul>
|
||
</li>
|
||
<li class="toctree-l1"><a class="reference internal" href="Advanced-usage.html">Advanced usage</a><ul>
|
||
<li class="toctree-l2"><a class="reference internal" href="Advanced-usage.html#configuration-via-qroptions">Configuration via <code class="docutils literal notranslate"><span class="pre">QROptions</span></code></a><ul>
|
||
<li class="toctree-l3"><a class="reference internal" href="Advanced-usage.html#supply-an-iterable-of-options">Supply an <code class="docutils literal notranslate"><span class="pre">iterable</span></code> of options</a></li>
|
||
<li class="toctree-l3"><a class="reference internal" href="Advanced-usage.html#load-and-save-options-from-to-json">Load and save options from/to JSON</a></li>
|
||
<li class="toctree-l3"><a class="reference internal" href="Advanced-usage.html#extending-the-qroptions-class">Extending the <code class="docutils literal notranslate"><span class="pre">QROptions</span></code> class</a></li>
|
||
</ul>
|
||
</li>
|
||
<li class="toctree-l2"><a class="reference internal" href="Advanced-usage.html#qrcode-methods"><code class="docutils literal notranslate"><span class="pre">QRCode</span></code> methods</a><ul>
|
||
<li class="toctree-l3"><a class="reference internal" href="Advanced-usage.html#render-a-qrmatrix-instance">Render a <code class="docutils literal notranslate"><span class="pre">QRMatrix</span></code> instance</a></li>
|
||
<li class="toctree-l3"><a class="reference internal" href="Advanced-usage.html#mixed-mode">Mixed mode</a></li>
|
||
<li class="toctree-l3"><a class="reference internal" href="Advanced-usage.html#qr-code-reader">QR Code reader</a></li>
|
||
</ul>
|
||
</li>
|
||
<li class="toctree-l2"><a class="reference internal" href="Advanced-usage.html#common-output-options">Common output options</a><ul>
|
||
<li class="toctree-l3"><a class="reference internal" href="Advanced-usage.html#save-to-file">Save to file</a></li>
|
||
<li class="toctree-l3"><a class="reference internal" href="Advanced-usage.html#base64-uri-output">Base64 URI output</a></li>
|
||
<li class="toctree-l3"><a class="reference internal" href="Advanced-usage.html#return-the-image-resource">Return the image resource</a></li>
|
||
<li class="toctree-l3"><a class="reference internal" href="Advanced-usage.html#add-a-logo-space">Add a logo space</a></li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
</li>
|
||
<li class="toctree-l1 current"><a class="current reference internal" href="#">Configuration settings</a><ul>
|
||
<li class="toctree-l2"><a class="reference internal" href="#version">version</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#versionmin">versionMin</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#versionmax">versionMax</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#ecclevel">eccLevel</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#maskpattern">maskPattern</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#addquietzone">addQuietzone</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#quietzonesize">quietzoneSize</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#outputinterface">outputInterface</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#returnresource">returnResource</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#cachefile">cachefile</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#outputbase64">outputBase64</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#eol">eol</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#bgcolor">bgColor</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#invertmatrix">invertMatrix</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#drawlightmodules">drawLightModules</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#drawcircularmodules">drawCircularModules</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#circleradius">circleRadius</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#keepassquare">keepAsSquare</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#connectpaths">connectPaths</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#excludefromconnect">excludeFromConnect</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#modulevalues">moduleValues</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#addlogospace">addLogoSpace</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#logospacewidth">logoSpaceWidth</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#logospaceheight">logoSpaceHeight</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#logospacestartx">logoSpaceStartX</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#logospacestarty">logoSpaceStartY</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#scale">scale</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#imagetransparent">imageTransparent</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#transparencycolor">transparencyColor</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#quality">quality</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#gdimageuseupscale">gdImageUseUpscale</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#imagickformat">imagickFormat</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#cssclass">cssClass</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#svgaddxmlheader">svgAddXmlHeader</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#svgdefs">svgDefs</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#svgpreserveaspectratio">svgPreserveAspectRatio</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#svgusefillattributes">svgUseFillAttributes</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#textlinestart">textLineStart</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#jsonflags">jsonFlags</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#jsonasbooleans">jsonAsBooleans</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#fpdfmeasureunit">fpdfMeasureUnit</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#readeruseimagickifavailable">readerUseImagickIfAvailable</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#readergrayscale">readerGrayscale</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#readerinvertcolors">readerInvertColors</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#readerincreasecontrast">readerIncreaseContrast</a></li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
<p class="caption" role="heading"><span class="caption-text">Customizing output</span></p>
|
||
<ul>
|
||
<li class="toctree-l1"><a class="reference internal" href="../Customizing/Module-Values.html">Module values</a><ul>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Customizing/Module-Values.html#basics">Basics</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Customizing/Module-Values.html#assigning-values">Assigning values</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Customizing/Module-Values.html#handling-in-your-own-qroutputinterface">Handling in your own <code class="docutils literal notranslate"><span class="pre">QROutputInterface</span></code></a><ul>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Customizing/Module-Values.html#setting-module-values">Setting module values</a></li>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Customizing/Module-Values.html#using-the-module-values">Using the module values</a></li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
</li>
|
||
<li class="toctree-l1"><a class="reference internal" href="../Customizing/QROutputAbstract.html"><code class="docutils literal notranslate"><span class="pre">QROutputAbstract</span></code></a><ul>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Customizing/QROutputAbstract.html#properties">Properties</a><ul>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Customizing/QROutputAbstract.html#options-and-matrix"><code class="docutils literal notranslate"><span class="pre">$options</span></code> and <code class="docutils literal notranslate"><span class="pre">$matrix</span></code></a></li>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Customizing/QROutputAbstract.html#modulecount-scale-and-length"><code class="docutils literal notranslate"><span class="pre">$moduleCount</span></code>, <code class="docutils literal notranslate"><span class="pre">$scale</span></code> and <code class="docutils literal notranslate"><span class="pre">$length</span></code></a></li>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Customizing/QROutputAbstract.html#modulevalues"><code class="docutils literal notranslate"><span class="pre">$moduleValues</span></code></a></li>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Customizing/QROutputAbstract.html#copies-of-qroptions-values">Copies of <code class="docutils literal notranslate"><span class="pre">QROptions</span></code> values</a></li>
|
||
</ul>
|
||
</li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Customizing/QROutputAbstract.html#methods">Methods</a><ul>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Customizing/QROutputAbstract.html#setmodulevalues"><code class="docutils literal notranslate"><span class="pre">setModuleValues()</span></code></a></li>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Customizing/QROutputAbstract.html#modulevalueisvalid"><code class="docutils literal notranslate"><span class="pre">moduleValueIsValid()</span></code></a></li>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Customizing/QROutputAbstract.html#preparemodulevalue"><code class="docutils literal notranslate"><span class="pre">prepareModuleValue()</span></code></a></li>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Customizing/QROutputAbstract.html#getdefaultmodulevalue"><code class="docutils literal notranslate"><span class="pre">getDefaultModuleValue()</span></code></a></li>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Customizing/QROutputAbstract.html#getmodulevalue-and-getmodulevalueat"><code class="docutils literal notranslate"><span class="pre">getModuleValue()</span></code> and <code class="docutils literal notranslate"><span class="pre">getModuleValueAt()</span></code></a></li>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Customizing/QROutputAbstract.html#setmatrixdimensions"><code class="docutils literal notranslate"><span class="pre">setMatrixDimensions()</span></code></a></li>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Customizing/QROutputAbstract.html#getoutputdimensions"><code class="docutils literal notranslate"><span class="pre">getOutputDimensions()</span></code></a></li>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Customizing/QROutputAbstract.html#collectmodules"><code class="docutils literal notranslate"><span class="pre">collectModules()</span></code></a></li>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Customizing/QROutputAbstract.html#savetofile-and-tobase64datauri"><code class="docutils literal notranslate"><span class="pre">saveToFile()</span></code> and <code class="docutils literal notranslate"><span class="pre">toBase64DataURI()</span></code></a></li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
</li>
|
||
<li class="toctree-l1"><a class="reference internal" href="../Customizing/Custom-output-interface.html">Custom <code class="docutils literal notranslate"><span class="pre">QROutputInterface</span></code></a><ul>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Customizing/Custom-output-interface.html#class-skeleton">Class skeleton</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Customizing/Custom-output-interface.html#module-values">Module values</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Customizing/Custom-output-interface.html#transform-the-output">Transform the output</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Customizing/Custom-output-interface.html#run-the-custom-output">Run the custom output</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Customizing/Custom-output-interface.html#summary">Summary</a></li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
<p class="caption" role="heading"><span class="caption-text">Built-In Output Modules</span></p>
|
||
<ul>
|
||
<li class="toctree-l1"><a class="reference internal" href="../Built-In-Output/QREps.html">QREps</a><ul>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QREps.html#example">Example</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QREps.html#additional-methods">Additional methods</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QREps.html#options-that-affect-this-module">Options that affect this module</a><ul>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Built-In-Output/QREps.html#options-that-have-no-effect">Options that have no effect</a></li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
</li>
|
||
<li class="toctree-l1"><a class="reference internal" href="../Built-In-Output/QRFpdf.html">QRFpdf</a><ul>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRFpdf.html#example">Example</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRFpdf.html#additional-methods">Additional methods</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRFpdf.html#options-that-affect-this-module">Options that affect this module</a><ul>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Built-In-Output/QRFpdf.html#options-that-have-no-effect">Options that have no effect</a></li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
</li>
|
||
<li class="toctree-l1"><a class="reference internal" href="../Built-In-Output/QRGdImage.html">QRGdImage</a><ul>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRGdImage.html#example">Example</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRGdImage.html#additional-methods">Additional methods</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRGdImage.html#options-that-affect-this-module">Options that affect this module</a><ul>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Built-In-Output/QRGdImage.html#options-that-have-no-effect">Options that have no effect</a></li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
</li>
|
||
<li class="toctree-l1"><a class="reference internal" href="../Built-In-Output/QRImagick.html">QRImagick</a><ul>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRImagick.html#example">Example</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRImagick.html#additional-methods">Additional methods</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRImagick.html#options-that-affect-this-module">Options that affect this module</a><ul>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Built-In-Output/QRImagick.html#options-that-have-no-effect">Options that have no effect</a></li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
</li>
|
||
<li class="toctree-l1"><a class="reference internal" href="../Built-In-Output/QRMarkupHTML.html">QRMarkupHTML</a><ul>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRMarkupHTML.html#example">Example</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRMarkupHTML.html#additional-methods">Additional methods</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRMarkupHTML.html#options-that-affect-this-module">Options that affect this module</a><ul>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Built-In-Output/QRMarkupHTML.html#options-that-have-no-effect">Options that have no effect</a></li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
</li>
|
||
<li class="toctree-l1"><a class="reference internal" href="../Built-In-Output/QRMarkupSVG.html">QRMarkupSVG</a><ul>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRMarkupSVG.html#example">Example</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRMarkupSVG.html#additional-methods">Additional methods</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRMarkupSVG.html#options-that-affect-this-module">Options that affect this module</a><ul>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Built-In-Output/QRMarkupSVG.html#options-that-have-no-effect">Options that have no effect</a></li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
</li>
|
||
<li class="toctree-l1"><a class="reference internal" href="../Built-In-Output/QRString.html">QRString</a><ul>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRString.html#plain-text">Plain text</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRString.html#json">JSON</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRString.html#additional-methods">Additional methods</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRString.html#options-that-affect-this-module">Options that affect this module</a><ul>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Built-In-Output/QRString.html#options-that-have-no-effect">Options that have no effect</a></li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
<p class="caption" role="heading"><span class="caption-text">Appendix</span></p>
|
||
<ul>
|
||
<li class="toctree-l1"><a class="reference internal" href="../Appendix/Terminology.html">Terminology</a><ul>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Appendix/Terminology.html#qr-code">QR Code</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Appendix/Terminology.html#matrix">Matrix</a><ul>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Appendix/Terminology.html#module">Module</a></li>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Appendix/Terminology.html#version">Version</a></li>
|
||
</ul>
|
||
</li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Appendix/Terminology.html#function-patterns">Function Patterns</a><ul>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Appendix/Terminology.html#finder-pattern">Finder Pattern</a></li>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Appendix/Terminology.html#alignment-pattern">Alignment Pattern</a></li>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Appendix/Terminology.html#timing-pattern">Timing Pattern</a></li>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Appendix/Terminology.html#separators">Separators</a></li>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Appendix/Terminology.html#quiet-zone">Quiet Zone</a></li>
|
||
</ul>
|
||
</li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Appendix/Terminology.html#encoding-region">Encoding Region</a><ul>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Appendix/Terminology.html#data">Data</a></li>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Appendix/Terminology.html#version-information">Version Information</a></li>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Appendix/Terminology.html#format-information">Format Information</a></li>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Appendix/Terminology.html#darkmodule">Darkmodule</a></li>
|
||
</ul>
|
||
</li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Appendix/Terminology.html#mode">Mode</a><ul>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Appendix/Terminology.html#segment">Segment</a></li>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Appendix/Terminology.html#extended-channel-interpretation-eci">Extended Channel Interpretation (ECI)</a></li>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Appendix/Terminology.html#mixed-mode">Mixed Mode</a></li>
|
||
</ul>
|
||
</li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Appendix/Terminology.html#ecc-error-correction-coding">ECC (Error Correction Coding)</a><ul>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Appendix/Terminology.html#ecc-level">ECC Level</a></li>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Appendix/Terminology.html#maximum-data-capacity">Maximum data capacity</a></li>
|
||
</ul>
|
||
</li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Appendix/Terminology.html#data-masking">Data masking</a><ul>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Appendix/Terminology.html#evaluation">Evaluation</a></li>
|
||
<li class="toctree-l3"><a class="reference internal" href="../Appendix/Terminology.html#mask-pattern">Mask pattern</a></li>
|
||
</ul>
|
||
</li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Appendix/Terminology.html#reflectance">Reflectance</a></li>
|
||
</ul>
|
||
</li>
|
||
<li class="toctree-l1"><a class="reference internal" href="../Appendix/URI-Content.html">Popular content and URI schemes</a><ul>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Appendix/URI-Content.html#url-https">URL <code class="docutils literal notranslate"><span class="pre">https</span></code></a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Appendix/URI-Content.html#e-mail-mailto">E-Mail <code class="docutils literal notranslate"><span class="pre">mailto</span></code></a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Appendix/URI-Content.html#phone-numbers-tel">Phone numbers <code class="docutils literal notranslate"><span class="pre">tel</span></code></a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Appendix/URI-Content.html#geo-coordinates-geo">Geo Coordinates <code class="docutils literal notranslate"><span class="pre">geo</span></code></a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Appendix/URI-Content.html#mobile-authenticators-otpauth">Mobile Authenticators <code class="docutils literal notranslate"><span class="pre">otpauth</span></code></a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Appendix/URI-Content.html#wireless-network-configuration">Wireless Network configuration</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Appendix/URI-Content.html#contact-information-vcard">Contact information: vCard</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Appendix/URI-Content.html#calendar-events-vcalendar-and-icalendar">Calendar Events: vCalendar and iCalendar</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Appendix/URI-Content.html#see-also">See also</a></li>
|
||
</ul>
|
||
</li>
|
||
<li class="toctree-l1"><a class="reference internal" href="../Appendix/Performance-considerations.html">Performance considerations</a><ul>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Appendix/Performance-considerations.html#version">Version</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Appendix/Performance-considerations.html#ecc-level">Ecc level</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Appendix/Performance-considerations.html#data-mode">Data mode</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Appendix/Performance-considerations.html#mask-pattern">Mask pattern</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Appendix/Performance-considerations.html#output">Output</a></li>
|
||
</ul>
|
||
</li>
|
||
<li class="toctree-l1"><a class="reference internal" href="../Appendix/Contribute.html">How to contribute</a><ul>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Appendix/Contribute.html#questions-and-issues">Questions and issues</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Appendix/Contribute.html#bug-reports">Bug reports</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Appendix/Contribute.html#pull-requests-and-bug-fixes">Pull requests and bug fixes</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="../Appendix/Contribute.html#documentation">Documentation</a></li>
|
||
</ul>
|
||
</li>
|
||
<li class="toctree-l1"><a class="reference internal" href="../Appendix/License.html">License</a></li>
|
||
</ul>
|
||
|
||
</div>
|
||
</div>
|
||
</nav>
|
||
|
||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
|
||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||
<a href="../index.html">PHP-QRCode</a>
|
||
</nav>
|
||
|
||
<div class="wy-nav-content">
|
||
<div class="rst-content">
|
||
<div role="navigation" aria-label="Page navigation">
|
||
<ul class="wy-breadcrumbs">
|
||
<li><a href="../index.html" class="icon icon-home" aria-label="Home"></a></li>
|
||
<li class="breadcrumb-item active">Configuration settings</li>
|
||
<li class="wy-breadcrumbs-aside">
|
||
<a href="https://github.com/chillerlan/php-qrcode/blob/main/docs/Usage/Configuration-settings.md" class="fa fa-github"> Edit on GitHub</a>
|
||
</li>
|
||
</ul>
|
||
<hr/>
|
||
</div>
|
||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||
<div itemprop="articleBody">
|
||
|
||
<section id="configuration-settings">
|
||
<h1>Configuration settings<a class="headerlink" href="#configuration-settings" title="Link to this heading"></a></h1>
|
||
<!-- This file is auto generated from the source of QROptionsTrait.php -->
|
||
<section id="version">
|
||
<h2>version<a class="headerlink" href="#version" title="Link to this heading"></a></h2>
|
||
<p>QR Code version number</p>
|
||
<p><code class="docutils literal notranslate"><span class="pre">1</span> <span class="pre">...</span> <span class="pre">40</span></code> or <code class="docutils literal notranslate"><span class="pre">Version::AUTO</span></code> (default)</p>
|
||
<p><strong>See also:</strong></p>
|
||
<ul class="simple">
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">\chillerlan\QRCode\Common\Version</span></code></p></li>
|
||
</ul>
|
||
</section>
|
||
<section id="versionmin">
|
||
<h2>versionMin<a class="headerlink" href="#versionmin" title="Link to this heading"></a></h2>
|
||
<p>Minimum QR version</p>
|
||
<p>if <code class="docutils literal notranslate"><span class="pre">QROptions::$version</span></code> is set to <code class="docutils literal notranslate"><span class="pre">Version::AUTO</span></code> (default: 1)</p>
|
||
</section>
|
||
<section id="versionmax">
|
||
<h2>versionMax<a class="headerlink" href="#versionmax" title="Link to this heading"></a></h2>
|
||
<p>Maximum QR version</p>
|
||
<p>if <code class="docutils literal notranslate"><span class="pre">QROptions::$version</span></code> is set to <code class="docutils literal notranslate"><span class="pre">Version::AUTO</span></code> (default: 40)</p>
|
||
</section>
|
||
<section id="ecclevel">
|
||
<h2>eccLevel<a class="headerlink" href="#ecclevel" title="Link to this heading"></a></h2>
|
||
<p>Error correct level</p>
|
||
<p>the constant <code class="docutils literal notranslate"><span class="pre">EccLevel::X</span></code> where <code class="docutils literal notranslate"><span class="pre">X</span></code> is:</p>
|
||
<ul class="simple">
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">L</span></code> => 7% (default)</p></li>
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">M</span></code> => 15%</p></li>
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">Q</span></code> => 25%</p></li>
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">H</span></code> => 30%</p></li>
|
||
</ul>
|
||
<p>alternatively you can just pass the letters L/M/Q/H (case-insensitive) to the magic setter</p>
|
||
<p><strong>See also:</strong></p>
|
||
<ul class="simple">
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">\chillerlan\QRCode\Common\EccLevel</span></code></p></li>
|
||
<li><p><a class="reference external" href="https://github.com/chillerlan/php-qrcode/discussions/160">github.com/chillerlan/php-qrcode/discussions/160</a></p></li>
|
||
</ul>
|
||
</section>
|
||
<section id="maskpattern">
|
||
<h2>maskPattern<a class="headerlink" href="#maskpattern" title="Link to this heading"></a></h2>
|
||
<p>Mask Pattern to use (no value in using, mostly for unit testing purposes)</p>
|
||
<p><code class="docutils literal notranslate"><span class="pre">0</span> <span class="pre">...</span> <span class="pre">7</span></code> or <code class="docutils literal notranslate"><span class="pre">MaskPattern::PATTERN_AUTO</span></code> (default)</p>
|
||
<p><strong>See also:</strong></p>
|
||
<ul class="simple">
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">\chillerlan\QRCode\Common\MaskPattern</span></code></p></li>
|
||
</ul>
|
||
</section>
|
||
<section id="addquietzone">
|
||
<h2>addQuietzone<a class="headerlink" href="#addquietzone" title="Link to this heading"></a></h2>
|
||
<p>Add a “quiet zone” (margin) according to the QR code spec</p>
|
||
<p><strong>See also:</strong></p>
|
||
<ul class="simple">
|
||
<li><p><a class="reference external" href="https://www.qrcode.com/en/howto/code.html">www.qrcode.com/en/howto/code.html</a></p></li>
|
||
</ul>
|
||
</section>
|
||
<section id="quietzonesize">
|
||
<h2>quietzoneSize<a class="headerlink" href="#quietzonesize" title="Link to this heading"></a></h2>
|
||
<p>Size of the quiet zone</p>
|
||
<p>internally clamped to <code class="docutils literal notranslate"><span class="pre">0</span> <span class="pre">...</span> <span class="pre">$moduleCount</span> <span class="pre">/</span> <span class="pre">2</span></code> (default: 4)</p>
|
||
</section>
|
||
<section id="outputinterface">
|
||
<h2>outputInterface<a class="headerlink" href="#outputinterface" title="Link to this heading"></a></h2>
|
||
<p>The FQCN of the <code class="docutils literal notranslate"><span class="pre">QROutputInterface</span></code> to use</p>
|
||
</section>
|
||
<section id="returnresource">
|
||
<h2>returnResource<a class="headerlink" href="#returnresource" title="Link to this heading"></a></h2>
|
||
<p>Return the image resource instead of a render if applicable.</p>
|
||
<ul class="simple">
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">QRGdImage</span></code>: <code class="docutils literal notranslate"><span class="pre">resource</span></code> (PHP < 8), <code class="docutils literal notranslate"><span class="pre">GdImage</span></code></p></li>
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">QRImagick</span></code>: <code class="docutils literal notranslate"><span class="pre">Imagick</span></code></p></li>
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">QRFpdf</span></code>: <code class="docutils literal notranslate"><span class="pre">FPDF</span></code></p></li>
|
||
</ul>
|
||
<p>This option overrides/ignores other output settings, such as <code class="docutils literal notranslate"><span class="pre">QROptions::$cachefile</span></code>
|
||
and <code class="docutils literal notranslate"><span class="pre">QROptions::$outputBase64</span></code>. (default: <code class="docutils literal notranslate"><span class="pre">false</span></code>)</p>
|
||
<p><strong>See also:</strong></p>
|
||
<ul class="simple">
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">\chillerlan\QRCode\Output\QROutputInterface::dump()</span></code></p></li>
|
||
</ul>
|
||
</section>
|
||
<section id="cachefile">
|
||
<h2>cachefile<a class="headerlink" href="#cachefile" title="Link to this heading"></a></h2>
|
||
<p>Optional cache file path <code class="docutils literal notranslate"><span class="pre">/path/to/cache.file</span></code></p>
|
||
<p>Please note that the <code class="docutils literal notranslate"><span class="pre">$file</span></code> parameter in <code class="docutils literal notranslate"><span class="pre">QRCode::render()</span></code> and <code class="docutils literal notranslate"><span class="pre">QRCode::renderMatrix()</span></code>
|
||
takes precedence over the <code class="docutils literal notranslate"><span class="pre">QROptions::$cachefile</span></code> value. (default: <code class="docutils literal notranslate"><span class="pre">null</span></code>)</p>
|
||
<p><strong>See also:</strong></p>
|
||
<ul class="simple">
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">\chillerlan\QRCode\QRCode::render()</span></code></p></li>
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">\chillerlan\QRCode\QRCode::renderMatrix()</span></code></p></li>
|
||
</ul>
|
||
</section>
|
||
<section id="outputbase64">
|
||
<h2>outputBase64<a class="headerlink" href="#outputbase64" title="Link to this heading"></a></h2>
|
||
<p>Toggle base64 data URI or raw data output (if applicable)</p>
|
||
<p>(default: <code class="docutils literal notranslate"><span class="pre">true</span></code>)</p>
|
||
<p><strong>See also:</strong></p>
|
||
<ul class="simple">
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">\chillerlan\QRCode\Output\QROutputAbstract::toBase64DataURI()</span></code></p></li>
|
||
</ul>
|
||
</section>
|
||
<section id="eol">
|
||
<h2>eol<a class="headerlink" href="#eol" title="Link to this heading"></a></h2>
|
||
<p>Newline string</p>
|
||
<p>(default: <code class="docutils literal notranslate"><span class="pre">PHP_EOL</span></code>)</p>
|
||
</section>
|
||
<section id="bgcolor">
|
||
<h2>bgColor<a class="headerlink" href="#bgcolor" title="Link to this heading"></a></h2>
|
||
<p>Sets the image background color (if applicable)</p>
|
||
<ul class="simple">
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">QRImagick</span></code>: defaults to <code class="docutils literal notranslate"><span class="pre">"white"</span></code></p></li>
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">QRGdImage</span></code>: defaults to <code class="docutils literal notranslate"><span class="pre">[255,</span> <span class="pre">255,</span> <span class="pre">255]</span></code></p></li>
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">QRFpdf</span></code>: defaults to blank internally (white page)</p></li>
|
||
</ul>
|
||
</section>
|
||
<section id="invertmatrix">
|
||
<h2>invertMatrix<a class="headerlink" href="#invertmatrix" title="Link to this heading"></a></h2>
|
||
<p>Whether to invert the matrix (reflectance reversal)</p>
|
||
<p>(default: <code class="docutils literal notranslate"><span class="pre">false</span></code>)</p>
|
||
<p><strong>See also:</strong></p>
|
||
<ul class="simple">
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">\chillerlan\QRCode\Data\QRMatrix::invert()</span></code></p></li>
|
||
</ul>
|
||
</section>
|
||
<section id="drawlightmodules">
|
||
<h2>drawLightModules<a class="headerlink" href="#drawlightmodules" title="Link to this heading"></a></h2>
|
||
<p>Whether to draw the light (false) modules</p>
|
||
<p>(default: <code class="docutils literal notranslate"><span class="pre">true</span></code>)</p>
|
||
</section>
|
||
<section id="drawcircularmodules">
|
||
<h2>drawCircularModules<a class="headerlink" href="#drawcircularmodules" title="Link to this heading"></a></h2>
|
||
<p>Specify whether to draw the modules as filled circles</p>
|
||
<p>a note for <code class="docutils literal notranslate"><span class="pre">GdImage</span></code> output:</p>
|
||
<p>if <code class="docutils literal notranslate"><span class="pre">QROptions::$scale</span></code> is less than 20, the image will be upscaled internally, then the modules will be drawn
|
||
using <code class="docutils literal notranslate"><span class="pre">imagefilledellipse()</span></code> and then scaled back to the expected size</p>
|
||
<p>No effect in: <code class="docutils literal notranslate"><span class="pre">QREps</span></code>, <code class="docutils literal notranslate"><span class="pre">QRFpdf</span></code>, <code class="docutils literal notranslate"><span class="pre">QRMarkupHTML</span></code></p>
|
||
<p><strong>See also:</strong></p>
|
||
<ul class="simple">
|
||
<li><p><a class="reference external" href="https://www.php.net/manual/function.imagefilledellipse">php.net: <code class="docutils literal notranslate"><span class="pre">\imagefilledellipse()</span></code></a></p></li>
|
||
<li><p><a class="reference external" href="https://github.com/chillerlan/php-qrcode/issues/23">github.com/chillerlan/php-qrcode/issues/23</a></p></li>
|
||
<li><p><a class="reference external" href="https://github.com/chillerlan/php-qrcode/discussions/122">github.com/chillerlan/php-qrcode/discussions/122</a></p></li>
|
||
</ul>
|
||
</section>
|
||
<section id="circleradius">
|
||
<h2>circleRadius<a class="headerlink" href="#circleradius" title="Link to this heading"></a></h2>
|
||
<p>Specifies the radius of the modules when <code class="docutils literal notranslate"><span class="pre">QROptions::$drawCircularModules</span></code> is set to <code class="docutils literal notranslate"><span class="pre">true</span></code></p>
|
||
<p>(default: 0.45)</p>
|
||
</section>
|
||
<section id="keepassquare">
|
||
<h2>keepAsSquare<a class="headerlink" href="#keepassquare" title="Link to this heading"></a></h2>
|
||
<p>Specifies which module types to exclude when <code class="docutils literal notranslate"><span class="pre">QROptions::$drawCircularModules</span></code> is set to <code class="docutils literal notranslate"><span class="pre">true</span></code></p>
|
||
<p>(default: <code class="docutils literal notranslate"><span class="pre">[]</span></code>)</p>
|
||
</section>
|
||
<section id="connectpaths">
|
||
<h2>connectPaths<a class="headerlink" href="#connectpaths" title="Link to this heading"></a></h2>
|
||
<p>Whether to connect the paths for the several module types to avoid weird glitches when using gradients etc.</p>
|
||
<p>This option is exclusive to output classes that use the module collector <code class="docutils literal notranslate"><span class="pre">QROutputAbstract::collectModules()</span></code>,
|
||
which converts the <code class="docutils literal notranslate"><span class="pre">$M_TYPE</span></code> of all modules to <code class="docutils literal notranslate"><span class="pre">QRMatrix::M_DATA</span></code> and <code class="docutils literal notranslate"><span class="pre">QRMatrix::M_DATA_DARK</span></code> respectively.</p>
|
||
<p>Module types that should not be added to the connected path can be excluded via <code class="docutils literal notranslate"><span class="pre">QROptions::$excludeFromConnect</span></code>.</p>
|
||
<p>Currentty used in <code class="docutils literal notranslate"><span class="pre">QREps</span></code> and <code class="docutils literal notranslate"><span class="pre">QRMarkupSVG</span></code>.</p>
|
||
<p><strong>See also:</strong></p>
|
||
<ul class="simple">
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">\chillerlan\QRCode\Output\QROutputAbstract::collectModules()</span></code></p></li>
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">\chillerlan\QRCode\QROptionsTrait::$excludeFromConnect</span></code></p></li>
|
||
<li><p><a class="reference external" href="https://github.com/chillerlan/php-qrcode/issues/57">github.com/chillerlan/php-qrcode/issues/57</a></p></li>
|
||
</ul>
|
||
</section>
|
||
<section id="excludefromconnect">
|
||
<h2>excludeFromConnect<a class="headerlink" href="#excludefromconnect" title="Link to this heading"></a></h2>
|
||
<p>Specify which paths/patterns to exclude from connecting if <code class="docutils literal notranslate"><span class="pre">QROptions::$connectPaths</span></code> is set to <code class="docutils literal notranslate"><span class="pre">true</span></code></p>
|
||
<p><strong>See also:</strong></p>
|
||
<ul class="simple">
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">\chillerlan\QRCode\QROptionsTrait::$connectPaths</span></code></p></li>
|
||
</ul>
|
||
</section>
|
||
<section id="modulevalues">
|
||
<h2>moduleValues<a class="headerlink" href="#modulevalues" title="Link to this heading"></a></h2>
|
||
<p>Module values map</p>
|
||
<ul class="simple">
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">QRImagick</span></code>, <code class="docutils literal notranslate"><span class="pre">QRMarkupHTML</span></code>, <code class="docutils literal notranslate"><span class="pre">QRMarkupSVG</span></code>: #ABCDEF, cssname, rgb(), rgba()…</p></li>
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">QREps</span></code>, <code class="docutils literal notranslate"><span class="pre">QRFpdf</span></code>, <code class="docutils literal notranslate"><span class="pre">QRGdImage</span></code>: <code class="docutils literal notranslate"><span class="pre">[R,</span> <span class="pre">G,</span> <span class="pre">B]</span></code> // 0-255</p></li>
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">QREps</span></code>: <code class="docutils literal notranslate"><span class="pre">[C,</span> <span class="pre">M,</span> <span class="pre">Y,</span> <span class="pre">K]</span></code> // 0-255</p></li>
|
||
</ul>
|
||
<p><strong>See also:</strong></p>
|
||
<ul class="simple">
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">\chillerlan\QRCode\Output\QROutputAbstract::setModuleValues()</span></code></p></li>
|
||
</ul>
|
||
</section>
|
||
<section id="addlogospace">
|
||
<h2>addLogoSpace<a class="headerlink" href="#addlogospace" title="Link to this heading"></a></h2>
|
||
<p>Toggles logo space creation</p>
|
||
<p><strong>See also:</strong></p>
|
||
<ul class="simple">
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">\chillerlan\QRCode\QRCode::addMatrixModifications()</span></code></p></li>
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">\chillerlan\QRCode\Data\QRMatrix::setLogoSpace()</span></code></p></li>
|
||
</ul>
|
||
</section>
|
||
<section id="logospacewidth">
|
||
<h2>logoSpaceWidth<a class="headerlink" href="#logospacewidth" title="Link to this heading"></a></h2>
|
||
<p>Width of the logo space</p>
|
||
<p>if only <code class="docutils literal notranslate"><span class="pre">QROptions::$logoSpaceWidth</span></code> is given, the logo space is assumed a square of that size</p>
|
||
</section>
|
||
<section id="logospaceheight">
|
||
<h2>logoSpaceHeight<a class="headerlink" href="#logospaceheight" title="Link to this heading"></a></h2>
|
||
<p>Height of the logo space</p>
|
||
<p>if only <code class="docutils literal notranslate"><span class="pre">QROptions::$logoSpaceHeight</span></code> is given, the logo space is assumed a square of that size</p>
|
||
</section>
|
||
<section id="logospacestartx">
|
||
<h2>logoSpaceStartX<a class="headerlink" href="#logospacestartx" title="Link to this heading"></a></h2>
|
||
<p>Optional horizontal start position of the logo space (top left corner)</p>
|
||
</section>
|
||
<section id="logospacestarty">
|
||
<h2>logoSpaceStartY<a class="headerlink" href="#logospacestarty" title="Link to this heading"></a></h2>
|
||
<p>Optional vertical start position of the logo space (top left corner)</p>
|
||
</section>
|
||
<section id="scale">
|
||
<h2>scale<a class="headerlink" href="#scale" title="Link to this heading"></a></h2>
|
||
<p>Pixel size of a QR code module</p>
|
||
</section>
|
||
<section id="imagetransparent">
|
||
<h2>imageTransparent<a class="headerlink" href="#imagetransparent" title="Link to this heading"></a></h2>
|
||
<p>Toggle transparency</p>
|
||
<ul class="simple">
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">QRGdImage</span></code> and <code class="docutils literal notranslate"><span class="pre">QRImagick</span></code>: the given <code class="docutils literal notranslate"><span class="pre">QROptions::$transparencyColor</span></code> is set as transparent</p></li>
|
||
</ul>
|
||
<p><strong>See also:</strong></p>
|
||
<ul class="simple">
|
||
<li><p><a class="reference external" href="https://github.com/chillerlan/php-qrcode/discussions/121">github.com/chillerlan/php-qrcode/discussions/121</a></p></li>
|
||
</ul>
|
||
</section>
|
||
<section id="transparencycolor">
|
||
<h2>transparencyColor<a class="headerlink" href="#transparencycolor" title="Link to this heading"></a></h2>
|
||
<p>Sets a transparency color for when <code class="docutils literal notranslate"><span class="pre">QROptions::$imageTransparent</span></code> is set to <code class="docutils literal notranslate"><span class="pre">true</span></code>.</p>
|
||
<p>Defaults to <code class="docutils literal notranslate"><span class="pre">QROptions::$bgColor</span></code>.</p>
|
||
<ul class="simple">
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">QRGdImage</span></code>: <code class="docutils literal notranslate"><span class="pre">[R,</span> <span class="pre">G,</span> <span class="pre">B]</span></code>, this color is set as transparent in <code class="docutils literal notranslate"><span class="pre">imagecolortransparent()</span></code></p></li>
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">QRImagick</span></code>: <code class="docutils literal notranslate"><span class="pre">"color_str"</span></code>, this color is set in <code class="docutils literal notranslate"><span class="pre">Imagick::transparentPaintImage()</span></code></p></li>
|
||
</ul>
|
||
<p><strong>See also:</strong></p>
|
||
<ul class="simple">
|
||
<li><p><a class="reference external" href="https://www.php.net/manual/function.imagecolortransparent">php.net: <code class="docutils literal notranslate"><span class="pre">\imagecolortransparent()</span></code></a></p></li>
|
||
<li><p><a class="reference external" href="https://www.php.net/manual/imagick.transparentpaintimage">php.net: <code class="docutils literal notranslate"><span class="pre">\Imagick::transparentPaintImage()</span></code></a></p></li>
|
||
</ul>
|
||
</section>
|
||
<section id="quality">
|
||
<h2>quality<a class="headerlink" href="#quality" title="Link to this heading"></a></h2>
|
||
<p>Compression quality</p>
|
||
<p>The given value depends on the used output type:</p>
|
||
<ul class="simple">
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">QRGdImageBMP</span></code>: <code class="docutils literal notranslate"><span class="pre">[0...1]</span></code></p></li>
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">QRGdImageJPEG</span></code>: <code class="docutils literal notranslate"><span class="pre">[0...100]</span></code></p></li>
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">QRGdImageWEBP</span></code>: <code class="docutils literal notranslate"><span class="pre">[0...9]</span></code></p></li>
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">QRGdImagePNG</span></code>: <code class="docutils literal notranslate"><span class="pre">[0...100]</span></code></p></li>
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">QRImagick</span></code>: <code class="docutils literal notranslate"><span class="pre">[0...100]</span></code></p></li>
|
||
</ul>
|
||
<p><strong>See also:</strong></p>
|
||
<ul class="simple">
|
||
<li><p><a class="reference external" href="https://www.php.net/manual/function.imagebmp">php.net: <code class="docutils literal notranslate"><span class="pre">\imagebmp()</span></code></a></p></li>
|
||
<li><p><a class="reference external" href="https://www.php.net/manual/function.imagejpeg">php.net: <code class="docutils literal notranslate"><span class="pre">\imagejpeg()</span></code></a></p></li>
|
||
<li><p><a class="reference external" href="https://www.php.net/manual/function.imagepng">php.net: <code class="docutils literal notranslate"><span class="pre">\imagepng()</span></code></a></p></li>
|
||
<li><p><a class="reference external" href="https://www.php.net/manual/function.imagewebp">php.net: <code class="docutils literal notranslate"><span class="pre">\imagewebp()</span></code></a></p></li>
|
||
<li><p><a class="reference external" href="https://www.php.net/manual/imagick.setimagecompressionquality">php.net: <code class="docutils literal notranslate"><span class="pre">\Imagick::setImageCompressionQuality()</span></code></a></p></li>
|
||
</ul>
|
||
</section>
|
||
<section id="gdimageuseupscale">
|
||
<h2>gdImageUseUpscale<a class="headerlink" href="#gdimageuseupscale" title="Link to this heading"></a></h2>
|
||
<p>Toggles the usage of internal upscaling when <code class="docutils literal notranslate"><span class="pre">QROptions::$drawCircularModules</span></code> is set to <code class="docutils literal notranslate"><span class="pre">true</span></code> and
|
||
<code class="docutils literal notranslate"><span class="pre">QROptions::$scale</span></code> is less than 20</p>
|
||
<p><strong>See also:</strong></p>
|
||
<ul class="simple">
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">\chillerlan\QRCode\Output\QRGdImage::createImage()</span></code></p></li>
|
||
<li><p><a class="reference external" href="https://github.com/chillerlan/php-qrcode/issues/23">github.com/chillerlan/php-qrcode/issues/23</a></p></li>
|
||
</ul>
|
||
</section>
|
||
<section id="imagickformat">
|
||
<h2>imagickFormat<a class="headerlink" href="#imagickformat" title="Link to this heading"></a></h2>
|
||
<p>Imagick output format</p>
|
||
<p><strong>See also:</strong></p>
|
||
<ul class="simple">
|
||
<li><p><a class="reference external" href="https://www.php.net/manual/imagick.setimageformat">php.net: <code class="docutils literal notranslate"><span class="pre">\Imagick::setImageFormat()</span></code></a></p></li>
|
||
<li><p><a class="reference external" href="https://www.imagemagick.org/script/formats.php">www.imagemagick.org/script/formats.php</a></p></li>
|
||
</ul>
|
||
</section>
|
||
<section id="cssclass">
|
||
<h2>cssClass<a class="headerlink" href="#cssclass" title="Link to this heading"></a></h2>
|
||
<p>A common css class</p>
|
||
</section>
|
||
<section id="svgaddxmlheader">
|
||
<h2>svgAddXmlHeader<a class="headerlink" href="#svgaddxmlheader" title="Link to this heading"></a></h2>
|
||
<p>Whether to add an XML header line or not, e.g. to embed the SVG directly in HTML</p>
|
||
<p><code class="docutils literal notranslate"><span class="pre"><?xml</span> <span class="pre">version="1.0"</span> <span class="pre">encoding="UTF-8"?></span></code></p>
|
||
</section>
|
||
<section id="svgdefs">
|
||
<h2>svgDefs<a class="headerlink" href="#svgdefs" title="Link to this heading"></a></h2>
|
||
<p>Anything in the SVG <code class="docutils literal notranslate"><span class="pre"><defs></span></code> tag</p>
|
||
<p><strong>See also:</strong></p>
|
||
<ul class="simple">
|
||
<li><p><a class="reference external" href="https://developer.mozilla.org/en-US/docs/Web/SVG/Element/defs">developer.mozilla.org/en-US/docs/Web/SVG/Element/defs</a></p></li>
|
||
</ul>
|
||
</section>
|
||
<section id="svgpreserveaspectratio">
|
||
<h2>svgPreserveAspectRatio<a class="headerlink" href="#svgpreserveaspectratio" title="Link to this heading"></a></h2>
|
||
<p>Sets the value for the “preserveAspectRatio” on the <code class="docutils literal notranslate"><span class="pre"><svg></span></code> element</p>
|
||
<p><strong>See also:</strong></p>
|
||
<ul class="simple">
|
||
<li><p><a class="reference external" href="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/preserveAspectRatio">developer.mozilla.org/en-US/docs/Web/SVG/Attribute/preserveAspectRatio</a></p></li>
|
||
</ul>
|
||
</section>
|
||
<section id="svgusefillattributes">
|
||
<h2>svgUseFillAttributes<a class="headerlink" href="#svgusefillattributes" title="Link to this heading"></a></h2>
|
||
<p>Whether to use the SVG <code class="docutils literal notranslate"><span class="pre">fill</span></code> attributes</p>
|
||
<p>If set to <code class="docutils literal notranslate"><span class="pre">true</span></code> (default), the <code class="docutils literal notranslate"><span class="pre">fill</span></code> attribute will be set with the module value for the <code class="docutils literal notranslate"><span class="pre"><path></span></code> element’s <code class="docutils literal notranslate"><span class="pre">$M_TYPE</span></code>.
|
||
When set to <code class="docutils literal notranslate"><span class="pre">false</span></code>, the module values map will be ignored and the QR Code may be styled via CSS.</p>
|
||
<p><strong>See also:</strong></p>
|
||
<ul class="simple">
|
||
<li><p><a class="reference external" href="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill">developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill</a></p></li>
|
||
</ul>
|
||
</section>
|
||
<section id="textlinestart">
|
||
<h2>textLineStart<a class="headerlink" href="#textlinestart" title="Link to this heading"></a></h2>
|
||
<p>An optional line prefix, e.g. empty space to align the QR Code in a console</p>
|
||
</section>
|
||
<section id="jsonflags">
|
||
<h2>jsonFlags<a class="headerlink" href="#jsonflags" title="Link to this heading"></a></h2>
|
||
<p>Sets the flags to use for the <code class="docutils literal notranslate"><span class="pre">json_encode()</span></code> call</p>
|
||
<p><strong>See also:</strong></p>
|
||
<ul class="simple">
|
||
<li><p><a class="reference external" href="https://www.php.net/manual/json.constants.php">www.php.net/manual/json.constants.php</a></p></li>
|
||
</ul>
|
||
</section>
|
||
<section id="jsonasbooleans">
|
||
<h2>jsonAsBooleans<a class="headerlink" href="#jsonasbooleans" title="Link to this heading"></a></h2>
|
||
<p>Whether to return matrix values in JSON as booleans or <code class="docutils literal notranslate"><span class="pre">$M_TYPE</span></code> integers</p>
|
||
</section>
|
||
<section id="fpdfmeasureunit">
|
||
<h2>fpdfMeasureUnit<a class="headerlink" href="#fpdfmeasureunit" title="Link to this heading"></a></h2>
|
||
<p>Measurement unit for <code class="docutils literal notranslate"><span class="pre">FPDF</span></code> output: <code class="docutils literal notranslate"><span class="pre">pt</span></code>, <code class="docutils literal notranslate"><span class="pre">mm</span></code>, <code class="docutils literal notranslate"><span class="pre">cm</span></code>, <code class="docutils literal notranslate"><span class="pre">in</span></code> (default: <code class="docutils literal notranslate"><span class="pre">pt</span></code>)</p>
|
||
<p><strong>See also:</strong></p>
|
||
<ul class="simple">
|
||
<li><p><code class="docutils literal notranslate"><span class="pre">FPDF::__construct()</span></code></p></li>
|
||
</ul>
|
||
</section>
|
||
<section id="readeruseimagickifavailable">
|
||
<h2>readerUseImagickIfAvailable<a class="headerlink" href="#readeruseimagickifavailable" title="Link to this heading"></a></h2>
|
||
<p>Use Imagick (if available) when reading QR Codes</p>
|
||
</section>
|
||
<section id="readergrayscale">
|
||
<h2>readerGrayscale<a class="headerlink" href="#readergrayscale" title="Link to this heading"></a></h2>
|
||
<p>Grayscale the image before reading</p>
|
||
</section>
|
||
<section id="readerinvertcolors">
|
||
<h2>readerInvertColors<a class="headerlink" href="#readerinvertcolors" title="Link to this heading"></a></h2>
|
||
<p>Invert the colors of the image</p>
|
||
</section>
|
||
<section id="readerincreasecontrast">
|
||
<h2>readerIncreaseContrast<a class="headerlink" href="#readerincreasecontrast" title="Link to this heading"></a></h2>
|
||
<p>Increase the contrast before reading</p>
|
||
<p>note that applying contrast works different in GD and Imagick, so mileage may vary</p>
|
||
</section>
|
||
</section>
|
||
|
||
|
||
</div>
|
||
</div>
|
||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||
<a href="Advanced-usage.html" class="btn btn-neutral float-left" title="Advanced usage" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||
<a href="../Customizing/Module-Values.html" class="btn btn-neutral float-right" title="Module values" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||
</div>
|
||
|
||
<hr/>
|
||
|
||
<div role="contentinfo">
|
||
<p>© Copyright 2023, smiley.</p>
|
||
</div>
|
||
|
||
|
||
|
||
</footer>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
</div>
|
||
<script>
|
||
jQuery(function () {
|
||
SphinxRtdTheme.Navigation.enable(true);
|
||
});
|
||
</script>
|
||
|
||
</body>
|
||
</html> |