URI-Content.html 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660
  1. <!DOCTYPE html>
  2. <html class="writer-html5" lang="en" >
  3. <head>
  4. <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <title>Popular content and URI schemes &mdash; PHP-QRCode main
  7. Manual</title>
  8. <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
  9. <link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
  10. <!--[if lt IE 9]>
  11. <script src="../_static/js/html5shiv.min.js"></script>
  12. <![endif]-->
  13. <script src="../_static/jquery.js?v=5d32c60e"></script>
  14. <script src="../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
  15. <script src="../_static/documentation_options.js?v=a8da1a53"></script>
  16. <script src="../_static/doctools.js?v=888ff710"></script>
  17. <script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
  18. <script src="../_static/js/theme.js"></script>
  19. <link rel="index" title="Index" href="../genindex.html" />
  20. <link rel="search" title="Search" href="../search.html" />
  21. <link rel="next" title="License" href="License.html" />
  22. <link rel="prev" title="Terminology" href="Terminology.html" />
  23. </head>
  24. <body class="wy-body-for-nav">
  25. <div class="wy-grid-for-nav">
  26. <nav data-toggle="wy-nav-shift" class="wy-nav-side">
  27. <div class="wy-side-scroll">
  28. <div class="wy-side-nav-search" >
  29. <a href="../index.html" class="icon icon-home">
  30. PHP-QRCode
  31. </a>
  32. <div role="search">
  33. <form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
  34. <input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
  35. <input type="hidden" name="check_keywords" value="yes" />
  36. <input type="hidden" name="area" value="default" />
  37. </form>
  38. </div>
  39. </div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
  40. <p class="caption" role="heading"><span class="caption-text">Usage</span></p>
  41. <ul>
  42. <li class="toctree-l1"><a class="reference internal" href="../Usage/Overview.html">Overview</a><ul>
  43. <li class="toctree-l2"><a class="reference internal" href="../Usage/Overview.html#features">Features</a></li>
  44. <li class="toctree-l2"><a class="reference internal" href="../Usage/Overview.html#requirements">Requirements</a></li>
  45. <li class="toctree-l2"><a class="reference internal" href="../Usage/Overview.html#framework-integration">Framework Integration</a></li>
  46. <li class="toctree-l2"><a class="reference internal" href="../Usage/Overview.html#shameless-advertising">Shameless advertising</a></li>
  47. </ul>
  48. </li>
  49. <li class="toctree-l1"><a class="reference internal" href="../Usage/Installation.html">Installation</a><ul>
  50. <li class="toctree-l2"><a class="reference internal" href="../Usage/Installation.html#installation-with-composer">Installation with Composer</a><ul>
  51. <li class="toctree-l3"><a class="reference internal" href="../Usage/Installation.html#composer-json">composer.json</a><ul>
  52. <li class="toctree-l4"><a class="reference internal" href="../Usage/Installation.html#version-switch">Version switch</a></li>
  53. </ul>
  54. </li>
  55. <li class="toctree-l3"><a class="reference internal" href="../Usage/Installation.html#terminal">Terminal</a></li>
  56. </ul>
  57. </li>
  58. <li class="toctree-l2"><a class="reference internal" href="../Usage/Installation.html#manual-installation">Manual installation</a><ul>
  59. <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>
  60. </ul>
  61. </li>
  62. <li class="toctree-l2"><a class="reference internal" href="../Usage/Installation.html#supported-php-versions-extension-requirements">Supported PHP versions &amp; extension requirements</a></li>
  63. <li class="toctree-l2"><a class="reference internal" href="../Usage/Installation.html#imagemagick">ImageMagick</a></li>
  64. </ul>
  65. </li>
  66. <li class="toctree-l1"><a class="reference internal" href="../Usage/Quickstart.html">Quickstart</a><ul>
  67. <li class="toctree-l2"><a class="reference internal" href="../Usage/Quickstart.html#import-the-library">Import the library</a></li>
  68. <li class="toctree-l2"><a class="reference internal" href="../Usage/Quickstart.html#create-your-first-qr-code">Create your first QR Code</a><ul>
  69. <li class="toctree-l3"><a class="reference internal" href="../Usage/Quickstart.html#configuration">Configuration</a></li>
  70. </ul>
  71. </li>
  72. <li class="toctree-l2"><a class="reference internal" href="../Usage/Quickstart.html#reading-qr-codes">Reading QR Codes</a></li>
  73. <li class="toctree-l2"><a class="reference internal" href="../Usage/Quickstart.html#notes">Notes</a></li>
  74. </ul>
  75. </li>
  76. <li class="toctree-l1"><a class="reference internal" href="../Usage/Advanced-usage.html">Advanced usage</a><ul>
  77. <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>
  78. <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>
  79. <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>
  80. <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>
  81. </ul>
  82. </li>
  83. <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>
  84. <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>
  85. <li class="toctree-l3"><a class="reference internal" href="../Usage/Advanced-usage.html#mixed-mode">Mixed mode</a></li>
  86. <li class="toctree-l3"><a class="reference internal" href="../Usage/Advanced-usage.html#qr-code-reader">QR Code reader</a></li>
  87. </ul>
  88. </li>
  89. <li class="toctree-l2"><a class="reference internal" href="../Usage/Advanced-usage.html#common-output-options">Common output options</a><ul>
  90. <li class="toctree-l3"><a class="reference internal" href="../Usage/Advanced-usage.html#save-to-file">Save to file</a></li>
  91. <li class="toctree-l3"><a class="reference internal" href="../Usage/Advanced-usage.html#base64-uri-output">Base64 URI output</a></li>
  92. <li class="toctree-l3"><a class="reference internal" href="../Usage/Advanced-usage.html#return-the-image-resource">Return the image resource</a></li>
  93. <li class="toctree-l3"><a class="reference internal" href="../Usage/Advanced-usage.html#add-a-logo-space">Add a logo space</a></li>
  94. </ul>
  95. </li>
  96. </ul>
  97. </li>
  98. <li class="toctree-l1"><a class="reference internal" href="../Usage/Configuration-settings.html">Configuration settings</a><ul>
  99. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#version">version</a></li>
  100. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#versionmin">versionMin</a></li>
  101. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#versionmax">versionMax</a></li>
  102. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#ecclevel">eccLevel</a></li>
  103. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#maskpattern">maskPattern</a></li>
  104. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#addquietzone">addQuietzone</a></li>
  105. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#quietzonesize">quietzoneSize</a></li>
  106. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#outputtype">outputType</a></li>
  107. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#outputinterface">outputInterface</a></li>
  108. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#returnresource">returnResource</a></li>
  109. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#cachefile">cachefile</a></li>
  110. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#outputbase64">outputBase64</a></li>
  111. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#eol">eol</a></li>
  112. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#bgcolor">bgColor</a></li>
  113. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#invertmatrix">invertMatrix</a></li>
  114. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#drawlightmodules">drawLightModules</a></li>
  115. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#drawcircularmodules">drawCircularModules</a></li>
  116. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#circleradius">circleRadius</a></li>
  117. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#keepassquare">keepAsSquare</a></li>
  118. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#connectpaths">connectPaths</a></li>
  119. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#excludefromconnect">excludeFromConnect</a></li>
  120. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#modulevalues">moduleValues</a></li>
  121. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#addlogospace">addLogoSpace</a></li>
  122. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#logospacewidth">logoSpaceWidth</a></li>
  123. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#logospaceheight">logoSpaceHeight</a></li>
  124. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#logospacestartx">logoSpaceStartX</a></li>
  125. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#logospacestarty">logoSpaceStartY</a></li>
  126. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#scale">scale</a></li>
  127. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#imagetransparent">imageTransparent</a></li>
  128. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#transparencycolor">transparencyColor</a></li>
  129. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#quality">quality</a></li>
  130. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#imagickformat">imagickFormat</a></li>
  131. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#cssclass">cssClass</a></li>
  132. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#svgaddxmlheader">svgAddXmlHeader</a></li>
  133. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#svgdefs">svgDefs</a></li>
  134. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#svgpreserveaspectratio">svgPreserveAspectRatio</a></li>
  135. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#svgusefillattributes">svgUseFillAttributes</a></li>
  136. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#textlinestart">textLineStart</a></li>
  137. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#jsonasbooleans">jsonAsBooleans</a></li>
  138. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#fpdfmeasureunit">fpdfMeasureUnit</a></li>
  139. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#readeruseimagickifavailable">readerUseImagickIfAvailable</a></li>
  140. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#readergrayscale">readerGrayscale</a></li>
  141. <li class="toctree-l2"><a class="reference internal" href="../Usage/Configuration-settings.html#readerincreasecontrast">readerIncreaseContrast</a></li>
  142. </ul>
  143. </li>
  144. </ul>
  145. <p class="caption" role="heading"><span class="caption-text">Customizing output</span></p>
  146. <ul>
  147. <li class="toctree-l1"><a class="reference internal" href="../Customizing/Module-Values.html">Module values</a><ul>
  148. <li class="toctree-l2"><a class="reference internal" href="../Customizing/Module-Values.html#basics">Basics</a></li>
  149. <li class="toctree-l2"><a class="reference internal" href="../Customizing/Module-Values.html#assigning-values">Assigning values</a></li>
  150. <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>
  151. <li class="toctree-l3"><a class="reference internal" href="../Customizing/Module-Values.html#setting-module-values">Setting module values</a></li>
  152. <li class="toctree-l3"><a class="reference internal" href="../Customizing/Module-Values.html#using-the-module-values">Using the module values</a></li>
  153. </ul>
  154. </li>
  155. </ul>
  156. </li>
  157. </ul>
  158. <p class="caption" role="heading"><span class="caption-text">Built-In Output Modules</span></p>
  159. <ul>
  160. <li class="toctree-l1"><a class="reference internal" href="../Built-In-Output/QREps.html">QREps</a><ul>
  161. <li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QREps.html#example">Example</a></li>
  162. <li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QREps.html#additional-methods">Additional methods</a></li>
  163. <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>
  164. <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>
  165. </ul>
  166. </li>
  167. </ul>
  168. </li>
  169. <li class="toctree-l1"><a class="reference internal" href="../Built-In-Output/QRFpdf.html">QRFpdf</a><ul>
  170. <li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRFpdf.html#example">Example</a></li>
  171. <li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRFpdf.html#additional-methods">Additional methods</a></li>
  172. <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>
  173. <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>
  174. </ul>
  175. </li>
  176. </ul>
  177. </li>
  178. <li class="toctree-l1"><a class="reference internal" href="../Built-In-Output/QRGdImage.html">QRGdImage</a><ul>
  179. <li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRGdImage.html#example">Example</a></li>
  180. <li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRGdImage.html#additional-methods">Additional methods</a></li>
  181. <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>
  182. <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>
  183. </ul>
  184. </li>
  185. </ul>
  186. </li>
  187. <li class="toctree-l1"><a class="reference internal" href="../Built-In-Output/QRImagick.html">QRImagick</a><ul>
  188. <li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRImagick.html#example">Example</a></li>
  189. <li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRImagick.html#additional-methods">Additional methods</a></li>
  190. <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>
  191. <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>
  192. </ul>
  193. </li>
  194. </ul>
  195. </li>
  196. <li class="toctree-l1"><a class="reference internal" href="../Built-In-Output/QRMarkupHTML.html">QRMarkupHTML</a><ul>
  197. <li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRMarkupHTML.html#example">Example</a></li>
  198. <li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRMarkupHTML.html#additional-methods">Additional methods</a></li>
  199. <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>
  200. <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>
  201. </ul>
  202. </li>
  203. </ul>
  204. </li>
  205. <li class="toctree-l1"><a class="reference internal" href="../Built-In-Output/QRMarkupSVG.html">QRMarkupSVG</a><ul>
  206. <li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRMarkupSVG.html#example">Example</a></li>
  207. <li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRMarkupSVG.html#additional-methods">Additional methods</a></li>
  208. <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>
  209. <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>
  210. </ul>
  211. </li>
  212. </ul>
  213. </li>
  214. <li class="toctree-l1"><a class="reference internal" href="../Built-In-Output/QRString.html">QRString</a><ul>
  215. <li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRString.html#plain-text">Plain text</a></li>
  216. <li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRString.html#json">JSON</a></li>
  217. <li class="toctree-l2"><a class="reference internal" href="../Built-In-Output/QRString.html#additional-methods">Additional methods</a></li>
  218. <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>
  219. <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>
  220. </ul>
  221. </li>
  222. </ul>
  223. </li>
  224. </ul>
  225. <p class="caption" role="heading"><span class="caption-text">Appendix</span></p>
  226. <ul class="current">
  227. <li class="toctree-l1"><a class="reference internal" href="Contribute.html">How to contribute</a><ul>
  228. <li class="toctree-l2"><a class="reference internal" href="Contribute.html#questions-and-issues">Questions and issues</a></li>
  229. <li class="toctree-l2"><a class="reference internal" href="Contribute.html#bug-reports">Bug reports</a></li>
  230. <li class="toctree-l2"><a class="reference internal" href="Contribute.html#pull-requests-and-bug-fixes">Pull requests and bug fixes</a></li>
  231. <li class="toctree-l2"><a class="reference internal" href="Contribute.html#documentation">Documentation</a></li>
  232. </ul>
  233. </li>
  234. <li class="toctree-l1"><a class="reference internal" href="Terminology.html">Terminology</a><ul>
  235. <li class="toctree-l2"><a class="reference internal" href="Terminology.html#qr-code">QR Code</a></li>
  236. <li class="toctree-l2"><a class="reference internal" href="Terminology.html#matrix">Matrix</a><ul>
  237. <li class="toctree-l3"><a class="reference internal" href="Terminology.html#module">Module</a></li>
  238. <li class="toctree-l3"><a class="reference internal" href="Terminology.html#version">Version</a></li>
  239. </ul>
  240. </li>
  241. <li class="toctree-l2"><a class="reference internal" href="Terminology.html#function-patterns">Function Patterns</a><ul>
  242. <li class="toctree-l3"><a class="reference internal" href="Terminology.html#finder-pattern">Finder Pattern</a></li>
  243. <li class="toctree-l3"><a class="reference internal" href="Terminology.html#alignment-pattern">Alignment Pattern</a></li>
  244. <li class="toctree-l3"><a class="reference internal" href="Terminology.html#timing-pattern">Timing Pattern</a></li>
  245. <li class="toctree-l3"><a class="reference internal" href="Terminology.html#separators">Separators</a></li>
  246. <li class="toctree-l3"><a class="reference internal" href="Terminology.html#quiet-zone">Quiet Zone</a></li>
  247. </ul>
  248. </li>
  249. <li class="toctree-l2"><a class="reference internal" href="Terminology.html#encoding-region">Encoding Region</a><ul>
  250. <li class="toctree-l3"><a class="reference internal" href="Terminology.html#data">Data</a></li>
  251. <li class="toctree-l3"><a class="reference internal" href="Terminology.html#version-information">Version Information</a></li>
  252. <li class="toctree-l3"><a class="reference internal" href="Terminology.html#format-information">Format Information</a></li>
  253. <li class="toctree-l3"><a class="reference internal" href="Terminology.html#darkmodule">Darkmodule</a></li>
  254. </ul>
  255. </li>
  256. <li class="toctree-l2"><a class="reference internal" href="Terminology.html#mode">Mode</a><ul>
  257. <li class="toctree-l3"><a class="reference internal" href="Terminology.html#segment">Segment</a></li>
  258. <li class="toctree-l3"><a class="reference internal" href="Terminology.html#extended-channel-interpretation-eci">Extended Channel Interpretation (ECI)</a></li>
  259. <li class="toctree-l3"><a class="reference internal" href="Terminology.html#mixed-mode">Mixed Mode</a></li>
  260. </ul>
  261. </li>
  262. <li class="toctree-l2"><a class="reference internal" href="Terminology.html#ecc-error-correction-coding">ECC (Error Correction Coding)</a><ul>
  263. <li class="toctree-l3"><a class="reference internal" href="Terminology.html#ecc-level">ECC Level</a></li>
  264. <li class="toctree-l3"><a class="reference internal" href="Terminology.html#maximum-data-capacity">Maximum data capacity</a></li>
  265. </ul>
  266. </li>
  267. <li class="toctree-l2"><a class="reference internal" href="Terminology.html#data-masking">Data masking</a><ul>
  268. <li class="toctree-l3"><a class="reference internal" href="Terminology.html#evaluation">Evaluation</a></li>
  269. <li class="toctree-l3"><a class="reference internal" href="Terminology.html#mask-pattern">Mask pattern</a></li>
  270. </ul>
  271. </li>
  272. <li class="toctree-l2"><a class="reference internal" href="Terminology.html#reflectance">Reflectance</a></li>
  273. </ul>
  274. </li>
  275. <li class="toctree-l1 current"><a class="current reference internal" href="#">Popular content and URI schemes</a><ul>
  276. <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>
  277. <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>
  278. <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>
  279. <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>
  280. <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>
  281. <li class="toctree-l2"><a class="reference internal" href="#wireless-network-configuration">Wireless Network configuration</a></li>
  282. <li class="toctree-l2"><a class="reference internal" href="#contact-information-vcard">Contact information: vCard</a></li>
  283. <li class="toctree-l2"><a class="reference internal" href="#calendar-events-vcalendar-and-icalendar">Calendar Events: vCalendar and iCalendar</a></li>
  284. <li class="toctree-l2"><a class="reference internal" href="#see-also">See also</a></li>
  285. </ul>
  286. </li>
  287. <li class="toctree-l1"><a class="reference internal" href="License.html">License</a></li>
  288. </ul>
  289. </div>
  290. </div>
  291. </nav>
  292. <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
  293. <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
  294. <a href="../index.html">PHP-QRCode</a>
  295. </nav>
  296. <div class="wy-nav-content">
  297. <div class="rst-content">
  298. <div role="navigation" aria-label="Page navigation">
  299. <ul class="wy-breadcrumbs">
  300. <li><a href="../index.html" class="icon icon-home" aria-label="Home"></a></li>
  301. <li class="breadcrumb-item active">Popular content and URI schemes</li>
  302. <li class="wy-breadcrumbs-aside">
  303. <a href="https://github.com/chillerlan/php-qrcode/blob/main/docs/Appendix/URI-Content.md" class="fa fa-github"> Edit on GitHub</a>
  304. </li>
  305. </ul>
  306. <hr/>
  307. </div>
  308. <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
  309. <div itemprop="articleBody">
  310. <section id="popular-content-and-uri-schemes">
  311. <h1>Popular content and URI schemes<a class="headerlink" href="#popular-content-and-uri-schemes" title="Link to this heading"></a></h1>
  312. <p><strong>A brief summary of popular use cases for QR codes.</strong></p>
  313. <section id="url-https">
  314. <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>
  315. <p>Perhaps the most common use for QR Codes is to share URLs: simply encode the (URL-encoded) string value
  316. 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>
  317. <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>https://en.m.wikipedia.org/wiki/URL
  318. </pre></div>
  319. </div>
  320. <p>Some URLs may open a vendor specific application, for example the following URL may open the YouTube app:</p>
  321. <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>https://www.youtube.com/watch?v=dQw4w9WgXcQ
  322. </pre></div>
  323. </div>
  324. <p><strong>See also:</strong></p>
  325. <ul class="simple">
  326. <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>
  327. <li><p><a class="reference external" href="https://en.wikipedia.org/wiki/URL">URL (Wikipedia)</a></p></li>
  328. </ul>
  329. </section>
  330. <section id="e-mail-mailto">
  331. <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>
  332. <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.
  333. Parameters may be added as a <a class="reference external" href="https://en.wikipedia.org/wiki/Query_string">URL query string</a>:</p>
  334. <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>mailto:&lt;ADDR&gt;[,...?to=&lt;ADDR&gt;,...&amp;cc=&lt;ADDR&gt;,...&amp;bcc=&lt;ADDR&gt;,...&amp;subject=&lt;SUBJECT&gt;&amp;body=&lt;BODY&gt;]
  335. </pre></div>
  336. </div>
  337. <table class="docutils align-default">
  338. <thead>
  339. <tr class="row-odd"><th class="head"><p>Query parameter</p></th>
  340. <th class="head"><p>Description</p></th>
  341. </tr>
  342. </thead>
  343. <tbody>
  344. <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">to</span></code></p></td>
  345. <td><p>Alternative to add a recipient address: <code class="docutils literal notranslate"><span class="pre">mailto:&lt;ADDR&gt;?to=&lt;ADDR&gt;</span></code> is equivalent to<br/><code class="docutils literal notranslate"><span class="pre">mailto:&lt;ADDR&gt;,&lt;ADDR&gt;</span></code> and <code class="docutils literal notranslate"><span class="pre">mailto:?to=&lt;ADDR&gt;,&lt;ADDR&gt;</span></code></p></td>
  346. </tr>
  347. <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">subject</span></code></p></td>
  348. <td><p>Subject text: <code class="docutils literal notranslate"><span class="pre">mailto:&lt;ADDR&gt;?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>
  349. </tr>
  350. <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">body</span></code></p></td>
  351. <td><p>Message body: <code class="docutils literal notranslate"><span class="pre">mailto:&lt;ADDR&gt;?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>
  352. </tr>
  353. <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">cc</span></code></p></td>
  354. <td><p>“Carbon copy” to add one or more <code class="docutils literal notranslate"><span class="pre">cc</span></code> recipients</p></td>
  355. </tr>
  356. <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">bcc</span></code></p></td>
  357. <td><p>“Blind carbon copy” to add one or more <code class="docutils literal notranslate"><span class="pre">bcc</span></code> recipients</p></td>
  358. </tr>
  359. </tbody>
  360. </table>
  361. <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>
  362. <p><strong>Examples:</strong></p>
  363. <ul class="simple">
  364. <li><p><code class="docutils literal notranslate"><span class="pre">mailto:?to=addr1&#64;example.com</span></code></p></li>
  365. <li><p><code class="docutils literal notranslate"><span class="pre">mailto:addr1&#64;example.com,addr2&#64;example.com</span></code></p></li>
  366. <li><p><code class="docutils literal notranslate"><span class="pre">mailto:addr1&#64;example.com?cc=addr2&#64;example.com&amp;subject=Hello%21</span></code></p></li>
  367. </ul>
  368. <p><strong>See also:</strong></p>
  369. <ul class="simple">
  370. <li><p><a class="reference external" href="https://datatracker.ietf.org/doc/html/rfc6068">RFC 6068 - The ‘mailto’ URI Scheme</a></p></li>
  371. <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>
  372. <li><p><a class="reference external" href="https://en.wikipedia.org/wiki/Email">Email (Wikipedia)</a></p></li>
  373. <li><p><a class="reference external" href="https://en.wikipedia.org/wiki/Mailto">mailto (Wikipedia)</a></p></li>
  374. </ul>
  375. </section>
  376. <section id="phone-numbers-tel">
  377. <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>
  378. <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>
  379. <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>tel:+999-123-456-7890
  380. </pre></div>
  381. </div>
  382. <p>Generally, the most complete version of a telephone number possible sould be used, e.g. <code class="docutils literal notranslate"><span class="pre">+&lt;country code&gt;&lt;area code&gt;&lt;number&gt;</span></code>, spaces or hyphens may be used to separate blocks.
  383. 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>
  384. <p><strong>See also:</strong></p>
  385. <ul class="simple">
  386. <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>
  387. <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>
  388. <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>
  389. <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>
  390. </ul>
  391. </section>
  392. <section id="geo-coordinates-geo">
  393. <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>
  394. <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>
  395. <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>geo:&lt;latitude&gt;,&lt;longitude&gt;[,&lt;altitude&gt;;crs=&lt;crs&gt;;u=&lt;num&gt;]
  396. </pre></div>
  397. </div>
  398. <p>The default coordinate system is WGS-84, for which latitude and longitude should be supplied as decimal degrees, the optional altitude in meters.
  399. 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>
  400. <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>
  401. <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>geo:&lt;latitude&gt;,&lt;longitude&gt;?z=&lt;zoom&gt;&amp;q=&lt;search&gt;
  402. </pre></div>
  403. </div>
  404. <p><strong>Examples:</strong></p>
  405. <ul class="simple">
  406. <li><p><code class="docutils literal notranslate"><span class="pre">geo:47.620521,-122.349293</span></code></p></li>
  407. <li><p><code class="docutils literal notranslate"><span class="pre">geo:27.988056,86.925278,8848</span></code></p></li>
  408. <li><p><code class="docutils literal notranslate"><span class="pre">geo:11.373333,142.591667,-10920;u=10</span></code></p></li>
  409. <li><p><code class="docutils literal notranslate"><span class="pre">geo:37.786971,-122.399677;crs=Moon-2011;u=35</span></code></p></li>
  410. </ul>
  411. <p><strong>See also:</strong></p>
  412. <ul class="simple">
  413. <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>
  414. <li><p><a class="reference external" href="https://en.wikipedia.org/wiki/Geo_URI_scheme">geo URI scheme (Wikipedia)</a></p></li>
  415. <li><p><a class="reference external" href="https://en.wikipedia.org/wiki/Coordinate_reference_system">Coordinate reference system (Wikipedia)</a></p></li>
  416. </ul>
  417. </section>
  418. <section id="mobile-authenticators-otpauth">
  419. <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>
  420. <p>Mobile authenticators can be added with the <code class="docutils literal notranslate"><span class="pre">otpauth</span></code> scheme:</p>
  421. <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>otpauth://&lt;MODE&gt;/&lt;LABEL&gt;?secret=&lt;SECRET&gt;[&amp;issuer=&lt;ISSUER&gt;&amp;params...]
  422. </pre></div>
  423. </div>
  424. <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,
  425. however, it is strongy advised to add the <code class="docutils literal notranslate"><span class="pre">issuer</span></code> parameter to ease identification.
  426. 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>
  427. <table class="docutils align-default">
  428. <thead>
  429. <tr class="row-odd"><th class="head"><p>Path element</p></th>
  430. <th class="head"><p>Description</p></th>
  431. </tr>
  432. </thead>
  433. <tbody>
  434. <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">MODE</span></code></p></td>
  435. <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>
  436. </tr>
  437. <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">LABEL</span></code></p></td>
  438. <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">&lt;issuer&gt;:&lt;account&gt;</span></code></p></td>
  439. </tr>
  440. </tbody>
  441. </table>
  442. <table class="docutils align-default">
  443. <thead>
  444. <tr class="row-odd"><th class="head"><p>Query parameter</p></th>
  445. <th class="head"><p>Description</p></th>
  446. </tr>
  447. </thead>
  448. <tbody>
  449. <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">secret</span></code></p></td>
  450. <td><p>Secret key (required), a cryptographically 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>
  451. </tr>
  452. <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">issuer</span></code></p></td>
  453. <td><p>A string value indicating the provider or service this account is associated with.</p></td>
  454. </tr>
  455. <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">algorithm</span></code></p></td>
  456. <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>
  457. </tr>
  458. <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">digits</span></code></p></td>
  459. <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>
  460. </tr>
  461. <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">counter</span></code></p></td>
  462. <td><p>(<code class="docutils literal notranslate"><span class="pre">hotp</span></code> only, required) The initial counter value</p></td>
  463. </tr>
  464. <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">period</span></code></p></td>
  465. <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>
  466. </tr>
  467. </tbody>
  468. </table>
  469. <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>
  470. <p><strong>Examples:</strong></p>
  471. <ul class="simple">
  472. <li><p><code class="docutils literal notranslate"><span class="pre">otpauth://hotp/example.com:counter-based?secret=JBSWY3DPEHPK3PXP&amp;counter=42</span></code></p></li>
  473. <li><p><code class="docutils literal notranslate"><span class="pre">otpauth://hotp/counter-based?secret=JBSWY3DPEHPK3PXP&amp;issuer=example.com&amp;digits=6&amp;algorithm=SHA256&amp;counter=42</span></code></p></li>
  474. <li><p><code class="docutils literal notranslate"><span class="pre">otpauth://totp/example.com%3Atime-based?secret=JBSWY3DPEHPK3PXP</span></code></p></li>
  475. <li><p><code class="docutils literal notranslate"><span class="pre">otpauth://totp/time-based?secret=JBSWY3DPEHPK3PXP&amp;issuer=example.com&amp;digits=8&amp;algorithm=SHA512&amp;period=60</span></code></p></li>
  476. </ul>
  477. <p><strong>See also:</strong></p>
  478. <ul class="simple">
  479. <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>
  480. <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>
  481. <li><p><a class="reference external" href="https://en.wikipedia.org/wiki/Google_Authenticator">Google Authenticator (Wikipedia)</a></p></li>
  482. <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>
  483. <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>
  484. </ul>
  485. </section>
  486. <section id="wireless-network-configuration">
  487. <h2>Wireless Network configuration<a class="headerlink" href="#wireless-network-configuration" title="Link to this heading"></a></h2>
  488. <p>Wi-Fi configuration general syntax looks as follows:</p>
  489. <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>WIFI:S:&lt;SSID&gt;[;T:&lt;TYPE&gt;;P:&lt;PASSWORD&gt;;H:&lt;HIDDEN&gt;;];
  490. </pre></div>
  491. </div>
  492. <table class="docutils align-default">
  493. <thead>
  494. <tr class="row-odd"><th class="head"><p>Parameter</p></th>
  495. <th class="head"><p>Description</p></th>
  496. </tr>
  497. </thead>
  498. <tbody>
  499. <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">S</span></code><sup>*</sup></p></td>
  500. <td><p>Network SSID (required)</p></td>
  501. </tr>
  502. <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">T</span></code></p></td>
  503. <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>
  504. </tr>
  505. <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">P</span></code><sup>*</sup></p></td>
  506. <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>
  507. </tr>
  508. <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">H</span></code></p></td>
  509. <td><p>Set to <code class="docutils literal notranslate"><span class="pre">true</span></code> the network SSID is hidden.</p></td>
  510. </tr>
  511. </tbody>
  512. </table>
  513. <p><sup>*</sup> the value shall be enclosed in double quotes <code class="docutils literal notranslate"><span class="pre">&quot;</span></code> if it is an ASCII string that can be interpreted as hex, e.g. <code class="docutils literal notranslate"><span class="pre">&quot;ABCD1234&quot;</span></code>,
  514. special characters <code class="docutils literal notranslate"><span class="pre">\ ; , &quot; :</span></code> shall be escaped with a backslash <code class="docutils literal notranslate"><span class="pre">\</span></code>.</p>
  515. <p>Additional parameters for WPA2 and WPA3 (please note that these parameters may not be supported by some devices):</p>
  516. <table class="docutils align-default">
  517. <thead>
  518. <tr class="row-odd"><th class="head"><p>Parameter</p></th>
  519. <th class="head"><p>Description</p></th>
  520. </tr>
  521. </thead>
  522. <tbody>
  523. <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">A</span></code></p></td>
  524. <td><p>WPA2-EAP: Anonymous identity</p></td>
  525. </tr>
  526. <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">E</span></code></p></td>
  527. <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>
  528. </tr>
  529. <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">PH2</span></code></p></td>
  530. <td><p>WPA2-EAP: Phase 2 method, like <code class="docutils literal notranslate"><span class="pre">MSCHAPV2</span></code></p></td>
  531. </tr>
  532. <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">I</span></code></p></td>
  533. <td><p>WPA2-EAP, WPA3: UTF-8 encoded password identifier, present if<br/>the password has an SAE password identifier</p></td>
  534. </tr>
  535. <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">K</span></code></p></td>
  536. <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>
  537. </tr>
  538. <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">R</span></code></p></td>
  539. <td><p>WPA3: Transition Disable value</p></td>
  540. </tr>
  541. </tbody>
  542. </table>
  543. <p><strong>Examples:</strong></p>
  544. <ul class="simple">
  545. <li><p><code class="docutils literal notranslate"><span class="pre">WIFI:S:MyNetworkWihoutPassword;;</span></code></p></li>
  546. <li><p><code class="docutils literal notranslate"><span class="pre">WIFI:S:MyNetworkWihoutPassword;T:nopass;P:;;</span></code></p></li>
  547. <li><p><code class="docutils literal notranslate"><span class="pre">WIFI:S:MyHiddenWpaNetwork;T:WPA;P:&quot;PASSWORD123&quot;;H:true;;</span></code></p></li>
  548. <li><p><code class="docutils literal notranslate"><span class="pre">WIFI:S:MyHiddenWpa2Network;T:WPA2-EAP;P:&quot;PASSWORD123&quot;;H:true;;</span></code></p></li>
  549. </ul>
  550. <p><strong>See also:</strong></p>
  551. <ul class="simple">
  552. <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>
  553. <li><p><a class="reference external" href="https://en.wikipedia.org/wiki/Wi-Fi_Protected_Access">Wi-Fi Protected Access (Wikipedia)</a></p></li>
  554. </ul>
  555. </section>
  556. <section id="contact-information-vcard">
  557. <h2>Contact information: vCard<a class="headerlink" href="#contact-information-vcard" title="Link to this heading"></a></h2>
  558. <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>
  559. <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>BEGIN:VCARD
  560. VERSION:4.0
  561. N:&lt;NAME&gt;
  562. FN:&lt;FULL NAME&gt;
  563. GENDER:O
  564. EMAIL;type=(WORK|HOME):&lt;EMAIL&gt;
  565. TEL;type=(WORK|CELL|HOME):&lt;PHONE&gt;
  566. ADR;type=WORK:&lt;LINE1&gt;;&lt;LINE2&gt;;&lt;STREET&gt;;&lt;CITY&gt;;&lt;STATE&gt;;&lt;ZIP&gt;;&lt;COUNTRY&gt;
  567. TZ:&lt;CITY/COUNTRY&gt;
  568. URL:&lt;URL&gt;
  569. PHOTO;JPEG:&lt;LINK&gt;
  570. LOGO;JPEG:&lt;LINK&gt;
  571. NOTE:&lt;TEXT&gt;
  572. CATEGORIES:&lt;LIST&gt;
  573. END:VCARD
  574. </pre></div>
  575. </div>
  576. <p><strong>See also:</strong></p>
  577. <ul class="simple">
  578. <li><p><a class="reference external" href="https://datatracker.ietf.org/doc/html/rfc6350">RFC 6350 - vCard Format Specification</a></p></li>
  579. <li><p><a class="reference external" href="https://en.wikipedia.org/wiki/VCard">vCard (Wikipedia)</a></p></li>
  580. <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>
  581. <li><p><a class="reference external" href="https://github.com/sabre-io/vobject">vobject library for PHP (GitHub)</a></p></li>
  582. </ul>
  583. </section>
  584. <section id="calendar-events-vcalendar-and-icalendar">
  585. <h2>Calendar Events: vCalendar and iCalendar<a class="headerlink" href="#calendar-events-vcalendar-and-icalendar" title="Link to this heading"></a></h2>
  586. <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>
  587. <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>BEGIN:VCALENDAR
  588. VERSION:2.0
  589. PRODID:spatie/icalendar-generator
  590. NAME:Laracon online
  591. X-WR-CALNAME:Laracon online
  592. BEGIN:VEVENT
  593. UID:5ef5c3f64cb2c
  594. DTSTAMP;TZID=UTC:20200626T094630
  595. SUMMARY:Creating calendar feeds
  596. DTSTART:20190306T150000Z
  597. DTEND:20190306T160000Z
  598. DTSTAMP:20190419T135034Z
  599. END:VEVENT
  600. END:VCALENDAR
  601. </pre></div>
  602. </div>
  603. <p><strong>See also:</strong></p>
  604. <ul class="simple">
  605. <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>
  606. <li><p><a class="reference external" href="https://en.wikipedia.org/wiki/ICalendar">iCalendar (Wikipedia)</a></p></li>
  607. <li><p><a class="reference external" href="https://github.com/sabre-io/vobject">vobject library for PHP (GitHub)</a></p></li>
  608. <li><p><a class="reference external" href="https://github.com/spatie/icalendar-generator">iCalendar generator for PHP (GitHub)</a></p></li>
  609. </ul>
  610. </section>
  611. <section id="see-also">
  612. <h2>See also<a class="headerlink" href="#see-also" title="Link to this heading"></a></h2>
  613. <ul class="simple">
  614. <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>
  615. <li><p><a class="reference external" href="https://en.m.wikipedia.org/wiki/Uniform_Resource_Identifier">Uniform Resource Identifier (Wikipedia)</a></p></li>
  616. <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>
  617. <li><p><a class="reference external" href="https://github.com/zxing/zxing/wiki/Barcode-Contents">zxing: Barcode Contents (GitHub)</a></p></li>
  618. </ul>
  619. </section>
  620. </section>
  621. </div>
  622. </div>
  623. <footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
  624. <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>
  625. <a href="License.html" class="btn btn-neutral float-right" title="License" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
  626. </div>
  627. <hr/>
  628. <div role="contentinfo">
  629. <p>&#169; Copyright 2023, smiley.</p>
  630. </div>
  631. </footer>
  632. </div>
  633. </div>
  634. </section>
  635. </div>
  636. <script>
  637. jQuery(function () {
  638. SphinxRtdTheme.Navigation.enable(true);
  639. });
  640. </script>
  641. </body>
  642. </html>