{"id":322356,"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:06","modified_gmt":"2024-06-05T13:12:06","slug":"generer-qr-code-en-utilisant-php","status":"publish","type":"post","link":"https:\/\/www.knowband.com\/blog\/fr\/ecommerce-blog\/generer-qr-code-en-utilisant-php\/","title":{"rendered":"Generate QR Code Using PHP"},"content":{"rendered":"<p><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">Le code QR est un type de code-barres bidimensionnel qui est abr\u00e9g\u00e9 en <\/span><\/span><strong><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">code de r\u00e9ponse rapide<\/span><\/span><\/strong><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\"> . <\/span><span style=\"vertical-align: inherit;\">Il s&#8217;agit d&#8217;une \u00e9tiquette optique qui contient des informations sur l&#8217;article. <\/span><span style=\"vertical-align: inherit;\">Il est simplement attach\u00e9 \u00e0 l&#8217;article. <\/span><span style=\"vertical-align: inherit;\">Il contient des carr\u00e9s noirs dispos\u00e9s dans une grille de carr\u00e9s sur fond blanc.<\/span><\/span><\/p>\n<p class=\"gt-block alignnone\"><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">Dans ce blog, nous apprendrons \u00e9tape par \u00e9tape comment g\u00e9n\u00e9rer du code QR en utilisant PHP. <\/span><span style=\"vertical-align: inherit;\">\u00c0 l&#8217;aide d&#8217;un simple script PHP, vous pouvez g\u00e9n\u00e9rer un code QR pour le texte, le t\u00e9l\u00e9phone, l&#8217;URL, l&#8217;e-mail et les 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\/g\u00e9n\u00e9rer-un-code-QR-pour.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-823189 size-full\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/g\u00e9n\u00e9rer-un-code-QR-pour.png\" alt=\"g\u00e9n\u00e9rer un code QR pour - Knowband\" width=\"800\" height=\"793\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/g\u00e9n\u00e9rer-un-code-QR-pour.png 800w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/g\u00e9n\u00e9rer-un-code-QR-pour-150x150.png 150w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/g\u00e9n\u00e9rer-un-code-QR-pour-300x297.png 300w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/g\u00e9n\u00e9rer-un-code-QR-pour-768x761.png 768w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/g\u00e9n\u00e9rer-un-code-QR-pour-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;\">Dans ce projet, vous devez cr\u00e9er deux fichiers\u00a0:<\/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.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-823188 size-full\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/In-this-Project-You-Need-To-Follow-These-Steps.png\" alt=\"g\u00e9n\u00e9rer du code QR en utilisant PHP \u00e9tape par \u00e9tape - 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.png 700w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/In-this-Project-You-Need-To-Follow-These-Steps-300x206.png 300w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/a><\/p>\n<h3><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">\u00c9TAPE 1\u00a0:\u00a0D\u00e9finissez la classe QrCode dans qrcode.php\u00a0:<\/span><\/span><\/h3>\n<p><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">1. Cr\u00e9ez une classe QrCode. <\/span><span style=\"vertical-align: inherit;\">Dans ce cours, nous d\u00e9finirons l&#8217;URL de l&#8217;API GOOGLE CHART et les fonctions permettant de g\u00e9n\u00e9rer le code QR pour le texte, le t\u00e9l\u00e9phone, l&#8217;URL, l&#8217;e-mail et les SMS.<\/span><\/span><\/p>\n<pre class=\"brush: actionscript3; gutter: true\">classe QrCode { }<\/pre>\n<h3><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">\u00c9TAPE 2\u00a0:\u00a0D\u00e9finissez l&#8217;URL de l&#8217;API du graphique Google dans la classe QrCode\u00a0:<\/span><\/span><\/h3>\n<p><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">1. Nous cr\u00e9ons des variables pour stocker l&#8217;URL de l&#8217;API Google Chart et les donn\u00e9es utilis\u00e9es pour cr\u00e9er le code QR.<\/span><\/span><\/p>\n<pre class=\"brush: actionscript3; gutter: true\">class QrCode { \/\/URL DE L&#039;API GOOGLE CHART private $apiUrl = &#039;https:\/\/chart.apis.google.com\/chart&#039;; \/\/ DONN\u00c9ES POUR CR\u00c9ER UN QR CODE private $data; }<\/pre>\n<h3><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">\u00c9TAPE 3\u00a0:\u00a0D\u00e9finissez les fonctions pour g\u00e9n\u00e9rer du code QR de diff\u00e9rents types dans la classe QrCode\u00a0:<\/span><\/span><\/h3>\n<p><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">Nous disposons des types et fonctions suivants pour lesquels nous pouvons g\u00e9n\u00e9rer le QR Code\u00a0:<\/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\">\/\/ Fonction qui permet de g\u00e9n\u00e9rer le type d&#039;URL du QR Code. public function URL($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.Texte<\/span><\/span><\/strong><\/p>\n<pre class=\"brush: actionscript3; gutter: true\">\/\/ Fonction qui est utilis\u00e9e pour g\u00e9n\u00e9rer le type TEXTE du QR Code. public function TEXTE($text) { $this-&gt;data = $text; }<\/pre>\n<p><strong><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">3. COURRIEL<\/span><\/span><\/strong><\/p>\n<pre class=\"brush: actionscript3; gutter: true\">\/\/ Fonction qui permet de g\u00e9n\u00e9rer le type EMAIL de QR Code. public function EMAIL($email = null, $subject = null, $message = null) { $this-&gt;data = &quot;MATMSG:TO:{$email};SUB:{$subject};BODY:{$message}; ;&quot;; }<\/pre>\n<p><strong><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">4.T\u00c9L\u00c9PHONE<\/span><\/span><\/strong><\/p>\n<pre class=\"brush: actionscript3; gutter: true\">\/\/ Fonction qui est utilis\u00e9e pour g\u00e9n\u00e9rer le type PHONE du QR Code. fonction publique T\u00c9L\u00c9PHONE($phone) { $this-&gt;data = &quot;TEL:{$phone}&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\">\/\/ Fonction qui permet de g\u00e9n\u00e9rer le type SMS du QR Code. public function SMS($phone = null, $msg = null) { $this-&gt;data = &quot;SMSTO:{$phone}:{$msg}&quot;; }<\/pre>\n<p><strong><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">6. CONTACT<\/span><\/span><\/strong><\/p>\n<pre class=\"brush: actionscript3; gutter: true\">\/\/ Fonction qui est utilis\u00e9e pour g\u00e9n\u00e9rer le type CONTACT du QR Code. fonction publique CONTACT($name = null, $address = null, $phone = null, $email = null) { $this-&gt;data = &quot;MECARD:N:{$name};ADR:{$address};TEL\u00a0: {$t\u00e9l\u00e9phone};EMAIL\u00a0:{$email};;&quot;; }<\/pre>\n<h3><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">\u00c9TAPE 4\u00a0:\u00a0D\u00e9finissez les fonctions pour enregistrer l&#8217;image du code QR dans la classe QrCode\u00a0:<\/span><\/span><\/h3>\n<pre class=\"brush: actionscript3; gutter: true\">\/\/Fonction utilis\u00e9e pour enregistrer le fichier image qrcode. public function QRCODE($size = 400, $filename = null) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $this-&gt;apiUrl); curl_setopt($ch, CURLOPT_POST, vrai); 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;\">\u00c9TAPE 5 : Cr\u00e9ez un nouveau fichier index.php.<\/span><\/span><\/h3>\n<p><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">1. Dans ce fichier nous appelons la fonction pour g\u00e9n\u00e9rer le QR Code de diff\u00e9rents types que nous avons d\u00e9fini dans qrcode.php.<\/span><\/span><\/p>\n<p><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">2. Pour g\u00e9n\u00e9rer le <\/span><\/span><strong><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">Code QR textuel<\/span><\/span><\/strong><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\"> vous devez appeler la fonction TEXT dans votre fichier index.php.<\/span><\/span><\/p>\n<pre class=\"brush: actionscript3; gutter: true\">&lt;?php \/\/ Inclut le fichier qrcode.php. inclure &quot;qrcode.php&quot;\u00a0; \/\/ Cr\u00e9e des objets $qc = new QRCODE(); \/\/ Cr\u00e9er un code texte $qc-&gt;TEXT(&quot;Knowband&quot;); \/\/ Enregistrer le code 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. Pour g\u00e9n\u00e9rer le code QR URL, vous devez appeler la fonction URL dans votre fichier index.php.<\/span><\/span><\/p>\n<pre class=\"brush: actionscript3; gutter: true\">&lt;?php \/\/ Inclut le fichier qrcode.php. inclure &quot;qrcode.php&quot;\u00a0; \/\/ Cr\u00e9e des objets $qc = new QRCODE(); \/\/ Cr\u00e9er un code URL $qc-&gt;URL(&quot;Knowband.com&quot;); \/\/ Enregistrer le code 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. Pour g\u00e9n\u00e9rer le code QR EMAIL, vous devez appeler la fonction EMAIL dans votre fichier index.php.<\/span><\/span><\/p>\n<pre class=\"brush: actionscript3; gutter: true\">&lt;?php \/\/ Inclut le fichier qrcode.php. inclure &quot;qrcode.php&quot;\u00a0; \/\/ Cr\u00e9e des objets $qc = new QRCODE(); \/\/ Cr\u00e9er un code EMAIL $qc-&gt;EMAIL(&quot;Knowband@test.com&quot;,&quot;Sujet&quot;,&quot;Message&quot;); \/\/ Enregistrer le code 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. Pour g\u00e9n\u00e9rer le code QR PHONE, vous devez appeler la fonction PHONE dans votre fichier index.php.<\/span><\/span><\/p>\n<pre class=\"brush: actionscript3; gutter: true\">&lt;?php \/\/ Inclut le fichier qrcode.php. inclure &quot;qrcode.php&quot;\u00a0; \/\/ Cr\u00e9e des objets $qc = new QRCODE(); \/\/ Cr\u00e9er le code T\u00c9L\u00c9PHONE $qc-&gt;T\u00c9L\u00c9PHONE(&quot;1234567890&quot;); \/\/ Enregistrer le code 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. Pour g\u00e9n\u00e9rer le code QR SMS, vous devez appeler la fonction SMS dans votre fichier index.php.<\/span><\/span><\/p>\n<pre class=\"brush: actionscript3; gutter: true\">&lt;?php \/\/ Inclut le fichier qrcode.php. inclure &quot;qrcode.php&quot;\u00a0; \/\/ Cr\u00e9e des objets $qc = new QRCODE(); \/\/ Cr\u00e9er un code SMS $qc-&gt;SMS(&quot;1234567890&quot;); \/\/ Enregistrer le code 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. Pour g\u00e9n\u00e9rer le code QR CONTACT, vous devez appeler la fonction CONTACT dans votre fichier index.php.<\/span><\/span><\/p>\n<pre class=\"brush: actionscript3; gutter: true\">&lt;?php \/\/ Inclut le fichier qrcode.php. inclure &quot;qrcode.php&quot;\u00a0; \/\/ Cr\u00e9e des objets $qc = new QRCODE(); \/\/ Cr\u00e9er un code CONTACT $qc-&gt;CONTACT(&quot;knowband&quot;,&quot;Address&quot;,&quot;1234567890&quot;,&quot;knowband@test.com&quot;); \/\/ Enregistrer le code QR $qc-&gt;QRCODE(400,&quot;Knowband_contact.png&quot;); ?&gt;<\/pre>\n<h3><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">\u00c9TAPE 6\u00a0: Ex\u00e9cutez le fichier de script (index.php) dans votre environnement\u00a0:<\/span><\/span><\/h3>\n<p><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">Si tout se passe bien, le nom du fichier sera nomm\u00e9 &#8220;knowband_text.png&#8221; et celui que vous souhaitez t\u00e9l\u00e9charger et enregistrer sur votre ordinateur.<\/span><\/span><\/p>\n<p><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\">REMARQUE\u00a0: Vous ne pouvez g\u00e9n\u00e9rer qu&#8217;un seul type de code QR \u00e0 la fois.<\/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;\">Cliquez ici<\/span><\/span><\/a><span style=\"vertical-align: inherit;\"><span style=\"vertical-align: inherit;\"> pour t\u00e9l\u00e9charger le code complet.<\/span><\/span><\/p>\n<p><span style=\"font-weight: 400;\">Avec plus de 13 ans d&#8217;excellence dans les technologies de l&#8217;information, nous fournissons des technologies de d\u00e9veloppement Web et d&#8217;applications sur divers frameworks. Vous pouvez \u00e9galement explorer une large gamme d&#8217;extensions de commerce \u00e9lectronique Prestashop, Opencart, WooCommerce, Shopify et Magento 2 pr\u00eates \u00e0 l&#8217;emploi.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Si vous avez des questions\/suggestions, vous pouvez contacter notre portail d&#8217;assistance technique \u00e0 notre adresse 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>Jetez un oeil \u00e0 notre module best-seller <a href=\"https:\/\/www.knowband.com\/fr\/prestashop-one-click-checkout\">Supercheckout d&#8217;une page pour Prestashop<\/a>\u00a0<span data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Opencart Android and iOS Mobile App Builder Plugin&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:513,&quot;3&quot;:{&quot;1&quot;:0},&quot;12&quot;:0}\">war<\/span>ici:<\/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\">Module compl\u00e9mentaire de paiement en une page Prestashop<\/h3>\n<p class=\"module_content_text\">Le paiement Prestashop One Page de Knowband simplifie le processus de paiement, am\u00e9liorant l&#8217;exp\u00e9rience utilisateur et augmentant les conversions pour votre boutique en ligne.<\/p>\n<p><a class=\"link_2_to_module\" style=\"display: inline-block; color: #f36!important;\" href=\"https:\/\/www.knowband.com\/fr\/prestashop-one-page-supercheckout\" target=\"_blank\" rel=\"noopener\"><span class=\"read-more\">Visitez ici<\/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>Le code QR est un type de code-barres bidimensionnel qui est abr\u00e9g\u00e9 en code de r\u00e9ponse rapide . Il s&#8217;agit d&#8217;une \u00e9tiquette optique qui contient des informations sur l&#8217;article. Il est simplement attach\u00e9 \u00e0 l&#8217;article. Il contient des carr\u00e9s noirs dispos\u00e9s dans une grille de carr\u00e9s sur fond blanc. Dans ce blog, nous apprendrons \u00e9tape [&hellip;]<\/p>\n","protected":false},"author":29,"featured_media":823186,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kbui_enabled":"","footnotes":""},"categories":[1120,4],"tags":[28211,18508,18506,34168,28210,18507,7509,34169],"class_list":["post-322356","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-conseils-fr","category-ecommerce-blog","tag-astuces-pour-gnrer-un-code-qr","tag-conseils-pour-gnrer-un-code-qr","tag-gnration-de-code-qr","tag-gnrer-un-code-qr--laide-de-php","tag-gnrer-un-code-qr-avec-php","tag-gnrer-un-code-qr-en-utilisant-php","tag-php","tag-supercheckout-dune-page-pour-prestashop"],"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\/fr\/ecommerce-blog\/generer-qr-code-en-utilisant-php\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\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=\"Le code QR est un type de code-barres bidimensionnel qui est abr\u00e9g\u00e9 en code de r\u00e9ponse rapide . Il s&#8217;agit d&#8217;une \u00e9tiquette optique qui contient des informations sur l&#8217;article. Il est simplement attach\u00e9 \u00e0 l&#8217;article. Il contient des carr\u00e9s noirs dispos\u00e9s dans une grille de carr\u00e9s sur fond blanc. Dans ce blog, nous apprendrons \u00e9tape [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.knowband.com\/blog\/fr\/ecommerce-blog\/generer-qr-code-en-utilisant-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:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/Generate-QR-Code-Using-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=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/ecommerce-blog\\\/generer-qr-code-en-utilisant-php\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/ecommerce-blog\\\/generer-qr-code-en-utilisant-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:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/ecommerce-blog\\\/generer-qr-code-en-utilisant-php\\\/\"},\"wordCount\":607,\"publisher\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/ecommerce-blog\\\/generer-qr-code-en-utilisant-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/Generate-QR-Code-Using-PHP.png\",\"keywords\":[\"astuces pour g\u00e9n\u00e9rer un code QR\",\"conseils pour g\u00e9n\u00e9rer un code QR\",\"G\u00e9n\u00e9ration de code QR\",\"G\u00e9n\u00e9rer un code QR \u00e0 l'aide de PHP\",\"G\u00e9n\u00e9rer un code QR avec PHP\",\"G\u00e9n\u00e9rer un code QR en utilisant PHP\",\"PHP\",\"supercheckout d'une page pour prestashop\"],\"articleSection\":[\"conseils\",\"Ecommerce\"],\"inLanguage\":\"fr-FR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/ecommerce-blog\\\/generer-qr-code-en-utilisant-php\\\/\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/ecommerce-blog\\\/generer-qr-code-en-utilisant-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\\\/fr\\\/ecommerce-blog\\\/generer-qr-code-en-utilisant-php\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/ecommerce-blog\\\/generer-qr-code-en-utilisant-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/Generate-QR-Code-Using-PHP.png\",\"datePublished\":\"2019-11-15T09:40:37+00:00\",\"dateModified\":\"2024-06-05T13:12:06+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/ecommerce-blog\\\/generer-qr-code-en-utilisant-php\\\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/ecommerce-blog\\\/generer-qr-code-en-utilisant-php\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/ecommerce-blog\\\/generer-qr-code-en-utilisant-php\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/Generate-QR-Code-Using-PHP.png\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/Generate-QR-Code-Using-PHP.png\",\"width\":760,\"height\":300,\"caption\":\"Guide Knowband pour g\u00e9n\u00e9rer des codes QR en PHP\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/ecommerce-blog\\\/generer-qr-code-en-utilisant-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\":\"fr-FR\"},{\"@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\":\"fr-FR\",\"@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\":\"fr-FR\",\"@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\\\/fr\\\/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\/fr\/ecommerce-blog\/generer-qr-code-en-utilisant-php\/","og_locale":"fr_FR","og_type":"article","og_title":"Generate QR Code Using PHP - Knowband Blog | Ecommerce Modules","og_description":"Le code QR est un type de code-barres bidimensionnel qui est abr\u00e9g\u00e9 en code de r\u00e9ponse rapide . Il s&#8217;agit d&#8217;une \u00e9tiquette optique qui contient des informations sur l&#8217;article. Il est simplement attach\u00e9 \u00e0 l&#8217;article. Il contient des carr\u00e9s noirs dispos\u00e9s dans une grille de carr\u00e9s sur fond blanc. Dans ce blog, nous apprendrons \u00e9tape [&hellip;]","og_url":"https:\/\/www.knowband.com\/blog\/fr\/ecommerce-blog\/generer-qr-code-en-utilisant-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:06+00:00","og_image":[{"width":760,"height":300,"url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/Generate-QR-Code-Using-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":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.knowband.com\/blog\/fr\/ecommerce-blog\/generer-qr-code-en-utilisant-php\/#article","isPartOf":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/ecommerce-blog\/generer-qr-code-en-utilisant-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:06+00:00","mainEntityOfPage":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/ecommerce-blog\/generer-qr-code-en-utilisant-php\/"},"wordCount":607,"publisher":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/ecommerce-blog\/generer-qr-code-en-utilisant-php\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/Generate-QR-Code-Using-PHP.png","keywords":["astuces pour g\u00e9n\u00e9rer un code QR","conseils pour g\u00e9n\u00e9rer un code QR","G\u00e9n\u00e9ration de code QR","G\u00e9n\u00e9rer un code QR \u00e0 l'aide de PHP","G\u00e9n\u00e9rer un code QR avec PHP","G\u00e9n\u00e9rer un code QR en utilisant PHP","PHP","supercheckout d'une page pour prestashop"],"articleSection":["conseils","Ecommerce"],"inLanguage":"fr-FR"},{"@type":"WebPage","@id":"https:\/\/www.knowband.com\/blog\/fr\/ecommerce-blog\/generer-qr-code-en-utilisant-php\/","url":"https:\/\/www.knowband.com\/blog\/fr\/ecommerce-blog\/generer-qr-code-en-utilisant-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\/fr\/ecommerce-blog\/generer-qr-code-en-utilisant-php\/#primaryimage"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/ecommerce-blog\/generer-qr-code-en-utilisant-php\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/Generate-QR-Code-Using-PHP.png","datePublished":"2019-11-15T09:40:37+00:00","dateModified":"2024-06-05T13:12:06+00:00","breadcrumb":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/ecommerce-blog\/generer-qr-code-en-utilisant-php\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.knowband.com\/blog\/fr\/ecommerce-blog\/generer-qr-code-en-utilisant-php\/"]}]},{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.knowband.com\/blog\/fr\/ecommerce-blog\/generer-qr-code-en-utilisant-php\/#primaryimage","url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/Generate-QR-Code-Using-PHP.png","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/11\/Generate-QR-Code-Using-PHP.png","width":760,"height":300,"caption":"Guide Knowband pour g\u00e9n\u00e9rer des codes QR en PHP"},{"@type":"BreadcrumbList","@id":"https:\/\/www.knowband.com\/blog\/fr\/ecommerce-blog\/generer-qr-code-en-utilisant-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":"fr-FR"},{"@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":"fr-FR","@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":"fr-FR","@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\/fr\/author\/vsinghal\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/posts\/322356","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/users\/29"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/comments?post=322356"}],"version-history":[{"count":4,"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/posts\/322356\/revisions"}],"predecessor-version":[{"id":825071,"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/posts\/322356\/revisions\/825071"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/media\/823186"}],"wp:attachment":[{"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/media?parent=322356"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/categories?post=322356"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/tags?post=322356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}