PHPackages                             x-graphql/schema-gateway - 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. x-graphql/schema-gateway

ActiveLibrary[API Development](/categories/api)

x-graphql/schema-gateway
========================

Merging all sub schemas into one and add relationships for them

0.2.3(2y ago)233.4k↓26.6%MITPHPPHP &gt;=8.2

Since Mar 18Pushed 2y agoCompare

[ Source](https://github.com/x-graphql/schema-gateway)[ Packagist](https://packagist.org/packages/x-graphql/schema-gateway)[ RSS](/packages/x-graphql-schema-gateway/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (11)Versions (6)Used By (0)

Schema Gateway
==============

[](#schema-gateway)

[![unit tests](https://github.com/x-graphql/schema-gateway/actions/workflows/unit_tests.yml/badge.svg)](https://github.com/x-graphql/schema-gateway/actions/workflows/unit_tests.yml/badge.svg)[![codecov](https://camo.githubusercontent.com/616ce0b43ba655a8caf3482c819e355496c71b4a152692808aee365e1601ed0f/68747470733a2f2f636f6465636f762e696f2f67682f782d6772617068716c2f736368656d612d676174657761792f67726170682f62616467652e7376673f746f6b656e3d4f444d54575a664f724c)](https://codecov.io/gh/x-graphql/schema-gateway)

[![Copyright GraphQL Stitching](https://camo.githubusercontent.com/36c80a98906d888b2fe59c18b98fb44252310d34ac3c7b338e9fcffd5a640a1f/68747470733a2f2f7468652d6775696c642e6465762f6772617068716c2f737469746368696e672f5f6e6578742f7374617469632f6d656469612f64697374726962757465642d67726170682e32333764373461312e706e67)](https://camo.githubusercontent.com/36c80a98906d888b2fe59c18b98fb44252310d34ac3c7b338e9fcffd5a640a1f/68747470733a2f2f7468652d6775696c642e6465762f6772617068716c2f737469746368696e672f5f6e6578742f7374617469632f6d656469612f64697374726962757465642d67726170682e32333764373461312e706e67)

**Image source: [GraphQL Stitching](https://the-guild.dev/graphql/stitching)**

Getting started
---------------

[](#getting-started)

Install this package via [Composer](https://getcomposer.org)

```
composer require x-graphql/schema-gateway
```

Add `http-schema` package for creating and executing GraphQL schema over HTTP:

```
composer require x-graphql/http-schema
```

Usages
------

[](#usages)

```
