{"repo":"mghoneimy/php-graphql-client","free":true,"listed":false,"github":"https://github.com/mghoneimy/php-graphql-client","clone":"git clone https://github.com/mghoneimy/php-graphql-client.git","description":"A PHP library that simplifies the process of interacting with GraphQL API's by providing simple client and query generator classes.","language":"PHP","stars":316,"topics":["graphql-client","graphql-api","query-builder","php","php-library"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"PHP GraphQL Client A GraphQL client written in PHP which provides very simple, yet powerful, query generator classes that make the process of interacting with a GraphQL server a very simple one. Usage There are 3 primary ways to use this package to generate your GraphQL queries: 1. Query Class: Simple class that maps to GraphQL queries. It's designed to manipulate queries with ease and speed. 2. QueryBuilder Class: Builder class that can be used to generate Query objects dynamically. It's design to be used in cases where a query is being build in a dynamic fashion. 3. PHP GraphQL-OQM: An extension to this package. It Eliminates the need to write any GraphQL queries or refer to the API documentation or syntax. It generates query objects from the API schema, declaration exposed through GraphQL's introspection, which can then be simply interacted with. Installation Run the following command to install the package using composer: Object-to-Query-Mapper Extension To avoid the hassle of having to write any queries and just interact with PHP objects generated from your API schema visit PHP GraphQL OQM repository Query Examples Simple Query This simple query will retrieve all companies displaying their names and serial numbers. The Full Form The query provided in the previous example is represented in the \"shorthand form\". The shorthand form involves writing a reduced number of code lines which speeds up the process of wriing querries. Below is an example of the full form for the exa","default_branch":null,"files":null,"tree":[],"storefront":"/r/mghoneimy","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mghoneimy/php-graphql-client/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}