PHPackages                             fandogh/laravel-graphql-relay - 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. fandogh/laravel-graphql-relay

ActiveLibrary[API Development](/categories/api)

fandogh/laravel-graphql-relay
=============================

Adds relay specifications to laravel graphql server

0.4.0(9y ago)118MITPHP

Since Nov 16Pushed 3y ago1 watchersCompare

[ Source](https://github.com/pi0/laravel-graphql-relay)[ Packagist](https://packagist.org/packages/fandogh/laravel-graphql-relay)[ RSS](/packages/fandogh-laravel-graphql-relay/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (5)Versions (19)Used By (0)

laravel-graphql-relay
=====================

[](#laravel-graphql-relay)

[![Travis](https://camo.githubusercontent.com/71f68a2e2cbcfd6c3d3c1d56e724682fd0f1defda16c0dd3dff132daf2fc496f/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7069302f6c61726176656c2d6772617068716c2d72656c61792e7376673f6d61784167653d32353932303030)](https://travis-ci.org/pi0/laravel-graphql-relay.svg?branch=master)[![Packagist](https://camo.githubusercontent.com/aa51262c6712cc22022f5daa8ea4f5e9de1bc565ce3faa5ac8cacc2e51eda307/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f66616e646f67682f6c61726176656c2d6772617068716c2d72656c61792e7376673f6d61784167653d32353932303030)](https://packagist.org/packages/fandogh/laravel-graphql-relay)[![Packagist](https://camo.githubusercontent.com/778b01bd8f82a6420a4f9c40f47dce0d8f09ae3756b7b59230ffd358c645dcb4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f66616e646f67682f6c61726176656c2d6772617068716c2d72656c61792e7376673f6d61784167653d32353932303030)](https://packagist.org/packages/fandogh/laravel-graphql-relay)[![Packagist](https://camo.githubusercontent.com/19ab8533394debcbf077788342314c936747392f0215d7ee0287186b77b37e28/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f66616e646f67682f6c61726176656c2d6772617068716c2d72656c61792e7376673f6d61784167653d32353932303030)](https://packagist.org/packages/fandogh/laravel-graphql-relay)

*an active fork of [nuwave/laravel-graphql-relay](https://github.com/nuwave/laravel-graphql-relay)*

Use Facebook [GraphQL](http://facebook.github.io/graphql/) with [React Relay](https://facebook.github.io/relay/). This package extends graphql-php to work with Laravel and is currently **a work in progress**. You can reference what specifications GraphQL needs to provide to work with Relay in the [documentation](https://facebook.github.io/relay/docs/graphql-relay-specification.html#content).

Although this package no longer depends on [laravel-graphql](https://github.com/Folkloreatelier/laravel-graphql), it laid the foundation for this package which likely wouldn't exist without it. It is also a great alternative if you are using GraphQL w/o support for Relay.

Because this package is still in the early stages, breaking changes will occur. We will keep the documentation updated with the current release. Please feel free to contribute, PR are absolutely welcome!

### Installation

[](#installation)

You must then modify your composer.json file and run composer update to include the latest version of the package in your project.

```
"require": {
    "fandogh/laravel-graphql-relay": "0.3.*"
}
```

Or you can use the composer require command from your terminal.

```
composer require fandogh/laravel-graphql-relay
```

Add the service provider to your `config/app.php` file

```
Nuwave\Relay\LaravelServiceProvider::class
```

Add the Relay &amp; GraphQL facade to your app/config.php file

```
'GraphQL' => Nuwave\Relay\Facades\GraphQL::class,
'Relay' => Nuwave\Relay\Facades\Relay::class,
```

Publish the configuration file

```
php artisan vendor:publish --provider="Nuwave\Relay\LaravelServiceProvider"
```

Create a `schema.php` file and add the path to the config. See the [Schema](https://github.com/nuwave/laravel-graphql-relay/wiki/3.-Schema#schema-file) wiki page for more information on `schema.php`.

```
// config/relay.php
// ...
'schema' => [
    'path'      => 'Http/schema.php',
    'output'    => null,
],
```

To generate a `schema.json` file (used with the Babel Relay Plugin):

```
php artisan relay:schema
```

*You can customize the output path in the `relay.php` config file under `schema.output`*

For additional documentation, look through the docs folder or read the Wiki.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 92.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~21 days

Recently: every ~34 days

Total

13

Last Release

3624d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/247155?v=4)[Shayan Pooya](/maintainers/pooya)[@pooya](https://github.com/pooya)

---

Top Contributors

[![chrissm79](https://avatars.githubusercontent.com/u/1976169?v=4)](https://github.com/chrissm79 "chrissm79 (138 commits)")[![pi0](https://avatars.githubusercontent.com/u/5158436?v=4)](https://github.com/pi0 "pi0 (7 commits)")[![davidstoker](https://avatars.githubusercontent.com/u/1275992?v=4)](https://github.com/davidstoker "davidstoker (2 commits)")[![bcarroll22](https://avatars.githubusercontent.com/u/11020406?v=4)](https://github.com/bcarroll22 "bcarroll22 (1 commits)")[![chazmuzz](https://avatars.githubusercontent.com/u/883595?v=4)](https://github.com/chazmuzz "chazmuzz (1 commits)")

---

Tags

laravelgraphqlreactRelay

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fandogh-laravel-graphql-relay/health.svg)

```
[![Health](https://phpackages.com/badges/fandogh-laravel-graphql-relay/health.svg)](https://phpackages.com/packages/fandogh-laravel-graphql-relay)
```

###  Alternatives

[nuwave/lighthouse

A framework for serving GraphQL from Laravel

3.5k11.4M112](/packages/nuwave-lighthouse)[overblog/graphql-bundle

This bundle provides tools to build a GraphQL server in your Symfony App.

7968.2M34](/packages/overblog-graphql-bundle)[rebing/graphql-laravel

Laravel wrapper for PHP GraphQL

2.2k7.5M32](/packages/rebing-graphql-laravel)[mll-lab/laravel-graphiql

Easily integrate GraphiQL into your Laravel project

693.6M12](/packages/mll-lab-laravel-graphiql)[thecodingmachine/graphqlite-laravel

A Laravel service provider package to help you get started with GraphQLite in Laravel.

1854.1k1](/packages/thecodingmachine-graphqlite-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
