PHPackages                             simpod/graphql-request-factory - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. simpod/graphql-request-factory

ActiveLibrary[API Development](/categories/api)

simpod/graphql-request-factory
==============================

Factory to create PSR-7 compatible request to GraphQL server

0.1.7(5mo ago)178.8k—1.8%[1 issues](https://github.com/simPod/PHP-GraphQL-Request-Factory/issues)MITPHPPHP ^8.4CI passing

Since Jan 13Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/simPod/PHP-GraphQL-Request-Factory)[ Packagist](https://packagist.org/packages/simpod/graphql-request-factory)[ GitHub Sponsors](https://github.com/simPod)[ RSS](/packages/simpod-graphql-request-factory/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (10)Versions (12)Used By (0)

PHP GraphQL Request Factory
===========================

[](#php-graphql-request-factory)

[![GitHub Actions](https://github.com/simPod/PHP-GraphQL-Request-Factory/workflows/Continuous%20Integration/badge.svg)](https://github.com/simPod/PHP-GraphQL-Request-Factory/actions?query=workflow%3A%22Continuous+Integration%22+branch%3Amaster)[![Code Coverage](https://camo.githubusercontent.com/3f95ec336f6d246d4bafb6616596f277956b6b0dbbacf8696add9e607393e1b9/68747470733a2f2f636f6465636f762e696f2f67682f73696d506f642f5048502d4772617068514c2d526571756573742d466163746f72792f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/simPod/PHP-GraphQL-Request-Factory/branch/master)[![Downloads](https://camo.githubusercontent.com/43b30c18c8ae8f86a8ef24d90977097d063502257b813eef00a310e96edc1cf7/68747470733a2f2f706f7365722e707567782e6f72672f73696d706f642f6772617068716c2d726571756573742d666163746f72792f642f746f74616c2e737667)](https://packagist.org/packages/simpod/graphql-request-factory)[![Packagist](https://camo.githubusercontent.com/ece422a43d6621ca78b11a7d1aaf62c5fa1d65f7a3ff145080fd27b8ce06453c/68747470733a2f2f706f7365722e707567782e6f72672f73696d706f642f6772617068716c2d726571756573742d666163746f72792f762f737461626c652e737667)](https://packagist.org/packages/simpod/graphql-request-factory)[![Infection MSI](https://camo.githubusercontent.com/e45bb48d915eab91a50211ba986b21063bf012682123ff0ce15cb1a7035ce7bf/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d25324673696d506f642532465048502d4772617068514c2d526571756573742d466163746f72792532466d6173746572)](https://infection.github.io)

This factory creates PSR-7 GraphQL Request through PSR-17 message factories that you can be passed to PSR-18 client.

Installation
------------

[](#installation)

Add as [Composer](https://getcomposer.org/) dependency:

```
composer require simpod/graphql-request-factory
```

Usage
-----

[](#usage)

```
