{"id":817029,"date":"2018-10-30T09:01:43","date_gmt":"2018-10-30T09:01:43","guid":{"rendered":"https:\/\/www.knowband.com\/blog\/?p=22325\/"},"modified":"2022-08-13T12:01:14","modified_gmt":"2022-07-18T12:42:09","slug":"how-to-use-graphql-in-php","status":"publish","type":"post","link":"https:\/\/www.knowband.com\/blog\/de\/unkategorisiert\/how-to-use-graphql-in-php\/","title":{"rendered":"How to use GraphQL in PHP?"},"content":{"rendered":"<p><html lang=\"de\"><head><meta charset=\"utf-8\"><\/head><body><\/p>\n<h2 style=\"font-size: 22px; margin-bottom: 15px; text-align: justify;\">Haben Sie schon von GraphQL geh\u00f6rt?<\/h2>\n<p><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/Main-Banner-graphql-php-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-817013\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/Main-Banner-graphql-php-2.png\" alt=\"Wie verwende ich GraphQL in PHP?\" width=\"760\" height=\"300\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/Main-Banner-graphql-php-2.png 760w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/Main-Banner-graphql-php-2-300x118.png 300w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">GraphQL ist eine moderne Abfragesprache f\u00fcr die API. Mit anderen Worten, wir k\u00f6nnen sagen, dass es sich um eine moderne Abfragesprache auf Anwendungsebene handelt.<\/p>\n<p style=\"text-align: justify;\">Mit Hilfe von GraphQL k\u00f6nnen wir Daten aus den API-Aufrufen abrufen und es funktioniert auf HTTP als REST. Es bietet dem Kunden eine leistungsstarke Option, damit er fragt, was er genau braucht, und es hilft beim API-Wachstum oder der Evaluierung.<\/p>\n<h2 style=\"font-size: 22px; margin-bottom: 15px; text-align: justify;\">Vorteile von GraphQL<\/h2>\n<p><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/Info-Banner-graphql-php-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-817014\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/Info-Banner-graphql-php-1.png\" alt=\"Vorteile des GraphQl\" width=\"760\" height=\"477\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/Info-Banner-graphql-php-1.png 760w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/Info-Banner-graphql-php-1-300x188.png 300w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/a><\/p>\n<ul>\n<li style=\"text-align: justify;\">Es liefert nur begrenzt Daten, die wir tats\u00e4chlich ben\u00f6tigen. Es werden niemals zus\u00e4tzliche Daten oder weniger Daten abgerufen, die Sie nicht ben\u00f6tigen.<\/li>\n<li style=\"text-align: justify;\">Es ist ein leistungsstarkes Open-Source-System.<\/li>\n<li style=\"text-align: justify;\">Es bietet die M\u00f6glichkeit, die effiziente Codierung durchzuf\u00fchren. Angenommen, eine Tabelle mit 40 Spalten und manchmal ben\u00f6tigen wir die Daten von nur 10 Spalten oder manchmal 20 usw. Um dieses Problem zu l\u00f6sen, haben wir in der normalen API zwei Optionen, entweder alle Daten in jedem API-Aufruf abrufen und alle gew\u00fcnschten oder wir verwenden m\u00fcssen die Anzahl der APIs f\u00fcr dieselbe Tabelle schreiben, damit wir die effiziente API gem\u00e4\u00df den Anforderungen aufrufen k\u00f6nnen. Aber in GraphQL m\u00fcssen wir nur eine API schreiben. So wird auch der Zeilencode reduziert.<\/li>\n<li style=\"text-align: justify;\">GraphQL-APIs sind nach Typen und Feldern strukturiert.<\/li>\n<\/ul>\n<h2 style=\"font-size: 22px; margin-bottom: 15px; text-align: justify;\"><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/info-Banner-graphql-php-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-817018\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/info-Banner-graphql-php-3.png\" alt=\"Von GraphQL unterst\u00fctzte Sprache\" width=\"760\" height=\"300\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/info-Banner-graphql-php-3.png 760w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/info-Banner-graphql-php-3-300x118.png 300w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/a><\/h2>\n<p style=\"text-align: justify;\">GraphQL unterst\u00fctzt verschiedene Sprachen wie z<\/p>\n<ul>\n<li>C#<\/li>\n<li>.NETZ<\/li>\n<li>Clojure<\/li>\n<li>Elixier<\/li>\n<li>Erlang<\/li>\n<li>Go<\/li>\n<li>Groovy<\/li>\n<li>Java<\/li>\n<li>JavaScript<\/li>\n<li>PHP<\/li>\n<li>Python<\/li>\n<li>Scala<\/li>\n<li>Rubin<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">In diesem Blog werden wir etwas \u00fcber GraphQL in PHP erfahren.<\/p>\n<p style=\"text-align: justify;\">Zun\u00e4chst sollten wir wissen, dass wir in jeder Sprache, um GraphQL zu verwenden, ihre Bibliothek importieren m\u00fcssen.<\/p>\n<p style=\"text-align: justify;\">In PHP k\u00f6nnen wir diese Bibliotheksdatei verwenden: webonyx\/graphql-php.<\/p>\n<h2 style=\"font-size: 22px; margin-bottom: 15px; text-align: justify;\">Installation<\/h2>\n<p style=\"text-align: justify;\">F\u00fchren Sie mit Composer einfach Folgendes aus:<\/p>\n<pre class=\"brush: actionscript3; gutter: true\">Komponist ben\u00f6tigt webonyx\/graphql-php<\/pre>\n<h2 style=\"font-size: 22px; margin-bottom: 15px; text-align: justify;\">Wie holt GraphQL Daten mit Abfragen?<\/h2>\n<p style=\"text-align: justify;\">In REST gibt die API Daten in einer definierten Struktur zur\u00fcck. Beim Schreiben der API in REST m\u00fcssen wir die Struktur der Daten definieren, die zur\u00fcckgegeben werden, aber GraphQL hat keine definierte Struktur, die zur\u00fcckgegeben wird. Es kann ihre Struktur nach Kundenwunsch \u00e4ndern.<\/p>\n<p style=\"text-align: justify;\">Der Client muss einige weitere Informationen an den Server senden, um seine Anforderungen zu deklarieren, und diese Informationen werden als Abfrage bezeichnet.<\/p>\n<p style=\"text-align: justify;\">In der Abfrage m\u00fcssen wir die Root-Felder definieren, mit anderen Worten, wir sagen dasselbe wie die Nutzlast f\u00fcr den Dienst.<\/p>\n<h2 style=\"font-size: 22px; margin-bottom: 15px; text-align: justify;\">l\u00f6sen<\/h2>\n<p><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/Screenshot_1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-817021 size-full\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/Screenshot_1-e1658148119764.png\" alt=\"Resolver in GraphQL PHL\" width=\"949\" height=\"367\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/Screenshot_1-e1658148119764.png 949w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/Screenshot_1-e1658148119764-300x116.png 300w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/Screenshot_1-e1658148119764-768x297.png 768w\" sizes=\"auto, (max-width: 949px) 100vw, 949px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">In der realen Anwendung wie E-Commerce-Anwendung, dh PrestaShop, OpenCart, Magneto usw., m\u00fcssen wir die Kundendaten anhand der Kunden-ID aus der Datenbank abrufen und diese zur\u00fcckgeben. Unser Punkt ist, dass wir die Arrays nicht zur\u00fcckgeben m\u00fcssen, wir m\u00fcssen die Werte zur\u00fcckgeben und \u201egraphql-php\u201c wird sie unver\u00e4ndert an verschachtelte Resolver weitergeben.<\/p>\n<p style=\"text-align: justify;\">Der Resolver ist im Grunde eine R\u00fcckruffunktion f\u00fcr jedes Feld. Es gibt immer einen Standardresolver f\u00fcr alle Felder. Wenn wir unsere eigene \u201eResolve\u201c-Funktion f\u00fcr ein Feld definieren, \u00fcberschreiben wir einfach den Standard-Resolver.<\/p>\n<h2 style=\"font-size: 22px; margin-bottom: 15px; text-align: justify;\">Wie definiere ich ein Schema f\u00fcr die Abfrage?<\/h2>\n<pre class=\"brush: actionscript3; gutter: true\">$schema_obj = neues Schema { \"query\" =&gt; $queryType, \"mutation\" =&gt; $mutationType, \"subscription\" =&gt; $subscriptionType }<\/pre>\n<h3 style=\"font-size: 18px; margin-bottom: 15px; text-align: justify;\"><strong>Beispiel<\/strong><\/h3>\n<p style=\"text-align: justify;\">Da dies ein Blog f\u00fcr Anf\u00e4nger oder Neulinge ist, machen wir ein einfaches Beispiel.<\/p>\n<p style=\"text-align: justify;\">Lassen Sie uns ein Typsystem erstellen, das die folgende einfache Abfrage verarbeiten soll:<\/p>\n<pre class=\"brush: actionscript3; gutter: true\">query { echo(message: \"Hallo Knowband, das ist mein erstes GraphQL-Programm\") }\n<\/pre>\n<p><strong>Hinweis:<\/strong> Dazu ben\u00f6tigen wir einen Objekttyp mit Feldecho.<\/p>\n<pre class=\"brush: actionscript3; gutter: true\">'Query', 'fields' =&gt; [ 'echo' =&gt; [ 'type' =&gt; Type::string(), 'args' =&gt; [ 'message' =&gt; Type::nonNull(Type::string() ), ], 'resolve' =&gt; function ($root, $args) { return $root['prefix'] . $args['Nachricht']; } ], ], ]);<\/pre>\n<p style=\"text-align: justify;\">Die Option\ufffdaufl\u00f6sen\ufffdist\ufffdeine\ufffdsehr\ufffdwichtige\ufffdOption\ufffdder\ufffdFelddefinition\ufffd.\ufffdSie\ufffdist\ufffdeine\ufffd,\ufffddie\ufffdf\u00fcr\ufffddie\ufffdR\u00fcckgabe\ufffddes\ufffdWerts\ufffdunseres\ufffdFelds\ufffdverantwortlich\ufffdist.\ufffd Werte\ufffdder\ufffdskalaren\ufffdFelder\ufffdwerden\ufffddirekt\ufffdin\ufffddie\ufffdAntwort\ufffdeinbezogen,\ufffdw\u00e4hrend\ufffddie\ufffdWerte\ufffdder\ufffdzusammengesetzten\ufffdFelder\ufffdan\ufffddie\ufffdweitergegebenwerden verschachtelte\ufffdFeldresolver.\ufffdZusammengesetzte\ufffdFelder\ufffdsind\ufffdSchnittstellen,\ufffdUnions,\ufffdObjekte\ufffdetc.<\/p>\n<p style=\"text-align: justify;\">Jetzt\ufffd nachdem\ufffdunser\ufffdTyp\ufffdbereitgestelltist,\ufffdschreiben\ufffdwir\ufffddie\ufffdGraphQL-Endpunktdatei\ufffddaf\u00fcr\ufffdgraphql_program_1.php.<\/p>\n<pre class=\"brush: actionscript3; gutter: true\">$queryType ]); $Input = file_get_contents('php:\/\/input'); $input_data = json_decode($Eingabe, wahr); $query_data = $input_data['Abfrage']; $variable_values \u200b\u200b= isset($input_data['variables']) ? $input_data['Variablen'] : null; $value = ['prefix' =&gt; 'Ausgabe: ']; $resultant = GraphQL::executeQuery($schema_obj, $query_data, $value, null, $variable_values); $output_value = $resultant-&gt;toArray(); } catch (\\Exception $e) { $output_value = [ 'errors' =&gt; [ [ 'message' =&gt; $e-&gt;getMessage() ] ] ]; } header('Content-Type: application\/json'); echo json_encode($output_value); ?&gt;<\/pre>\n<h3 style=\"font-size: 18px; margin-bottom: 15px; text-align: justify;\"><strong>Wie k\u00f6nnen wir den Code ausf\u00fchren?<\/strong><\/h3>\n<p>Wir k\u00f6nnen den Code ausf\u00fchren durch:<\/p>\n<pre class=\"brush: actionscript3; gutter: true\">php -S localhost:8080 graphql_program_1.php curl https:\/\/localhost:8080 -d '{\"query\": \"query { echo(message: \\\" Hallo Knowband, dies ist mein erstes GraphQL-Programm \\\") }\" }'<\/pre>\n<p>Bei Fragen k\u00f6nnen Sie uns gerne unter support@knowband.com erreichen. Knowband bietet die besten Module f\u00fcr Prestashop, Opencart, Magento und Magento 2. Werfen Sie einen Blick auf eines unserer beliebtesten f\u00fcr Prestashop namens One page supercheckout:<br \/>\n<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>Haben Sie schon von GraphQL geh\u00f6rt? GraphQL ist eine moderne Abfragesprache f\u00fcr die API. Mit anderen Worten, wir k\u00f6nnen sagen, dass es sich um eine moderne Abfragesprache auf Anwendungsebene handelt. Mit Hilfe von GraphQL k\u00f6nnen wir Daten aus den API-Aufrufen abrufen und es funktioniert auf HTTP als REST. Es bietet dem Kunden eine leistungsstarke Option, [&hellip;]<\/p>\n","protected":false},"author":15,"featured_media":817011,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kbui_enabled":"","footnotes":""},"categories":[],"tags":[28585,7545,28586,7510],"class_list":["post-817029","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-grafikql","tag-graphicql-in-php","tag-verwenden-sie-graphql-in-php","tag-webonyx"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to use GraphQL in 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\/de\/unkategorisiert\/how-to-use-graphql-in-php\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to use GraphQL in PHP? - Knowband Blog | Ecommerce Modules\" \/>\n<meta property=\"og:description\" content=\"Haben Sie schon von GraphQL geh\u00f6rt? GraphQL ist eine moderne Abfragesprache f\u00fcr die API. Mit anderen Worten, wir k\u00f6nnen sagen, dass es sich um eine moderne Abfragesprache auf Anwendungsebene handelt. Mit Hilfe von GraphQL k\u00f6nnen wir Daten aus den API-Aufrufen abrufen und es funktioniert auf HTTP als REST. Es bietet dem Kunden eine leistungsstarke Option, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.knowband.com\/blog\/de\/unkategorisiert\/how-to-use-graphql-in-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=\"2018-10-30T09:01:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-18T12:42:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/Main-Banner-graphql-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=\"Sunny Saurabh\" \/>\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=\"Sunny Saurabh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/de\\\/unkategorisiert\\\/how-to-use-graphql-in-php\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/de\\\/unkategorisiert\\\/how-to-use-graphql-in-php\\\/\"},\"author\":{\"name\":\"Sunny Saurabh\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/person\\\/57eba27850520f4c8de3853ee8755a55\"},\"headline\":\"How to use GraphQL in PHP?\",\"datePublished\":\"2018-10-30T09:01:43+00:00\",\"dateModified\":\"2022-07-18T12:42:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/de\\\/unkategorisiert\\\/how-to-use-graphql-in-php\\\/\"},\"wordCount\":649,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/de\\\/unkategorisiert\\\/how-to-use-graphql-in-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/Main-Banner-graphql-php.png\",\"keywords\":[\"GrafikQL\",\"GraphicQL in PHP\",\"Verwenden Sie GraphQL in PHP\",\"Webonyx\"],\"inLanguage\":\"de-DE\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/de\\\/unkategorisiert\\\/how-to-use-graphql-in-php\\\/\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/de\\\/unkategorisiert\\\/how-to-use-graphql-in-php\\\/\",\"name\":\"How to use GraphQL in PHP? - Knowband Blog | Ecommerce Modules\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/de\\\/unkategorisiert\\\/how-to-use-graphql-in-php\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/de\\\/unkategorisiert\\\/how-to-use-graphql-in-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/Main-Banner-graphql-php.png\",\"datePublished\":\"2018-10-30T09:01:43+00:00\",\"dateModified\":\"2022-07-18T12:42:09+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/de\\\/unkategorisiert\\\/how-to-use-graphql-in-php\\\/#breadcrumb\"},\"inLanguage\":\"de-DE\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.knowband.com\\\/blog\\\/de\\\/unkategorisiert\\\/how-to-use-graphql-in-php\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"de-DE\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/de\\\/unkategorisiert\\\/how-to-use-graphql-in-php\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/Main-Banner-graphql-php.png\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/Main-Banner-graphql-php.png\",\"width\":760,\"height\":300,\"caption\":\"How to use GraphQL in PHP?\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/de\\\/unkategorisiert\\\/how-to-use-graphql-in-php\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Wie erstelle ich programmatisch einen Kunden in Magento?\",\"item\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/de\\\/magento-tutorials-de\\\/wie-erstelle-ich-programmatisch-einen-kunden-in-magento\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to use GraphQL in 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\":\"de-DE\"},{\"@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\":\"de-DE\",\"@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\\\/57eba27850520f4c8de3853ee8755a55\",\"name\":\"Sunny Saurabh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de-DE\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/IMG_20181029_123810-150x150.jpg\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/IMG_20181029_123810-150x150.jpg\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/IMG_20181029_123810-150x150.jpg\",\"caption\":\"Sunny Saurabh\"},\"description\":\"Sunny Saurabh is an experienced Software engineer in C# and ASP.NET as well as an expert as a PHP developer. He has also expert in database design, server maintenance and security. He has achieved this goal only in the short span of 3yrs and still looking forward to achieving more in the IT industry. He lives in New Delhi and his hobby to write the technical writeups.\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/de\\\/author\\\/ssaurabh\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to use GraphQL in 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\/de\/unkategorisiert\/how-to-use-graphql-in-php\/","og_locale":"de_DE","og_type":"article","og_title":"How to use GraphQL in PHP? - Knowband Blog | Ecommerce Modules","og_description":"Haben Sie schon von GraphQL geh\u00f6rt? GraphQL ist eine moderne Abfragesprache f\u00fcr die API. Mit anderen Worten, wir k\u00f6nnen sagen, dass es sich um eine moderne Abfragesprache auf Anwendungsebene handelt. Mit Hilfe von GraphQL k\u00f6nnen wir Daten aus den API-Aufrufen abrufen und es funktioniert auf HTTP als REST. Es bietet dem Kunden eine leistungsstarke Option, [&hellip;]","og_url":"https:\/\/www.knowband.com\/blog\/de\/unkategorisiert\/how-to-use-graphql-in-php\/","og_site_name":"Knowband Blog | Ecommerce Modules","article_publisher":"https:\/\/www.facebook.com\/Knowband","article_published_time":"2018-10-30T09:01:43+00:00","article_modified_time":"2022-07-18T12:42:09+00:00","og_image":[{"width":760,"height":300,"url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/Main-Banner-graphql-php.png","type":"image\/png"}],"author":"Sunny Saurabh","twitter_card":"summary_large_image","twitter_creator":"@KnowbandPlugin","twitter_site":"@KnowbandPlugin","twitter_misc":{"Written by":"Sunny Saurabh","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.knowband.com\/blog\/de\/unkategorisiert\/how-to-use-graphql-in-php\/#article","isPartOf":{"@id":"https:\/\/www.knowband.com\/blog\/de\/unkategorisiert\/how-to-use-graphql-in-php\/"},"author":{"name":"Sunny Saurabh","@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/person\/57eba27850520f4c8de3853ee8755a55"},"headline":"How to use GraphQL in PHP?","datePublished":"2018-10-30T09:01:43+00:00","dateModified":"2022-07-18T12:42:09+00:00","mainEntityOfPage":{"@id":"https:\/\/www.knowband.com\/blog\/de\/unkategorisiert\/how-to-use-graphql-in-php\/"},"wordCount":649,"commentCount":0,"publisher":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/de\/unkategorisiert\/how-to-use-graphql-in-php\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/Main-Banner-graphql-php.png","keywords":["GrafikQL","GraphicQL in PHP","Verwenden Sie GraphQL in PHP","Webonyx"],"inLanguage":"de-DE"},{"@type":"WebPage","@id":"https:\/\/www.knowband.com\/blog\/de\/unkategorisiert\/how-to-use-graphql-in-php\/","url":"https:\/\/www.knowband.com\/blog\/de\/unkategorisiert\/how-to-use-graphql-in-php\/","name":"How to use GraphQL in PHP? - Knowband Blog | Ecommerce Modules","isPartOf":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.knowband.com\/blog\/de\/unkategorisiert\/how-to-use-graphql-in-php\/#primaryimage"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/de\/unkategorisiert\/how-to-use-graphql-in-php\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/Main-Banner-graphql-php.png","datePublished":"2018-10-30T09:01:43+00:00","dateModified":"2022-07-18T12:42:09+00:00","breadcrumb":{"@id":"https:\/\/www.knowband.com\/blog\/de\/unkategorisiert\/how-to-use-graphql-in-php\/#breadcrumb"},"inLanguage":"de-DE","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.knowband.com\/blog\/de\/unkategorisiert\/how-to-use-graphql-in-php\/"]}]},{"@type":"ImageObject","inLanguage":"de-DE","@id":"https:\/\/www.knowband.com\/blog\/de\/unkategorisiert\/how-to-use-graphql-in-php\/#primaryimage","url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/Main-Banner-graphql-php.png","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/Main-Banner-graphql-php.png","width":760,"height":300,"caption":"How to use GraphQL in PHP?"},{"@type":"BreadcrumbList","@id":"https:\/\/www.knowband.com\/blog\/de\/unkategorisiert\/how-to-use-graphql-in-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.knowband.com\/blog\/fr\/"},{"@type":"ListItem","position":2,"name":"Wie erstelle ich programmatisch einen Kunden in Magento?","item":"https:\/\/www.knowband.com\/blog\/de\/magento-tutorials-de\/wie-erstelle-ich-programmatisch-einen-kunden-in-magento\/"},{"@type":"ListItem","position":3,"name":"How to use GraphQL in 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":"de-DE"},{"@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":"de-DE","@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\/57eba27850520f4c8de3853ee8755a55","name":"Sunny Saurabh","image":{"@type":"ImageObject","inLanguage":"de-DE","@id":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/IMG_20181029_123810-150x150.jpg","url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/IMG_20181029_123810-150x150.jpg","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2018\/10\/IMG_20181029_123810-150x150.jpg","caption":"Sunny Saurabh"},"description":"Sunny Saurabh is an experienced Software engineer in C# and ASP.NET as well as an expert as a PHP developer. He has also expert in database design, server maintenance and security. He has achieved this goal only in the short span of 3yrs and still looking forward to achieving more in the IT industry. He lives in New Delhi and his hobby to write the technical writeups.","url":"https:\/\/www.knowband.com\/blog\/de\/author\/ssaurabh\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.knowband.com\/blog\/de\/wp-json\/wp\/v2\/posts\/817029","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.knowband.com\/blog\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knowband.com\/blog\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/de\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/de\/wp-json\/wp\/v2\/comments?post=817029"}],"version-history":[{"count":0,"href":"https:\/\/www.knowband.com\/blog\/de\/wp-json\/wp\/v2\/posts\/817029\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/de\/wp-json\/wp\/v2\/media\/817011"}],"wp:attachment":[{"href":"https:\/\/www.knowband.com\/blog\/de\/wp-json\/wp\/v2\/media?parent=817029"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/de\/wp-json\/wp\/v2\/categories?post=817029"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/de\/wp-json\/wp\/v2\/tags?post=817029"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}