{"id":43415,"date":"2016-04-07T00:00:49","date_gmt":"2016-04-07T00:00:49","guid":{"rendered":"http:\/\/webkul.com\/blog\/?p=43415"},"modified":"2016-04-07T10:52:08","modified_gmt":"2016-04-07T10:52:08","slug":"using-opencart-command-line","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/using-opencart-command-line\/","title":{"rendered":"Access Opencart data through command line"},"content":{"rendered":"<p>Opencart, in version 2.2.0.0, released support of composer and lots of other things. But still opencart\u00a0lack in operating through command line, if anyone wishes to do so. Today we&#8217;ll learn how to start using opencart\u00a0from command line (ubuntu). This will be done using <strong>Symfony\u00a0console component\u00a0<\/strong>through composer.<\/p>\n<p>At the very first we&#8217;ll install composer at the root directory on opencart\u00a0installation and include below <strong>composer.json<\/strong>\u00a0file.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-45192\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/01-2.png\" alt=\"01\" width=\"862\" height=\"254\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/01-2.png 862w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/01-2-250x74.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/01-2-300x88.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/01-2-768x226.png 768w\" sizes=\"(max-width: 862px) 100vw, 862px\" loading=\"lazy\" \/><\/p>\n<p>After creating json\u00a0file, install it and you&#8217;ll get<strong> vendor<\/strong> directory. Create a directory\u00a0named <strong>app<\/strong> and\u00a0a file named <strong>console,\u00a0<\/strong>which will have below screenshots code.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-45191\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/02-2.png\" alt=\"02\" width=\"892\" height=\"449\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/02-2.png 892w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/02-2-250x126.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/02-2-300x151.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/02-2-768x387.png 768w\" sizes=\"(max-width: 892px) 100vw, 892px\" loading=\"lazy\" \/><\/p>\n<p>Now in the root directory create structure\u00a0as<strong>\u00a0src<em>&#8211;<\/em><em>&gt;<\/em>PhpMaster-&gt;Command<\/strong>, in Command directory create\u00a0a file of your choice as I&#8217;ve created GetProduct.php.<\/p>\n<p>In the starting of the file define everything as\u00a0it is in below screenshots.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-45190\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/03-2.png\" alt=\"03\" width=\"879\" height=\"229\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/03-2.png 879w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/03-2-250x65.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/03-2-300x78.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/03-2-768x200.png 768w\" sizes=\"(max-width: 879px) 100vw, 879px\" loading=\"lazy\" \/><\/p>\n<p>Now class <strong>GetProduct<\/strong> will have two main methods, <strong>configure<\/strong> and <strong>execute<\/strong>. These are the two main method that is used to configure the command and execute it.<\/p>\n<p><strong>Configure method<\/strong> will contain details about the command like it&#8217;s name, option or any other information about the command as you can see in below screenshot-<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-45189\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/04-3.png\" alt=\"04\" width=\"861\" height=\"242\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/04-3.png 861w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/04-3-250x70.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/04-3-300x84.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/04-3-768x216.png 768w\" sizes=\"(max-width: 861px) 100vw, 861px\" loading=\"lazy\" \/><\/p>\n<p><strong>Execute method<\/strong> is used to do the defined task by the above command, like I&#8217;ve written the class to get product detail in your system&#8217;s command prompt.So here the scenario come in the scene that how it will connect to the database, so for this, the simplest way it to include the config.php file and create your own connection to the database, or you can also use opencart&#8217;s defined method to connect. Below I&#8217;ve used my own connection method that is same as opencart.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-45188\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/05.png\" alt=\"05\" width=\"882\" height=\"232\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/05.png 882w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/05-250x66.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/05-300x79.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/05-768x202.png 768w\" sizes=\"(max-width: 882px) 100vw, 882px\" loading=\"lazy\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-45187\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/06.png\" alt=\"06\" width=\"872\" height=\"678\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/06.png 872w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/06-250x194.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/06-300x233.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/06-768x597.png 768w\" sizes=\"(max-width: 872px) 100vw, 872px\" loading=\"lazy\" \/><\/p>\n<p>Now run the command (app\/console phpmaster:GetProduct -p 30) as below and you&#8217;ll get the desired result that you have rendered in the execute method. To display content in tabular form I&#8217;ve used component&#8217;s table format.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-45193\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/07.png\" alt=\"07\" width=\"828\" height=\"294\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/07.png 828w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/07-250x89.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/07-300x107.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/07-768x273.png 768w\" sizes=\"(max-width: 828px) 100vw, 828px\" loading=\"lazy\" \/><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Opencart, in version 2.2.0.0, released support of composer and lots of other things. But still opencart\u00a0lack in operating through command line, if anyone wishes to do so. Today we&#8217;ll learn how to start using opencart\u00a0from command line (ubuntu). This will be done using Symfony\u00a0console component\u00a0through composer. At the very first we&#8217;ll install composer at the <a href=\"https:\/\/webkul.com\/blog\/using-opencart-command-line\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":23,"featured_media":41008,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[305,13,2707,1],"tags":[2946,2947,2949,2071,2948],"class_list":["post-43415","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-opencart","category-php","category-symfony","category-uncategorized","tag-access-opencart-data-through-command-line","tag-command","tag-command-prompt","tag-opencart","tag-opencart-command"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Access Opencart data through command line - Webkul Blog<\/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:\/\/webkul.com\/blog\/using-opencart-command-line\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Access Opencart data through command line - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Opencart, in version 2.2.0.0, released support of composer and lots of other things. But still opencart\u00a0lack in operating through command line, if anyone wishes to do so. Today we&#8217;ll learn how to start using opencart\u00a0from command line (ubuntu). This will be done using Symfony\u00a0console component\u00a0through composer. At the very first we&#8217;ll install composer at the [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/using-opencart-command-line\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2016-04-07T00:00:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-04-07T10:52:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\" \/>\n\t<meta property=\"og:image:width\" content=\"825\" \/>\n\t<meta property=\"og:image:height\" content=\"260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Avneesh Kumar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Avneesh Kumar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/using-opencart-command-line\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/using-opencart-command-line\/\"},\"author\":{\"name\":\"Avneesh Kumar\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/044b2928fe042b5059bb617e34cd39f9\"},\"headline\":\"Access Opencart data through command line\",\"datePublished\":\"2016-04-07T00:00:49+00:00\",\"dateModified\":\"2016-04-07T10:52:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/using-opencart-command-line\/\"},\"wordCount\":319,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/using-opencart-command-line\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\",\"keywords\":[\"Access Opencart data through command line\",\"command\",\"command prompt\",\"opencart\",\"opencart command\"],\"articleSection\":[\"opencart\",\"php\",\"Symfony\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/using-opencart-command-line\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/using-opencart-command-line\/\",\"url\":\"https:\/\/webkul.com\/blog\/using-opencart-command-line\/\",\"name\":\"Access Opencart data through command line - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/using-opencart-command-line\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/using-opencart-command-line\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\",\"datePublished\":\"2016-04-07T00:00:49+00:00\",\"dateModified\":\"2016-04-07T10:52:08+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/using-opencart-command-line\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/using-opencart-command-line\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/using-opencart-command-line\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\",\"width\":825,\"height\":260},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/using-opencart-command-line\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Access Opencart data through command line\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/044b2928fe042b5059bb617e34cd39f9\",\"name\":\"Avneesh Kumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5903755481804b5f657313a20e78c284e9af738c131f2df2c4bd1dc129753462?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5903755481804b5f657313a20e78c284e9af738c131f2df2c4bd1dc129753462?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Avneesh Kumar\"},\"sameAs\":[\"http:\/\/webkul.com\"],\"url\":\"https:\/\/webkul.com\/blog\/author\/avneesh\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Access Opencart data through command line - Webkul Blog","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:\/\/webkul.com\/blog\/using-opencart-command-line\/","og_locale":"en_US","og_type":"article","og_title":"Access Opencart data through command line - Webkul Blog","og_description":"Opencart, in version 2.2.0.0, released support of composer and lots of other things. But still opencart\u00a0lack in operating through command line, if anyone wishes to do so. Today we&#8217;ll learn how to start using opencart\u00a0from command line (ubuntu). This will be done using Symfony\u00a0console component\u00a0through composer. At the very first we&#8217;ll install composer at the [...]","og_url":"https:\/\/webkul.com\/blog\/using-opencart-command-line\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2016-04-07T00:00:49+00:00","article_modified_time":"2016-04-07T10:52:08+00:00","og_image":[{"width":825,"height":260,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","type":"image\/png"}],"author":"Avneesh Kumar","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Avneesh Kumar","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/using-opencart-command-line\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/using-opencart-command-line\/"},"author":{"name":"Avneesh Kumar","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/044b2928fe042b5059bb617e34cd39f9"},"headline":"Access Opencart data through command line","datePublished":"2016-04-07T00:00:49+00:00","dateModified":"2016-04-07T10:52:08+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/using-opencart-command-line\/"},"wordCount":319,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/using-opencart-command-line\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","keywords":["Access Opencart data through command line","command","command prompt","opencart","opencart command"],"articleSection":["opencart","php","Symfony"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/using-opencart-command-line\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/using-opencart-command-line\/","url":"https:\/\/webkul.com\/blog\/using-opencart-command-line\/","name":"Access Opencart data through command line - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/using-opencart-command-line\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/using-opencart-command-line\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","datePublished":"2016-04-07T00:00:49+00:00","dateModified":"2016-04-07T10:52:08+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/using-opencart-command-line\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/using-opencart-command-line\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/using-opencart-command-line\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","width":825,"height":260},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/using-opencart-command-line\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Access Opencart data through command line"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/044b2928fe042b5059bb617e34cd39f9","name":"Avneesh Kumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5903755481804b5f657313a20e78c284e9af738c131f2df2c4bd1dc129753462?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5903755481804b5f657313a20e78c284e9af738c131f2df2c4bd1dc129753462?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Avneesh Kumar"},"sameAs":["http:\/\/webkul.com"],"url":"https:\/\/webkul.com\/blog\/author\/avneesh\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/43415","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=43415"}],"version-history":[{"count":3,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/43415\/revisions"}],"predecessor-version":[{"id":45196,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/43415\/revisions\/45196"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media\/41008"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=43415"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=43415"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=43415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}