| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719 |
- <!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>Popular content and URI schemes — 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=e59714d7" />
-
- <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=9bcbadda"></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="Performance considerations" href="Performance-considerations.html" />
- <link rel="prev" title="Terminology" href="Terminology.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>
- <li class="toctree-l1"><a class="reference internal" href="../Usage/Overview.html">Overview</a><ul>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Overview.html#features">Features</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Overview.html#requirements">Requirements</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Overview.html#framework-integration">Framework Integration</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Overview.html#shameless-advertising">Shameless advertising</a></li>
- </ul>
- </li>
- <li class="toctree-l1"><a class="reference internal" href="../Usage/Installation.html">Installation</a><ul>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Installation.html#installation-with-composer">Installation with Composer</a><ul>
- <li class="toctree-l3"><a class="reference internal" href="../Usage/Installation.html#composer-json">composer.json</a><ul>
- <li class="toctree-l4"><a class="reference internal" href="../Usage/Installation.html#version-switch">Version switch</a></li>
- </ul>
- </li>
- <li class="toctree-l3"><a class="reference internal" href="../Usage/Installation.html#terminal">Terminal</a></li>
- </ul>
- </li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Installation.html#manual-installation">Manual installation</a><ul>
- <li class="toctree-l3"><a class="reference internal" href="../Usage/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="../Usage/Installation.html#supported-php-versions-extension-requirements">Supported PHP versions & extension requirements</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Installation.html#imagemagick">ImageMagick</a></li>
- </ul>
- </li>
- <li class="toctree-l1"><a class="reference internal" href="../Usage/Quickstart.html">Quickstart</a><ul>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Quickstart.html#import-the-library">Import the library</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Quickstart.html#create-your-first-qr-code">Create your first QR Code</a><ul>
- <li class="toctree-l3"><a class="reference internal" href="../Usage/Quickstart.html#configuration">Configuration</a></li>
- </ul>
- </li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Quickstart.html#reading-qr-codes">Reading QR Codes</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Quickstart.html#notes">Notes</a></li>
- </ul>
- </li>
- <li class="toctree-l1"><a class="reference internal" href="../Usage/Advanced-usage.html">Advanced usage</a><ul>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/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="../Usage/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="../Usage/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="../Usage/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="../Usage/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="../Usage/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="../Usage/Advanced-usage.html#mixed-mode">Mixed mode</a></li>
- <li class="toctree-l3"><a class="reference internal" href="../Usage/Advanced-usage.html#qr-code-reader">QR Code reader</a></li>
- </ul>
- </li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Advanced-usage.html#common-output-options">Common output options</a><ul>
- <li class="toctree-l3"><a class="reference internal" href="../Usage/Advanced-usage.html#save-to-file">Save to file</a></li>
- <li class="toctree-l3"><a class="reference internal" href="../Usage/Advanced-usage.html#base64-uri-output">Base64 URI output</a></li>
- <li class="toctree-l3"><a class="reference internal" href="../Usage/Advanced-usage.html#return-the-image-resource">Return the image resource</a></li>
- <li class="toctree-l3"><a class="reference internal" href="../Usage/Advanced-usage.html#add-a-logo-space">Add a logo space</a></li>
- </ul>
- </li>
- </ul>
- </li>
- <li class="toctree-l1"><a class="reference internal" href="../Usage/Configuration-settings.html">Configuration settings</a><ul>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#version">version</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#versionmin">versionMin</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#versionmax">versionMax</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#ecclevel">eccLevel</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#maskpattern">maskPattern</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#addquietzone">addQuietzone</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#quietzonesize">quietzoneSize</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#outputinterface">outputInterface</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#returnresource">returnResource</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#cachefile">cachefile</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#outputbase64">outputBase64</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#eol">eol</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#bgcolor">bgColor</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#invertmatrix">invertMatrix</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#drawlightmodules">drawLightModules</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#drawcircularmodules">drawCircularModules</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#circleradius">circleRadius</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#keepassquare">keepAsSquare</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#connectpaths">connectPaths</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#excludefromconnect">excludeFromConnect</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#modulevalues">moduleValues</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#addlogospace">addLogoSpace</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#logospacewidth">logoSpaceWidth</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#logospaceheight">logoSpaceHeight</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#logospacestartx">logoSpaceStartX</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#logospacestarty">logoSpaceStartY</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#scale">scale</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#imagetransparent">imageTransparent</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#transparencycolor">transparencyColor</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#quality">quality</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#gdimageuseupscale">gdImageUseUpscale</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#imagickformat">imagickFormat</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#cssclass">cssClass</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#svgaddxmlheader">svgAddXmlHeader</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#svgdefs">svgDefs</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#svgpreserveaspectratio">svgPreserveAspectRatio</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#svgusefillattributes">svgUseFillAttributes</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#textlinestart">textLineStart</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#jsonflags">jsonFlags</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#fpdfmeasureunit">fpdfMeasureUnit</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#xmlstylesheet">xmlStylesheet</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#readeruseimagickifavailable">readerUseImagickIfAvailable</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#readergrayscale">readerGrayscale</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#readerinvertcolors">readerInvertColors</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#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 Classes</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-class">Options that affect this class</a></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-class">Options that affect this class</a></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-class">Options that affect this class</a></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-class">Options that affect this class</a></li>
- </ul>
- </li>
- <li class="toctree-l1"><a class="reference internal" href="../Built-In-Output/QRInterventionImage.html">QRInterventionImage</a><ul>
- <li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRInterventionImage.html#example">Example</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRInterventionImage.html#additional-methods">Additional methods</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRInterventionImage.html#options-that-affect-this-class">Options that affect this class</a></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-class">Options that affect this class</a></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-class">Options that affect this class</a></li>
- </ul>
- </li>
- <li class="toctree-l1"><a class="reference internal" href="../Built-In-Output/QRMarkupXML.html">QRMarkupXML</a><ul>
- <li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRMarkupXML.html#example">Example</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRMarkupXML.html#additional-methods">Additional methods</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRMarkupXML.html#options-that-affect-this-class">Options that affect this class</a></li>
- </ul>
- </li>
- <li class="toctree-l1"><a class="reference internal" href="../Built-In-Output/QRStringJSON.html">QRStringJSON</a><ul>
- <li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRStringJSON.html#example">Example</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRStringJSON.html#previous-functionality">Previous functionality</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRStringJSON.html#additional-methods">Additional methods</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRStringJSON.html#options-that-affect-this-class">Options that affect this class</a></li>
- </ul>
- </li>
- <li class="toctree-l1"><a class="reference internal" href="../Built-In-Output/QRStringText.html">QRStringText</a><ul>
- <li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRStringText.html#example">Example</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRStringText.html#additional-methods">Additional methods</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRStringText.html#options-that-affect-this-class">Options that affect this class</a></li>
- </ul>
- </li>
- </ul>
- <p class="caption" role="heading"><span class="caption-text">Appendix</span></p>
- <ul class="current">
- <li class="toctree-l1"><a class="reference internal" href="Terminology.html">Terminology</a><ul>
- <li class="toctree-l2"><a class="reference internal" href="Terminology.html#qr-code">QR Code</a></li>
- <li class="toctree-l2"><a class="reference internal" href="Terminology.html#matrix">Matrix</a><ul>
- <li class="toctree-l3"><a class="reference internal" href="Terminology.html#module">Module</a></li>
- <li class="toctree-l3"><a class="reference internal" href="Terminology.html#version">Version</a></li>
- </ul>
- </li>
- <li class="toctree-l2"><a class="reference internal" href="Terminology.html#function-patterns">Function Patterns</a><ul>
- <li class="toctree-l3"><a class="reference internal" href="Terminology.html#finder-pattern">Finder Pattern</a></li>
- <li class="toctree-l3"><a class="reference internal" href="Terminology.html#alignment-pattern">Alignment Pattern</a></li>
- <li class="toctree-l3"><a class="reference internal" href="Terminology.html#timing-pattern">Timing Pattern</a></li>
- <li class="toctree-l3"><a class="reference internal" href="Terminology.html#separators">Separators</a></li>
- <li class="toctree-l3"><a class="reference internal" href="Terminology.html#quiet-zone">Quiet Zone</a></li>
- </ul>
- </li>
- <li class="toctree-l2"><a class="reference internal" href="Terminology.html#encoding-region">Encoding Region</a><ul>
- <li class="toctree-l3"><a class="reference internal" href="Terminology.html#data">Data</a></li>
- <li class="toctree-l3"><a class="reference internal" href="Terminology.html#version-information">Version Information</a></li>
- <li class="toctree-l3"><a class="reference internal" href="Terminology.html#format-information">Format Information</a></li>
- <li class="toctree-l3"><a class="reference internal" href="Terminology.html#darkmodule">Darkmodule</a></li>
- </ul>
- </li>
- <li class="toctree-l2"><a class="reference internal" href="Terminology.html#mode">Mode</a><ul>
- <li class="toctree-l3"><a class="reference internal" href="Terminology.html#segment">Segment</a></li>
- <li class="toctree-l3"><a class="reference internal" href="Terminology.html#extended-channel-interpretation-eci">Extended Channel Interpretation (ECI)</a></li>
- <li class="toctree-l3"><a class="reference internal" href="Terminology.html#mixed-mode">Mixed Mode</a></li>
- </ul>
- </li>
- <li class="toctree-l2"><a class="reference internal" href="Terminology.html#ecc-error-correction-coding">ECC (Error Correction Coding)</a><ul>
- <li class="toctree-l3"><a class="reference internal" href="Terminology.html#ecc-level">ECC Level</a></li>
- <li class="toctree-l3"><a class="reference internal" href="Terminology.html#maximum-data-capacity">Maximum data capacity</a></li>
- </ul>
- </li>
- <li class="toctree-l2"><a class="reference internal" href="Terminology.html#data-masking">Data masking</a><ul>
- <li class="toctree-l3"><a class="reference internal" href="Terminology.html#evaluation">Evaluation</a></li>
- <li class="toctree-l3"><a class="reference internal" href="Terminology.html#mask-pattern">Mask pattern</a></li>
- </ul>
- </li>
- <li class="toctree-l2"><a class="reference internal" href="Terminology.html#reflectance">Reflectance</a></li>
- </ul>
- </li>
- <li class="toctree-l1 current"><a class="current reference internal" href="#">Popular content and URI schemes</a><ul>
- <li class="toctree-l2"><a class="reference internal" href="#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="#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="#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="#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="#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="#wireless-network-configuration">Wireless Network configuration</a></li>
- <li class="toctree-l2"><a class="reference internal" href="#contact-information-vcard">Contact information: vCard</a></li>
- <li class="toctree-l2"><a class="reference internal" href="#calendar-events-vcalendar-and-icalendar">Calendar Events: vCalendar and iCalendar</a></li>
- <li class="toctree-l2"><a class="reference internal" href="#credit-transfer">Credit Transfer</a><ul>
- <li class="toctree-l3"><a class="reference internal" href="#sepa-european-payments-council">SEPA (European Payments Council)</a></li>
- <li class="toctree-l3"><a class="reference internal" href="#pix-banco-central-do-brasil">Pix (Banco Central do Brasil)</a></li>
- </ul>
- </li>
- <li class="toctree-l2"><a class="reference internal" href="#see-also">See also</a></li>
- </ul>
- </li>
- <li class="toctree-l1"><a class="reference internal" href="Performance-considerations.html">Performance considerations</a><ul>
- <li class="toctree-l2"><a class="reference internal" href="Performance-considerations.html#version">Version</a></li>
- <li class="toctree-l2"><a class="reference internal" href="Performance-considerations.html#ecc-level">Ecc level</a></li>
- <li class="toctree-l2"><a class="reference internal" href="Performance-considerations.html#data-mode">Data mode</a></li>
- <li class="toctree-l2"><a class="reference internal" href="Performance-considerations.html#mask-pattern">Mask pattern</a></li>
- <li class="toctree-l2"><a class="reference internal" href="Performance-considerations.html#output">Output</a></li>
- </ul>
- </li>
- <li class="toctree-l1"><a class="reference internal" href="Contribute.html">How to contribute</a><ul>
- <li class="toctree-l2"><a class="reference internal" href="Contribute.html#questions-and-issues">Questions and issues</a></li>
- <li class="toctree-l2"><a class="reference internal" href="Contribute.html#bug-reports">Bug reports</a></li>
- <li class="toctree-l2"><a class="reference internal" href="Contribute.html#pull-requests-and-bug-fixes">Pull requests and bug fixes</a></li>
- <li class="toctree-l2"><a class="reference internal" href="Contribute.html#documentation">Documentation</a></li>
- </ul>
- </li>
- <li class="toctree-l1"><a class="reference internal" href="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">Popular content and URI schemes</li>
- <li class="wy-breadcrumbs-aside">
- <a href="https://github.com/chillerlan/php-qrcode/blob/main/docs/Appendix/URI-Content.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="popular-content-and-uri-schemes">
- <h1>Popular content and URI schemes<a class="headerlink" href="#popular-content-and-uri-schemes" title="Link to this heading"></a></h1>
- <p><strong>A brief summary of popular use cases for QR codes.</strong></p>
- <section id="url-https">
- <h2>URL <code class="docutils literal notranslate"><span class="pre">https</span></code><a class="headerlink" href="#url-https" title="Link to this heading"></a></h2>
- <p>Perhaps the most common use for QR Codes is to share URLs: simply encode the (URL-encoded) string value
- and make sure to include the scheme <code class="docutils literal notranslate"><span class="pre">http(s)://</span></code> so that it can be properly identified by the reader application:</p>
- <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>https://en.m.wikipedia.org/wiki/URL
- </pre></div>
- </div>
- <p>Some URLs may open a vendor specific application, for example the following URL may open the YouTube app:</p>
- <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>https://www.youtube.com/watch?v=dQw4w9WgXcQ
- </pre></div>
- </div>
- <p><strong>See also:</strong></p>
- <ul class="simple">
- <li><p><a class="reference external" href="https://developer.mozilla.org/en-US/docs/Learn/Common_questions/Web_mechanics/What_is_a_URL">What is a URL? (Mozilla MDN)</a></p></li>
- <li><p><a class="reference external" href="https://en.wikipedia.org/wiki/URL">URL (Wikipedia)</a></p></li>
- </ul>
- </section>
- <section id="e-mail-mailto">
- <h2>E-Mail <code class="docutils literal notranslate"><span class="pre">mailto</span></code><a class="headerlink" href="#e-mail-mailto" title="Link to this heading"></a></h2>
- <p>E-Mail links are encoded similar to URLs, preceded by the <code class="docutils literal notranslate"><span class="pre">mailto:</span></code> scheme to ensure they are properly identified and the default mail application can be opened.
- Parameters may be added as a <a class="reference external" href="https://en.wikipedia.org/wiki/Query_string">URL query string</a>:</p>
- <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>mailto:<ADDR>[,...?to=<ADDR>,...&cc=<ADDR>,...&bcc=<ADDR>,...&subject=<SUBJECT>&body=<BODY>]
- </pre></div>
- </div>
- <table class="docutils align-default">
- <thead>
- <tr class="row-odd"><th class="head"><p>Query parameter</p></th>
- <th class="head"><p>Description</p></th>
- </tr>
- </thead>
- <tbody>
- <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">to</span></code></p></td>
- <td><p>Alternative to add a recipient address: <code class="docutils literal notranslate"><span class="pre">mailto:<ADDR>?to=<ADDR></span></code> is equivalent to<br/><code class="docutils literal notranslate"><span class="pre">mailto:<ADDR>,<ADDR></span></code> and <code class="docutils literal notranslate"><span class="pre">mailto:?to=<ADDR>,<ADDR></span></code></p></td>
- </tr>
- <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">subject</span></code></p></td>
- <td><p>Subject text: <code class="docutils literal notranslate"><span class="pre">mailto:<ADDR>?subject=Hello%20World%21</span></code> would open the e-mail app<br/>and create a messagewith the subject <code class="docutils literal notranslate"><span class="pre">Hello</span> <span class="pre">World!</span></code></p></td>
- </tr>
- <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">body</span></code></p></td>
- <td><p>Message body: <code class="docutils literal notranslate"><span class="pre">mailto:<ADDR>?body=This%20is%20the%20message%20body.</span></code><br/>creates a message with the contents <code class="docutils literal notranslate"><span class="pre">This</span> <span class="pre">is</span> <span class="pre">the</span> <span class="pre">message</span> <span class="pre">body.</span></code></p></td>
- </tr>
- <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">cc</span></code></p></td>
- <td><p>“Carbon copy” to add one or more <code class="docutils literal notranslate"><span class="pre">cc</span></code> recipients</p></td>
- </tr>
- <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">bcc</span></code></p></td>
- <td><p>“Blind carbon copy” to add one or more <code class="docutils literal notranslate"><span class="pre">bcc</span></code> recipients</p></td>
- </tr>
- </tbody>
- </table>
- <p>The fields for recipient adresses (<code class="docutils literal notranslate"><span class="pre">mailto:</span></code>, <code class="docutils literal notranslate"><span class="pre">to</span></code>, <code class="docutils literal notranslate"><span class="pre">cc</span></code>, <code class="docutils literal notranslate"><span class="pre">bcc</span></code>) may contain one or more elements separated by a comma <code class="docutils literal notranslate"><span class="pre">,</span></code>; the values of all fields shall be URL-encoded according to <a class="reference external" href="https://datatracker.ietf.org/doc/html/rfc3986">RFC 3986</a>.</p>
- <p><strong>Examples:</strong></p>
- <ul class="simple">
- <li><p><code class="docutils literal notranslate"><span class="pre">mailto:?to=addr1@example.com</span></code></p></li>
- <li><p><code class="docutils literal notranslate"><span class="pre">mailto:addr1@example.com,addr2@example.com</span></code></p></li>
- <li><p><code class="docutils literal notranslate"><span class="pre">mailto:addr1@example.com?cc=addr2@example.com&subject=Hello%21</span></code></p></li>
- </ul>
- <p><strong>See also:</strong></p>
- <ul class="simple">
- <li><p><a class="reference external" href="https://datatracker.ietf.org/doc/html/rfc6068">RFC 6068 - The ‘mailto’ URI Scheme</a></p></li>
- <li><p><a class="reference external" href="https://developer.mozilla.org/en-US/docs/Learn/HTML/Introduction_to_HTML/Creating_hyperlinks#email_links">Email links (Mozilla MDN)</a></p></li>
- <li><p><a class="reference external" href="https://en.wikipedia.org/wiki/Email">Email (Wikipedia)</a></p></li>
- <li><p><a class="reference external" href="https://en.wikipedia.org/wiki/Mailto">mailto (Wikipedia)</a></p></li>
- </ul>
- </section>
- <section id="phone-numbers-tel">
- <h2>Phone numbers <code class="docutils literal notranslate"><span class="pre">tel</span></code><a class="headerlink" href="#phone-numbers-tel" title="Link to this heading"></a></h2>
- <p>A phone number should be prefixed with the <code class="docutils literal notranslate"><span class="pre">tel:</span></code> scheme so that a device’s dialer can be invoked properly:</p>
- <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>tel:+999-123-456-7890
- </pre></div>
- </div>
- <p>Generally, the most complete version of a telephone number possible should be used, e.g. <code class="docutils literal notranslate"><span class="pre">+<country code><area code><number></span></code>, spaces or hyphens may be used to separate blocks.
- Some devices may also support the <code class="docutils literal notranslate"><span class="pre">sms</span></code> and <code class="docutils literal notranslate"><span class="pre">fax</span></code> schemes, which are deprecated in favor of <code class="docutils literal notranslate"><span class="pre">tel</span></code>.</p>
- <p><strong>See also:</strong></p>
- <ul class="simple">
- <li><p><a class="reference external" href="https://datatracker.ietf.org/doc/html/rfc3966">RFC 3966 - The ‘tel’ URI for Telephone Numbers</a></p></li>
- <li><p><a class="reference external" href="https://en.wikipedia.org/wiki/List_of_country_calling_codes">List of country calling codes (Wikipedia)</a></p></li>
- <li><p><a class="reference external" href="https://en.wikipedia.org/wiki/National_conventions_for_writing_telephone_numbers">National conventions for writing telephone numbers (Wikipedia)</a></p></li>
- <li><p><a class="reference external" href="https://github.com/google/libphonenumber">google/libphonenumber (GitHub)</a> (<a class="reference external" href="https://github.com/giggsey/libphonenumber-for-php">PHP port (GitHub)</a>)</p></li>
- </ul>
- </section>
- <section id="geo-coordinates-geo">
- <h2>Geo Coordinates <code class="docutils literal notranslate"><span class="pre">geo</span></code><a class="headerlink" href="#geo-coordinates-geo" title="Link to this heading"></a></h2>
- <p>A geographical coordinate, including altitude can be encoded using the <code class="docutils literal notranslate"><span class="pre">geo:</span></code> URI scheme so that it can be opened with a map application.</p>
- <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>geo:<latitude>,<longitude>[,<altitude>;crs=<crs>;u=<num>]
- </pre></div>
- </div>
- <p>The default coordinate system is WGS-84, for which latitude and longitude should be supplied as decimal degrees, the optional altitude in meters.
- The parameter <code class="docutils literal notranslate"><span class="pre">u</span></code> can be used to specify an <em>uncertainty</em> value (in meters), a different <em>coordinate reference system</em> may be supplied with <code class="docutils literal notranslate"><span class="pre">crs</span></code>.</p>
- <p>Some applications support an additional query string with values of <code class="docutils literal notranslate"><span class="pre">z</span></code> for <em>zoom</em> level and <code class="docutils literal notranslate"><span class="pre">q</span></code> for a local search <em>query</em> (URL-encoded):</p>
- <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>geo:<latitude>,<longitude>?z=<zoom>&q=<search>
- </pre></div>
- </div>
- <p><strong>Examples:</strong></p>
- <ul class="simple">
- <li><p><code class="docutils literal notranslate"><span class="pre">geo:47.620521,-122.349293</span></code></p></li>
- <li><p><code class="docutils literal notranslate"><span class="pre">geo:27.988056,86.925278,8848</span></code></p></li>
- <li><p><code class="docutils literal notranslate"><span class="pre">geo:11.373333,142.591667,-10920;u=10</span></code></p></li>
- <li><p><code class="docutils literal notranslate"><span class="pre">geo:37.786971,-122.399677;crs=Moon-2011;u=35</span></code></p></li>
- </ul>
- <p><strong>See also:</strong></p>
- <ul class="simple">
- <li><p><a class="reference external" href="https://datatracker.ietf.org/doc/html/rfc5870">RFC 5870 - A Uniform Resource Identifier for Geographic Locations (‘geo’ URI)</a></p></li>
- <li><p><a class="reference external" href="https://en.wikipedia.org/wiki/Geo_URI_scheme">geo URI scheme (Wikipedia)</a></p></li>
- <li><p><a class="reference external" href="https://en.wikipedia.org/wiki/Coordinate_reference_system">Coordinate reference system (Wikipedia)</a></p></li>
- </ul>
- </section>
- <section id="mobile-authenticators-otpauth">
- <h2>Mobile Authenticators <code class="docutils literal notranslate"><span class="pre">otpauth</span></code><a class="headerlink" href="#mobile-authenticators-otpauth" title="Link to this heading"></a></h2>
- <p>Mobile authenticators can be added with the <code class="docutils literal notranslate"><span class="pre">otpauth</span></code> scheme:</p>
- <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>otpauth://<MODE>/<LABEL>?secret=<SECRET>[&issuer=<ISSUER>&params...]
- </pre></div>
- </div>
- <p>The path elemets <code class="docutils literal notranslate"><span class="pre">MODE</span></code> and <code class="docutils literal notranslate"><span class="pre">LABEL</span></code> as well as the query parameter <code class="docutils literal notranslate"><span class="pre">secret</span></code> are mandatory, other query parameters are optional,
- however, it is strongy advised to add the <code class="docutils literal notranslate"><span class="pre">issuer</span></code> parameter to ease identification.
- The <code class="docutils literal notranslate"><span class="pre">LABEL</span></code>, as well as the <code class="docutils literal notranslate"><span class="pre">issuer</span></code> values shall be URL-encoded according to <a class="reference external" href="https://datatracker.ietf.org/doc/html/rfc3986">RFC 3986</a>.</p>
- <table class="docutils align-default">
- <thead>
- <tr class="row-odd"><th class="head"><p>Path element</p></th>
- <th class="head"><p>Description</p></th>
- </tr>
- </thead>
- <tbody>
- <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">MODE</span></code></p></td>
- <td><p>Authenticator mode, either <code class="docutils literal notranslate"><span class="pre">totp</span></code> (time based) or <code class="docutils literal notranslate"><span class="pre">hotp</span></code> (counter based)</p></td>
- </tr>
- <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">LABEL</span></code></p></td>
- <td><p>The label is used to identify which account a key is associated with.<br/>It may be prefixed with the issuer name, separated by a colon: <code class="docutils literal notranslate"><span class="pre"><issuer>:<account></span></code></p></td>
- </tr>
- </tbody>
- </table>
- <table class="docutils align-default">
- <thead>
- <tr class="row-odd"><th class="head"><p>Query parameter</p></th>
- <th class="head"><p>Description</p></th>
- </tr>
- </thead>
- <tbody>
- <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">secret</span></code></p></td>
- <td><p>Secret key (required), a cryptographically secure random string, encoded in Base32<br/>according to <a class="reference external" href="https://datatracker.ietf.org/doc/html/rfc3548">RFC 3548</a> (without padding).<br/>Some authenticators may support Base64 and hexadecimal values as well.</p></td>
- </tr>
- <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">issuer</span></code></p></td>
- <td><p>A string value indicating the provider or service this account is associated with.</p></td>
- </tr>
- <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">algorithm</span></code></p></td>
- <td><p>Hash algorithm, may be one of <code class="docutils literal notranslate"><span class="pre">SHA1</span></code> (default), <code class="docutils literal notranslate"><span class="pre">SHA256</span></code> or <code class="docutils literal notranslate"><span class="pre">SHA512</span></code></p></td>
- </tr>
- <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">digits</span></code></p></td>
- <td><p>Length of the OTP code: <code class="docutils literal notranslate"><span class="pre">6</span></code> or <code class="docutils literal notranslate"><span class="pre">8</span></code></p></td>
- </tr>
- <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">counter</span></code></p></td>
- <td><p>(<code class="docutils literal notranslate"><span class="pre">hotp</span></code> only, required) The initial counter value</p></td>
- </tr>
- <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">period</span></code></p></td>
- <td><p>(<code class="docutils literal notranslate"><span class="pre">totp</span></code> only) The period of time in seconds a code will be valid for (default: 30)</p></td>
- </tr>
- </tbody>
- </table>
- <p>The parameters <code class="docutils literal notranslate"><span class="pre">algorithm</span></code>, <code class="docutils literal notranslate"><span class="pre">digits</span></code> and <code class="docutils literal notranslate"><span class="pre">period</span></code> may not be supported by some devices/apps.</p>
- <p><strong>Examples:</strong></p>
- <ul class="simple">
- <li><p><code class="docutils literal notranslate"><span class="pre">otpauth://hotp/example.com:counter-based?secret=JBSWY3DPEHPK3PXP&counter=42</span></code></p></li>
- <li><p><code class="docutils literal notranslate"><span class="pre">otpauth://hotp/counter-based?secret=JBSWY3DPEHPK3PXP&issuer=example.com&digits=6&algorithm=SHA256&counter=42</span></code></p></li>
- <li><p><code class="docutils literal notranslate"><span class="pre">otpauth://totp/example.com%3Atime-based?secret=JBSWY3DPEHPK3PXP</span></code></p></li>
- <li><p><code class="docutils literal notranslate"><span class="pre">otpauth://totp/time-based?secret=JBSWY3DPEHPK3PXP&issuer=example.com&digits=8&algorithm=SHA512&period=60</span></code></p></li>
- </ul>
- <p><strong>See also:</strong></p>
- <ul class="simple">
- <li><p><a class="reference external" href="https://datatracker.ietf.org/doc/html/rfc4226">RFC 4226 - An HMAC-Based One-Time Password Algorithm</a></p></li>
- <li><p><a class="reference external" href="https://datatracker.ietf.org/doc/html/rfc6238">RFC 6238 - Time-Based One-Time Password Algorithm</a></p></li>
- <li><p><a class="reference external" href="https://en.wikipedia.org/wiki/Google_Authenticator">Google Authenticator (Wikipedia)</a></p></li>
- <li><p><a class="reference external" href="https://github.com/google/google-authenticator/wiki/Key-Uri-Format">google-authenticator: Key Uri Format (GitHub)</a></p></li>
- <li><p><a class="reference external" href="https://github.com/chillerlan/php-qrcode/blob/main/examples/authenticator.php">php-qrcode: Authenticator example (GitHub)</a></p></li>
- </ul>
- </section>
- <section id="wireless-network-configuration">
- <h2>Wireless Network configuration<a class="headerlink" href="#wireless-network-configuration" title="Link to this heading"></a></h2>
- <p>Wi-Fi configuration general syntax looks as follows:</p>
- <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>WIFI:S:<SSID>[;T:<TYPE>;P:<PASSWORD>;H:<HIDDEN>;];
- </pre></div>
- </div>
- <table class="docutils align-default">
- <thead>
- <tr class="row-odd"><th class="head"><p>Parameter</p></th>
- <th class="head"><p>Description</p></th>
- </tr>
- </thead>
- <tbody>
- <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">S</span></code><sup>*</sup></p></td>
- <td><p>Network SSID (required)</p></td>
- </tr>
- <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">T</span></code></p></td>
- <td><p>Authentication type: can be one of <code class="docutils literal notranslate"><span class="pre">WEP</span></code>, <code class="docutils literal notranslate"><span class="pre">WPA</span></code>, <code class="docutils literal notranslate"><span class="pre">WPA2-EAP</span></code><br/>or <code class="docutils literal notranslate"><span class="pre">nopass</span></code> for no password (in which case you can omit the parameter)</p></td>
- </tr>
- <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">P</span></code><sup>*</sup></p></td>
- <td><p>Password, ignored if parameter <code class="docutils literal notranslate"><span class="pre">T</span></code> is set to <code class="docutils literal notranslate"><span class="pre">nopass</span></code></p></td>
- </tr>
- <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">H</span></code></p></td>
- <td><p>Set to <code class="docutils literal notranslate"><span class="pre">true</span></code> the network SSID is hidden.</p></td>
- </tr>
- </tbody>
- </table>
- <p><sup>*</sup> the value shall be enclosed in double quotes <code class="docutils literal notranslate"><span class="pre">"</span></code> if it is an ASCII string that can be interpreted as hex, e.g. <code class="docutils literal notranslate"><span class="pre">"ABCD1234"</span></code>,
- special characters <code class="docutils literal notranslate"><span class="pre">\ ; , " :</span></code> shall be escaped with a backslash <code class="docutils literal notranslate"><span class="pre">\</span></code>.</p>
- <p>Additional parameters for WPA2 and WPA3 (please note that these parameters may not be supported by some devices):</p>
- <table class="docutils align-default">
- <thead>
- <tr class="row-odd"><th class="head"><p>Parameter</p></th>
- <th class="head"><p>Description</p></th>
- </tr>
- </thead>
- <tbody>
- <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">A</span></code></p></td>
- <td><p>WPA2-EAP: Anonymous identity</p></td>
- </tr>
- <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">E</span></code></p></td>
- <td><p>WPA2-EAP: EAP method, like <code class="docutils literal notranslate"><span class="pre">TTLS</span></code> or <code class="docutils literal notranslate"><span class="pre">PWD</span></code></p></td>
- </tr>
- <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">PH2</span></code></p></td>
- <td><p>WPA2-EAP: Phase 2 method, like <code class="docutils literal notranslate"><span class="pre">MSCHAPV2</span></code></p></td>
- </tr>
- <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">I</span></code></p></td>
- <td><p>WPA2-EAP, WPA3: UTF-8 encoded password identifier, present if<br/>the password has an SAE password identifier</p></td>
- </tr>
- <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">K</span></code></p></td>
- <td><p>WPA3: DER of ASN.1 SubjectPublicKeyInfo in compressed form<br/>and encoded in “base64”, present when the network supports SAE-PK</p></td>
- </tr>
- <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">R</span></code></p></td>
- <td><p>WPA3: Transition Disable value</p></td>
- </tr>
- </tbody>
- </table>
- <p><strong>Examples:</strong></p>
- <ul class="simple">
- <li><p><code class="docutils literal notranslate"><span class="pre">WIFI:S:MyNetworkWihoutPassword;;</span></code></p></li>
- <li><p><code class="docutils literal notranslate"><span class="pre">WIFI:S:MyNetworkWihoutPassword;T:nopass;P:;;</span></code></p></li>
- <li><p><code class="docutils literal notranslate"><span class="pre">WIFI:S:MyHiddenWpaNetwork;T:WPA;P:"PASSWORD123";H:true;;</span></code></p></li>
- <li><p><code class="docutils literal notranslate"><span class="pre">WIFI:S:MyHiddenWpa2Network;T:WPA2-EAP;P:"PASSWORD123";H:true;;</span></code></p></li>
- </ul>
- <p><strong>See also:</strong></p>
- <ul class="simple">
- <li><p><a class="reference external" href="https://www.wi-fi.org/download.php?file=/sites/default/files/private/WPA3%20Specification%20v3.1.pdf">WPA3 Specification, Section 7.1</a></p></li>
- <li><p><a class="reference external" href="https://en.wikipedia.org/wiki/Wi-Fi_Protected_Access">Wi-Fi Protected Access (Wikipedia)</a></p></li>
- </ul>
- </section>
- <section id="contact-information-vcard">
- <h2>Contact information: vCard<a class="headerlink" href="#contact-information-vcard" title="Link to this heading"></a></h2>
- <p>The vCard is the most commonly used format to exchange contact details. It’s too complex to fully explain here, instead just a bare minimum example:</p>
- <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>BEGIN:VCARD
- VERSION:4.0
- N:<NAME>
- FN:<FULL NAME>
- GENDER:O
- EMAIL;type=(WORK|HOME):<EMAIL>
- TEL;type=(WORK|CELL|HOME):<PHONE>
- ADR;type=WORK:<LINE1>;<LINE2>;<STREET>;<CITY>;<STATE>;<ZIP>;<COUNTRY>
- TZ:<CITY/COUNTRY>
- URL:<URL>
- PHOTO;JPEG:<LINK>
- LOGO;JPEG:<LINK>
- NOTE:<TEXT>
- CATEGORIES:<LIST>
- END:VCARD
- </pre></div>
- </div>
- <p><strong>See also:</strong></p>
- <ul class="simple">
- <li><p><a class="reference external" href="https://datatracker.ietf.org/doc/html/rfc6350">RFC 6350 - vCard Format Specification</a></p></li>
- <li><p><a class="reference external" href="https://en.wikipedia.org/wiki/VCard">vCard (Wikipedia)</a></p></li>
- <li><p><a class="reference external" href="https://www.w3.org/TR/vcard-rdf/">vCard Ontology - for describing People and Organizations (W3C)</a></p></li>
- <li><p><a class="reference external" href="https://github.com/sabre-io/vobject">vobject library for PHP (GitHub)</a></p></li>
- </ul>
- </section>
- <section id="calendar-events-vcalendar-and-icalendar">
- <h2>Calendar Events: vCalendar and iCalendar<a class="headerlink" href="#calendar-events-vcalendar-and-icalendar" title="Link to this heading"></a></h2>
- <p>Calendar events can be shared via the iCalendar (formerly vCalendar) object (example from <a class="reference external" href="https://github.com/spatie/icalendar-generator">icalendar-generator</a>):</p>
- <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>BEGIN:VCALENDAR
- VERSION:2.0
- PRODID:spatie/icalendar-generator
- NAME:Laracon online
- X-WR-CALNAME:Laracon online
- BEGIN:VEVENT
- UID:5ef5c3f64cb2c
- DTSTAMP;TZID=UTC:20200626T094630
- SUMMARY:Creating calendar feeds
- DTSTART:20190306T150000Z
- DTEND:20190306T160000Z
- DTSTAMP:20190419T135034Z
- END:VEVENT
- END:VCALENDAR
- </pre></div>
- </div>
- <p><strong>See also:</strong></p>
- <ul class="simple">
- <li><p><a class="reference external" href="https://datatracker.ietf.org/doc/html/rfc5545">RFC 5545 - Internet Calendaring and Scheduling Core Object Specification (iCalendar)</a></p></li>
- <li><p><a class="reference external" href="https://en.wikipedia.org/wiki/ICalendar">iCalendar (Wikipedia)</a></p></li>
- <li><p><a class="reference external" href="https://github.com/sabre-io/vobject">vobject library for PHP (GitHub)</a></p></li>
- <li><p><a class="reference external" href="https://github.com/spatie/icalendar-generator">iCalendar generator for PHP (GitHub)</a></p></li>
- </ul>
- </section>
- <section id="credit-transfer">
- <h2>Credit Transfer<a class="headerlink" href="#credit-transfer" title="Link to this heading"></a></h2>
- <section id="sepa-european-payments-council">
- <h3>SEPA (European Payments Council)<a class="headerlink" href="#sepa-european-payments-council" title="Link to this heading"></a></h3>
- <ul class="simple">
- <li><p><a class="reference external" href="https://www.europeanpaymentscouncil.eu/document-library/guidance-documents/quick-response-code-guidelines-enable-data-capture-initiation">Guidelines to Enable the Data Capture for the Initiation of a SEPA Credit Transfer</a></p></li>
- <li><p><a class="reference external" href="https://github.com/smhg/sepa-qr-data-php">sepa-qr-data library for PHP (GitHub)</a></p></li>
- </ul>
- </section>
- <section id="pix-banco-central-do-brasil">
- <h3>Pix (Banco Central do Brasil)<a class="headerlink" href="#pix-banco-central-do-brasil" title="Link to this heading"></a></h3>
- <ul class="simple">
- <li><p><a class="reference external" href="https://www.bcb.gov.br/content/estabilidadefinanceira/pix/Regulamento_Pix/II_ManualdePadroesparaIniciacaodoPix.pdf">Manual de Padrões para Iniciação do Pix (PDF)</a></p></li>
- <li><p><a class="reference external" href="https://github.com/openboleto/openboleto">OpenBoleto (GitHub)</a></p></li>
- </ul>
- </section>
- </section>
- <section id="see-also">
- <h2>See also<a class="headerlink" href="#see-also" title="Link to this heading"></a></h2>
- <ul class="simple">
- <li><p><a class="reference external" href="https://datatracker.ietf.org/doc/html/rfc3986">RFC 3986 - Uniform Resource Identifier (URI): Generic Syntax</a></p></li>
- <li><p><a class="reference external" href="https://en.m.wikipedia.org/wiki/Uniform_Resource_Identifier">Uniform Resource Identifier (Wikipedia)</a></p></li>
- <li><p><a class="reference external" href="https://en.m.wikipedia.org/wiki/List_of_URI_schemes">List of URI schemes (Wikipedia)</a></p></li>
- <li><p><a class="reference external" href="https://github.com/zxing/zxing/wiki/Barcode-Contents">zxing: Barcode Contents (GitHub)</a></p></li>
- </ul>
- </section>
- </section>
- </div>
- </div>
- <footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
- <a href="Terminology.html" class="btn btn-neutral float-left" title="Terminology" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
- <a href="Performance-considerations.html" class="btn btn-neutral float-right" title="Performance considerations" 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>
|