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

AbandonedArchivedLibrary[API Development](/categories/api)

nuwave/laravel-graphql-relay
============================

Adds relay specifications to laravel graphql server

v0.3.4(9y ago)441.8k11MITPHP

Since Nov 16Pushed 6y ago9 watchersCompare

[ Source](https://github.com/nuwave/laravel-graphql-relay)[ Packagist](https://packagist.org/packages/nuwave/laravel-graphql-relay)[ RSS](/packages/nuwave-laravel-graphql-relay/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (5)Versions (19)Used By (0)

This project is deprecated in favor of
=============================================================================

[](#this-project-is-deprecated-in-favor-of-httpsgithubcomnuwavelighthouse)

laravel-grapql-relay
====================

[](#laravel-grapql-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 [laraval-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": {
    "nuwave/laravel-graphql-relay": "0.3.*"
}
```

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

```
composer require nuwave/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

35

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 95.9% 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 ~30 days

Recently: every ~62 days

Total

13

Last Release

3463d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/76b3f24e6257d88064edff586fc879ea6071657079a82c3b7ecb4ccd9d518596?d=identicon)[chrissm79](/maintainers/chrissm79)

---

Top Contributors

[![chrissm79](https://avatars.githubusercontent.com/u/1976169?v=4)](https://github.com/chrissm79 "chrissm79 (139 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)")[![hosmelq](https://avatars.githubusercontent.com/u/1166143?v=4)](https://github.com/hosmelq "hosmelq (1 commits)")[![spawnia](https://avatars.githubusercontent.com/u/12158000?v=4)](https://github.com/spawnia "spawnia (1 commits)")

---

Tags

laravelgraphqlreactRelay

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[nuwave/lighthouse

A framework for serving GraphQL from Laravel

3.5k10.7M93](/packages/nuwave-lighthouse)[rebing/graphql-laravel

Laravel wrapper for PHP GraphQL

2.2k7.1M26](/packages/rebing-graphql-laravel)[overblog/graphql-bundle

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

8027.9M28](/packages/overblog-graphql-bundle)[mll-lab/laravel-graphiql

Easily integrate GraphiQL into your Laravel project

683.2M9](/packages/mll-lab-laravel-graphiql)[ivome/graphql-relay-php

A PHP port of GraphQL Relay reference implementation

271632.4k5](/packages/ivome-graphql-relay-php)[scrnhq/laravel-bakery

An on-the-fly GraphQL Schema generator from Eloquent models for Laravel.

10518.2k](/packages/scrnhq-laravel-bakery)

PHPackages © 2026

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