{"id":322376,"date":"2019-11-15T09:40:37","date_gmt":"2019-11-15T09:40:37","guid":{"rendered":"https:\/\/www.knowband.com\/blog\/?p=322195\/"},"modified":"2024-06-05T13:12:46","modified_gmt":"2024-06-05T13:12:46","slug":"generare-codice-qr-usando-php","status":"publish","type":"post","link":"https:\/\/www.knowband.com\/blog\/it\/ecommerce-blog\/generare-codice-qr-usando-php\/","title":{"rendered":"Generate QR Code Using PHP"},"content":{"rendered":"<p><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">Il codice QR \u00e8 un tipo di codice a barre bidimensionale da cui viene abbreviato <\/span><\/span><strong><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">Quick Response Code<\/span><\/span><\/strong><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\"> . <\/span><span style=\"vertical-align: inherit;\">\u00c8 un&#8217;etichetta ottica che contiene informazioni sull&#8217;articolo. <\/span><span style=\"vertical-align: inherit;\">\u00c8 semplicemente allegato all&#8217;articolo. <\/span><span style=\"vertical-align: inherit;\">Contiene quadrati neri disposti in una griglia quadrata con sfondo bianco.<\/span><\/span><\/p>\n<p class=\"gt-block alignnone\"><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">In questo blog impareremo passo dopo passo come generare il codice QR utilizzando PHP. <\/span><span style=\"vertical-align: inherit;\">Con l&#8217;aiuto di un semplice script PHP puoi generare codice QR per testo, telefono, URL, e-mail e SMS.<\/span><\/span><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/Infographic-Main-QR-Code.png\"><br \/>\n<\/a><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/generare-il-codice-QR-per.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-823201 size-full\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/generare-il-codice-QR-per.png\" alt=\"generare il codice QR per - Knowband\" width=\"800\" height=\"793\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/generare-il-codice-QR-per.png 800w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/generare-il-codice-QR-per-150x150.png 150w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/generare-il-codice-QR-per-300x297.png 300w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/generare-il-codice-QR-per-768x761.png 768w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/generare-il-codice-QR-per-60x60.png 60w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/Infographic-Main-QR-Code-1.png\"><br \/>\n<\/a><\/p>\n<p><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">In questo progetto \u00e8 necessario creare due file:<\/span><\/span><\/p>\n<ol>\n<li><strong><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">qrcode.php<\/span><\/span><\/strong><\/li>\n<li><strong><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">index.php<\/span><\/span><\/strong><\/li>\n<\/ol>\n<p><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/In-this-Project-You-Need-To-Follow-These-Steps-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-823202 size-full\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/In-this-Project-You-Need-To-Follow-These-Steps-2.png\" alt=\"generare il codice QR utilizzando PHP passo dopo passo - Knowband\" width=\"700\" height=\"480\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/In-this-Project-You-Need-To-Follow-These-Steps-2.png 700w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/In-this-Project-You-Need-To-Follow-These-Steps-2-300x206.png 300w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/a><\/p>\n<h3><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">PASSO 1: Definisci la classe QrCode in qrcode.php:<\/span><\/span><\/h3>\n<p><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">1. Crea un QrCode di classe. <\/span><span style=\"vertical-align: inherit;\">In questa lezione definiremo l&#8217;URL per l&#8217;API GOOGLE CHART e le funzioni per generare il codice QR per testo, telefono, URL, e-mail e SMS.<\/span><\/span><\/p>\n<pre class=\"brush: actionscript3; gutter: true\">codice Qr della classe { }<\/pre>\n<h3><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">PASSO 2: Definisci l&#8217;URL dell&#8217;API del grafico di Google nella classe QrCode:<\/span><\/span><\/h3>\n<p><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">1. Creiamo variabili per memorizzare l&#8217;URL dell&#8217;API della carta di Google e i dati utilizzati per creare il codice QR.<\/span><\/span><\/p>\n<pre class=\"brush: actionscript3; gutter: true\">class QrCode { \/\/URL DELL&#039;API GOOGLE CHART private $apiUrl = &#039;https:\/\/chart.apis.google.com\/chart&#039;; \/\/ DATI PER CREARE IL CODICE QR private $data; }<\/pre>\n<h3><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">PASSO 3: Definisci le funzioni per generare codici QR di diversi tipi nella classe QrCode:<\/span><\/span><\/h3>\n<p><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">Abbiamo i seguenti tipi e funzioni per gli stessi in cui possiamo generare il codice QR:<\/span><\/span><\/p>\n<p><strong><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">1.URL<\/span><\/span><\/strong><\/p>\n<pre class=\"brush: actionscript3; gutter: true\">\/\/ Funzione utilizzata per generare il tipo URL del codice QR. URL della funzione pubblica($url = null) { $this-&gt;data = preg_match(&quot;#^https?\\:\\\/\\\/#&quot;, $url) ? $url: &quot;https:\/\/{$url}&quot;; }<\/pre>\n<p><strong><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">2 Testo<\/span><\/span><\/strong><\/p>\n<pre class=\"brush: actionscript3; gutter: true\">\/\/ Funzione utilizzata per generare il tipo TESTO del codice QR. funzione pubblica TEXT($testo) { $questo-&gt;dati = $testo; }<\/pre>\n<p><strong><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">3. E-MAIL<\/span><\/span><\/strong><\/p>\n<pre class=\"brush: actionscript3; gutter: true\">\/\/ Funzione che viene utilizzata per generare il tipo EMAIL del codice QR. funzione pubblica EMAIL($email = null, $oggetto = null, $messaggio = null) { $this-&gt;data = &quot;MATMSG:TO:{$email};SUB:{$oggetto};BODY:{$messaggio}; ;&quot;; }<\/pre>\n<p><strong><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">4.TELEFONO<\/span><\/span><\/strong><\/p>\n<pre class=\"brush: actionscript3; gutter: true\">\/\/ Funzione utilizzata per generare il tipo TELEFONO del codice QR. funzione pubblica TELEFONO($telefono) { $questo-&gt;dati = &quot;TEL:{$telefono}&quot;; }<\/pre>\n<p><strong><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">5.SMS<\/span><\/span><\/strong><\/p>\n<pre class=\"brush: actionscript3; gutter: true\">\/\/ Funzione utilizzata per generare il tipo SMS del codice QR. funzione pubblica SMS($telefono = null, $msg = null) { $this-&gt;data = &quot;SMSTO:{$telefono}:{$msg}&quot;; }<\/pre>\n<p><strong><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">6. CONTATTO<\/span><\/span><\/strong><\/p>\n<pre class=\"brush: actionscript3; gutter: true\">\/\/ Funzione utilizzata per generare il tipo CONTATTO del codice QR. funzione pubblica CONTATTO($nome = null, $indirizzo = null, $telefono = null, $email = null) { $questo-&gt;dati = &quot;MECARD:N:{$nome};ADR:{$indirizzo};TEL: {$telefono};EMAIL:{$email};;&quot;; }<\/pre>\n<h3><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">PASSO 4: Definisci le funzioni per salvare l&#8217;immagine del codice QR nella classe QrCode:<\/span><\/span><\/h3>\n<pre class=\"brush: actionscript3; gutter: true\">\/\/Funzione utilizzata per salvare il file immagine qrcode. funzione pubblica QRCODE($dimensione = 400, $nomefile = null) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $this-&gt;apiUrl); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, &quot;chs={$size}x{$size}&amp;cht=qr&amp;chl=&quot; .<\/pre>\n<h3><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">PASSO 5: Crea un nuovo file index.php.<\/span><\/span><\/h3>\n<p><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">1. In questo file chiamiamo la funzione per generare il codice QR di diversi tipi che abbiamo definito in qrcode.php.<\/span><\/span><\/p>\n<p><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">2. Per generare il <\/span><\/span><strong><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">Codice QR di testo<\/span><\/span><\/strong><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\"> devi chiamare la funzione TEXT nel tuo file index.php.<\/span><\/span><\/p>\n<pre class=\"brush: actionscript3; gutter: true\">&lt;?php \/\/ Include il file qrcode.php. includere &quot;qrcode.php&quot;; \/\/ Crea oggetti $qc = new QRCODE(); \/\/ Crea il codice di testo $qc-&gt;TEXT(&quot;Knowband&quot;); \/\/ Salva il codice QR $qc-&gt;QRCODE(400,&quot;Knowband_text.png&quot;); ?&gt;<\/pre>\n<p><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">3. Per generare il codice QR dell&#8217;URL devi chiamare la funzione URL nel tuo file index.php.<\/span><\/span><\/p>\n<pre class=\"brush: actionscript3; gutter: true\">&lt;?php \/\/ Include il file qrcode.php. includere &quot;qrcode.php&quot;; \/\/ Crea oggetti $qc = new QRCODE(); \/\/ Crea il codice URL $qc-&gt;URL(&quot;Knowband.com&quot;); \/\/ Salva il codice QR $qc-&gt;QRCODE(400,&quot;Knowband_url.png&quot;); ?&gt;<\/pre>\n<p><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">4. Per generare il codice QR EMAIL devi chiamare la funzione EMAIL nel tuo file index.php.<\/span><\/span><\/p>\n<pre class=\"brush: actionscript3; gutter: true\">&lt;?php \/\/ Include il file qrcode.php. includere &quot;qrcode.php&quot;; \/\/ Crea oggetti $qc = new QRCODE(); \/\/ Crea il codice EMAIL $qc-&gt;EMAIL(&quot;Knowband@test.com&quot;,&quot;Oggetto&quot;,&quot;Message&quot;); \/\/ Salva il codice QR $qc-&gt;QRCODE(400,&quot;Knowband_email.png&quot;); ?&gt;<\/pre>\n<p><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">5. Per generare il codice QR TELEFONO devi chiamare la funzione TELEFONO nel tuo file index.php.<\/span><\/span><\/p>\n<pre class=\"brush: actionscript3; gutter: true\">&lt;?php \/\/ Include il file qrcode.php. includere &quot;qrcode.php&quot;; \/\/ Crea oggetti $qc = new QRCODE(); \/\/ Crea il codice TELEFONO $qc-&gt;TELEFONO(&quot;1234567890&quot;); \/\/ Salva il codice QR $qc-&gt;QRCODE(400,&quot;Knowband_phone.png&quot;); ?&gt;<\/pre>\n<p><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">6. Per generare il codice QR SMS \u00e8 necessario chiamare la funzione SMS nel file index.php.<\/span><\/span><\/p>\n<pre class=\"brush: actionscript3; gutter: true\">&lt;?php \/\/ Include il file qrcode.php. includere &quot;qrcode.php&quot;; \/\/ Crea oggetti $qc = new QRCODE(); \/\/ Crea il codice SMS $qc-&gt;SMS(&quot;1234567890&quot;); \/\/ Salva il codice QR $qc-&gt;QRCODE(400,&quot;Knowband_sms.png&quot;); ?&gt;<\/pre>\n<p><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">7. Per generare il codice QR CONTATTO \u00e8 necessario chiamare la funzione CONTATTO nel file index.php.<\/span><\/span><\/p>\n<pre class=\"brush: actionscript3; gutter: true\">&lt;?php \/\/ Include il file qrcode.php. includere &quot;qrcode.php&quot;; \/\/ Crea oggetti $qc = new QRCODE(); \/\/ Crea il codice CONTATTO $qc-&gt;CONTATTO(&quot;knowband&quot;,&quot;Indirizzo&quot;,&quot;1234567890&quot;,&quot;knowband@test.com&quot;); \/\/ Salva il codice QR $qc-&gt;QRCODE(400,&quot;Knowband_contact.png&quot;); ?&gt;<\/pre>\n<h3><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">PASSO 6: esegui il file di script (index.php) nel tuo ambiente:<\/span><\/span><\/h3>\n<p><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">Se tutto va bene, il nome del file verr\u00e0 chiamato &#8220;knowband_text.png&#8221; e altro che desideri scaricare e salvare sul tuo computer.<\/span><\/span><\/p>\n<p><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">NOTA: puoi generare solo 1 tipo di codice QR alla volta.<\/span><\/span><\/p>\n<p><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/Downloads.zip\" target=\"_blank\"><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">CLICCA QUI<\/span><\/span><\/a><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\"> per scaricare il codice completo.<\/span><\/span><\/p>\n<p><span style=\"font-weight: 400;\">Con oltre 13 anni di eccellenza nella tecnologia dell&#8217;informazione, forniamo tecnologie di sviluppo web e app su vari framework. Puoi anche esplorare un&#8217;ampia gamma di estensioni eCommerce pronte all&#8217;uso Prestashop, Opencart, WooCommerce, Shopify e Magento 2.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In caso di domande\/suggerimenti, \u00e8 possibile contattare il nostro portale di supporto tecnico al nostro indirizzo e-mail <\/span><a href=\"mailto:support@knowband.com\"><span style=\"font-weight: 400;\">support@knowband.com<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p>Dai un&#8217;occhiata al nostro modulo bestseller <a href=\"https:\/\/www.knowband.com\/it\/prestashop-one-click-checkout\">Supercheckout di una pagina per Prestashop<\/a> qui:<\/p>\n<div class=\"module_in_content_container\">\n<div class=\"module_content\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"module_image\" src=\"https:\/\/www.knowband.com\/image\/cache\/data\/Plugin%20Logo\/one-page-checkout-740x740.png\" alt=\"Knowband - Prestashop One Page Checkout Addon\" width=\"100\" height=\"100\" \/><\/p>\n<div class=\"module_content_part\">\n<h3 class=\"title\">Componente aggiuntivo Prestashop One Page Checkout<\/h3>\n<p class=\"module_content_text\">Prestashop One Page Checkout di Knowband semplifica il processo di pagamento, migliorando l&#8217;esperienza dell&#8217;utente e aumentando le conversioni per il tuo negozio online.<\/p>\n<p><a class=\"link_2_to_module\" style=\"display: inline-block; color: #f36!important;\" href=\"https:\/\/www.knowband.com\/it\/prestashop-one-page-supercheckout\" target=\"_blank\" rel=\"noopener\"><span class=\"read-more\">Visita qui<\/span><\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n<style>\n.module_in_content_container { display: flex; flex-direction: column; padding: 20px; border: 1px solid #ccc; font-size: 16px; line-height: 26px; box-shadow: 0 3px 0 #ebebeb; -webkit-box-shadow: 0 3px 0 #ebebeb; position: relative; margin-bottom: 1.5em; } .module_in_content_container>a { position: absolute; left: 0; top: 0; width: 100%; height: 100%; } .module_content { display: flex; align-items: flex-start; } .module_content img { max-width: 100px; margin-right: 20px; } .module_content_part p.module_content_text { margin-bottom: 10px; margin-top: 0; font-size: 18px; color: #000; } .module_content h3 { font-size: 24px; font-weight: 700; line-height: 1.5em; padding-left: 0; padding-top: 0; margin: 0; } .read-more { font-size: 18px; font-weight: 700; line-height: 1.5em; position: relative; display: inline-block; text-transform: uppercase; color: #f36; } .read-more:after { position: absolute; content: ''; width: 1.5em; height: 1.5em; top: -1px; right: -1.5em; background: url(https:\/\/knowband.com\/mobile-app\/wp-content\/uploads\/images\/readmore-arrow.svg) no-repeat center \/ .75em; transition: all .2s; } .read-more:focus, .read-more:hover { text-decoration: none; cursor: pointer; } .read-more:hover:after { right: -2em; transition: all .2s; } @media (max-width: 600px) { .module_content { flex-direction: column; align-items: center; text-align: center; } .module_content img { margin: 0 auto 20px auto; max-width: 100%; } .module_content .title { flex-basis: auto; margin-top: 20px; } .module_content_part p.module_content_text { font-size: 16px; line-height: 24px; } .read-more { font-size: 16px;}}<\/style>\n<p><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/1yLcXToR6-g\" width=\"660\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Il codice QR \u00e8 un tipo di codice a barre bidimensionale da cui viene abbreviato Quick Response Code . \u00c8 un&#8217;etichetta ottica che contiene informazioni sull&#8217;articolo. \u00c8 semplicemente allegato all&#8217;articolo. Contiene quadrati neri disposti in una griglia quadrata con sfondo bianco. In questo blog impareremo passo dopo passo come generare il codice QR utilizzando PHP. [&hellip;]<\/p>\n","protected":false},"author":29,"featured_media":823199,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kbui_enabled":"","footnotes":""},"categories":[4,3244],"tags":[28214,34171,18477,28213,7509,18476,28215,34172,34173,18478],"class_list":["post-322376","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ecommerce-blog","category-suggerimenti","tag-genera-codice-qr-usando-php","tag-genera-codice-qr-utilizzando-php","tag-generate-qr-code-using-php","tag-generazione-di-codici-qr","tag-php","tag-qr-code-generation","tag-suggerimenti-per-generare-codice-qr","tag-suggerimenti-per-generare-il-codice-qr","tag-supercheckout-di-una-pagina-per-prestashop","tag-tips-to-generate-qr-code"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Generate QR Code Using PHP - Knowband Blog | Ecommerce Modules<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.knowband.com\/blog\/it\/ecommerce-blog\/generare-codice-qr-usando-php\/\" \/>\n<meta property=\"og:locale\" content=\"it_IT\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Generate QR Code Using PHP - Knowband Blog | Ecommerce Modules\" \/>\n<meta property=\"og:description\" content=\"Il codice QR \u00e8 un tipo di codice a barre bidimensionale da cui viene abbreviato Quick Response Code . \u00c8 un&#8217;etichetta ottica che contiene informazioni sull&#8217;articolo. \u00c8 semplicemente allegato all&#8217;articolo. Contiene quadrati neri disposti in una griglia quadrata con sfondo bianco. In questo blog impareremo passo dopo passo come generare il codice QR utilizzando PHP. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.knowband.com\/blog\/it\/ecommerce-blog\/generare-codice-qr-usando-php\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowband Blog | Ecommerce Modules\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Knowband\" \/>\n<meta property=\"article:published_time\" content=\"2019-11-15T09:40:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-05T13:12:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/Guida-Knowband-per-generare-codici-QR-in-PHP.png\" \/>\n\t<meta property=\"og:image:width\" content=\"760\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Varnit Singhal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@KnowbandPlugin\" \/>\n<meta name=\"twitter:site\" content=\"@KnowbandPlugin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Varnit Singhal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/it\\\/ecommerce-blog\\\/generare-codice-qr-usando-php\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/it\\\/ecommerce-blog\\\/generare-codice-qr-usando-php\\\/\"},\"author\":{\"name\":\"Varnit Singhal\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/person\\\/a884cf42a4b8d34e9826384c5da29e3e\"},\"headline\":\"Generate QR Code Using PHP\",\"datePublished\":\"2019-11-15T09:40:37+00:00\",\"dateModified\":\"2024-06-05T13:12:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/it\\\/ecommerce-blog\\\/generare-codice-qr-usando-php\\\/\"},\"wordCount\":491,\"publisher\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/it\\\/ecommerce-blog\\\/generare-codice-qr-usando-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/Guida-Knowband-per-generare-codici-QR-in-PHP.png\",\"keywords\":[\"Genera codice QR usando PHP\",\"Genera codice QR utilizzando PHP\",\"Generate QR Code Using PHP\",\"Generazione di codici QR\",\"PHP\",\"QR Code generation\",\"suggerimenti per generare codice QR\",\"suggerimenti per generare il codice QR\",\"supercheckout di una pagina per prestashop\",\"tips to generate QR code\"],\"articleSection\":[\"Ecommerce\",\"Suggerimenti\"],\"inLanguage\":\"it-IT\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/it\\\/ecommerce-blog\\\/generare-codice-qr-usando-php\\\/\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/it\\\/ecommerce-blog\\\/generare-codice-qr-usando-php\\\/\",\"name\":\"Generate QR Code Using PHP - Knowband Blog | Ecommerce Modules\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/it\\\/ecommerce-blog\\\/generare-codice-qr-usando-php\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/it\\\/ecommerce-blog\\\/generare-codice-qr-usando-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/Guida-Knowband-per-generare-codici-QR-in-PHP.png\",\"datePublished\":\"2019-11-15T09:40:37+00:00\",\"dateModified\":\"2024-06-05T13:12:46+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/it\\\/ecommerce-blog\\\/generare-codice-qr-usando-php\\\/#breadcrumb\"},\"inLanguage\":\"it-IT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.knowband.com\\\/blog\\\/it\\\/ecommerce-blog\\\/generare-codice-qr-usando-php\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"it-IT\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/it\\\/ecommerce-blog\\\/generare-codice-qr-usando-php\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/Guida-Knowband-per-generare-codici-QR-in-PHP.png\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/Guida-Knowband-per-generare-codici-QR-in-PHP.png\",\"width\":760,\"height\":300,\"caption\":\"Guida Knowband per generare codici QR in PHP\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/it\\\/ecommerce-blog\\\/generare-codice-qr-usando-php\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Generate QR Code Using PHP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#website\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/\",\"name\":\"Knowband Blog | Ecommerce Modules\",\"description\":\"Magento, Prestashop, Opencart, Shopify\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"it-IT\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\",\"name\":\"Knowband Blog | Ecommerce Modules\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"it-IT\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/09\\\/cropped-knowband_logo-v2.png\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/09\\\/cropped-knowband_logo-v2.png\",\"width\":153,\"height\":61,\"caption\":\"Knowband Blog | Ecommerce Modules\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/Knowband\",\"https:\\\/\\\/x.com\\\/KnowbandPlugin\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/person\\\/a884cf42a4b8d34e9826384c5da29e3e\",\"name\":\"Varnit Singhal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"it-IT\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/2019-11-06-150x150.jpg\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/2019-11-06-150x150.jpg\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/2019-11-06-150x150.jpg\",\"caption\":\"Varnit Singhal\"},\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/it\\\/author\\\/vsinghal\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Generate QR Code Using PHP - Knowband Blog | Ecommerce Modules","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.knowband.com\/blog\/it\/ecommerce-blog\/generare-codice-qr-usando-php\/","og_locale":"it_IT","og_type":"article","og_title":"Generate QR Code Using PHP - Knowband Blog | Ecommerce Modules","og_description":"Il codice QR \u00e8 un tipo di codice a barre bidimensionale da cui viene abbreviato Quick Response Code . \u00c8 un&#8217;etichetta ottica che contiene informazioni sull&#8217;articolo. \u00c8 semplicemente allegato all&#8217;articolo. Contiene quadrati neri disposti in una griglia quadrata con sfondo bianco. In questo blog impareremo passo dopo passo come generare il codice QR utilizzando PHP. [&hellip;]","og_url":"https:\/\/www.knowband.com\/blog\/it\/ecommerce-blog\/generare-codice-qr-usando-php\/","og_site_name":"Knowband Blog | Ecommerce Modules","article_publisher":"https:\/\/www.facebook.com\/Knowband","article_published_time":"2019-11-15T09:40:37+00:00","article_modified_time":"2024-06-05T13:12:46+00:00","og_image":[{"width":760,"height":300,"url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/Guida-Knowband-per-generare-codici-QR-in-PHP.png","type":"image\/png"}],"author":"Varnit Singhal","twitter_card":"summary_large_image","twitter_creator":"@KnowbandPlugin","twitter_site":"@KnowbandPlugin","twitter_misc":{"Written by":"Varnit Singhal","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.knowband.com\/blog\/it\/ecommerce-blog\/generare-codice-qr-usando-php\/#article","isPartOf":{"@id":"https:\/\/www.knowband.com\/blog\/it\/ecommerce-blog\/generare-codice-qr-usando-php\/"},"author":{"name":"Varnit Singhal","@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/person\/a884cf42a4b8d34e9826384c5da29e3e"},"headline":"Generate QR Code Using PHP","datePublished":"2019-11-15T09:40:37+00:00","dateModified":"2024-06-05T13:12:46+00:00","mainEntityOfPage":{"@id":"https:\/\/www.knowband.com\/blog\/it\/ecommerce-blog\/generare-codice-qr-usando-php\/"},"wordCount":491,"publisher":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/it\/ecommerce-blog\/generare-codice-qr-usando-php\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/Guida-Knowband-per-generare-codici-QR-in-PHP.png","keywords":["Genera codice QR usando PHP","Genera codice QR utilizzando PHP","Generate QR Code Using PHP","Generazione di codici QR","PHP","QR Code generation","suggerimenti per generare codice QR","suggerimenti per generare il codice QR","supercheckout di una pagina per prestashop","tips to generate QR code"],"articleSection":["Ecommerce","Suggerimenti"],"inLanguage":"it-IT"},{"@type":"WebPage","@id":"https:\/\/www.knowband.com\/blog\/it\/ecommerce-blog\/generare-codice-qr-usando-php\/","url":"https:\/\/www.knowband.com\/blog\/it\/ecommerce-blog\/generare-codice-qr-usando-php\/","name":"Generate QR Code Using PHP - Knowband Blog | Ecommerce Modules","isPartOf":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.knowband.com\/blog\/it\/ecommerce-blog\/generare-codice-qr-usando-php\/#primaryimage"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/it\/ecommerce-blog\/generare-codice-qr-usando-php\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/Guida-Knowband-per-generare-codici-QR-in-PHP.png","datePublished":"2019-11-15T09:40:37+00:00","dateModified":"2024-06-05T13:12:46+00:00","breadcrumb":{"@id":"https:\/\/www.knowband.com\/blog\/it\/ecommerce-blog\/generare-codice-qr-usando-php\/#breadcrumb"},"inLanguage":"it-IT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.knowband.com\/blog\/it\/ecommerce-blog\/generare-codice-qr-usando-php\/"]}]},{"@type":"ImageObject","inLanguage":"it-IT","@id":"https:\/\/www.knowband.com\/blog\/it\/ecommerce-blog\/generare-codice-qr-usando-php\/#primaryimage","url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/Guida-Knowband-per-generare-codici-QR-in-PHP.png","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/Guida-Knowband-per-generare-codici-QR-in-PHP.png","width":760,"height":300,"caption":"Guida Knowband per generare codici QR in PHP"},{"@type":"BreadcrumbList","@id":"https:\/\/www.knowband.com\/blog\/it\/ecommerce-blog\/generare-codice-qr-usando-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.knowband.com\/blog\/fr\/"},{"@type":"ListItem","position":2,"name":"Generate QR Code Using PHP"}]},{"@type":"WebSite","@id":"https:\/\/www.knowband.com\/blog\/fr\/#website","url":"https:\/\/www.knowband.com\/blog\/fr\/","name":"Knowband Blog | Ecommerce Modules","description":"Magento, Prestashop, Opencart, Shopify","publisher":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.knowband.com\/blog\/fr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"it-IT"},{"@type":"Organization","@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization","name":"Knowband Blog | Ecommerce Modules","url":"https:\/\/www.knowband.com\/blog\/fr\/","logo":{"@type":"ImageObject","inLanguage":"it-IT","@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/logo\/image\/","url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2016\/09\/cropped-knowband_logo-v2.png","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2016\/09\/cropped-knowband_logo-v2.png","width":153,"height":61,"caption":"Knowband Blog | Ecommerce Modules"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Knowband","https:\/\/x.com\/KnowbandPlugin"]},{"@type":"Person","@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/person\/a884cf42a4b8d34e9826384c5da29e3e","name":"Varnit Singhal","image":{"@type":"ImageObject","inLanguage":"it-IT","@id":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/2019-11-06-150x150.jpg","url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/2019-11-06-150x150.jpg","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/2019-11-06-150x150.jpg","caption":"Varnit Singhal"},"url":"https:\/\/www.knowband.com\/blog\/it\/author\/vsinghal\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.knowband.com\/blog\/it\/wp-json\/wp\/v2\/posts\/322376","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.knowband.com\/blog\/it\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knowband.com\/blog\/it\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/it\/wp-json\/wp\/v2\/users\/29"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/it\/wp-json\/wp\/v2\/comments?post=322376"}],"version-history":[{"count":4,"href":"https:\/\/www.knowband.com\/blog\/it\/wp-json\/wp\/v2\/posts\/322376\/revisions"}],"predecessor-version":[{"id":825073,"href":"https:\/\/www.knowband.com\/blog\/it\/wp-json\/wp\/v2\/posts\/322376\/revisions\/825073"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/it\/wp-json\/wp\/v2\/media\/823199"}],"wp:attachment":[{"href":"https:\/\/www.knowband.com\/blog\/it\/wp-json\/wp\/v2\/media?parent=322376"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/it\/wp-json\/wp\/v2\/categories?post=322376"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/it\/wp-json\/wp\/v2\/tags?post=322376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}