PHPackages                             laracomponents/graphql - 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. laracomponents/graphql

ActiveLibrary[API Development](/categories/api)

laracomponents/graphql
======================

GraphQL &amp; Relay for laravel

0.2.2(8y ago)068[3 issues](https://github.com/LaraComponents/graphql/issues)MITPHPPHP &gt;=5.6.4

Since Aug 13Pushed 8y ago1 watchersCompare

[ Source](https://github.com/LaraComponents/graphql)[ Packagist](https://packagist.org/packages/laracomponents/graphql)[ Docs](https://github.com/LaraComponents/graphql)[ RSS](/packages/laracomponents-graphql/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

GraphQL &amp; Relay for Laravel
===============================

[](#graphql--relay-for-laravel)

[![Build Status](https://camo.githubusercontent.com/c19e6ae079ce47035ff476e58702e78aed20fa646f2c5d362979b8b5bc89b2ea/68747470733a2f2f7472617669732d63692e6f72672f4c617261436f6d706f6e656e74732f6772617068716c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/LaraComponents/graphql)[![Latest Version](https://camo.githubusercontent.com/d28e3519cf455000bcadf22f645b22927398b7c6386a31b47b4b17c9ae5a2a3a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f4c617261436f6d706f6e656e74732f6772617068716c2e7376673f7374796c653d666c61742d737175617265)](https://github.com/LaraComponents/graphql/releases)[![Quality Score](https://camo.githubusercontent.com/e1ee71ba7e2b6ccebe23e470bfa728d6be3cec17ac3aefa052027aaa0bd36554/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f4c617261436f6d706f6e656e74732f6772617068716c2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/LaraComponents/graphql)[![StyleCI](https://camo.githubusercontent.com/ca8cdc155afe4a745a902a9d3c3401d2c2927885abb93fd6f6019cf2c5117cd9/68747470733a2f2f7374796c6563692e696f2f7265706f732f3130303137313039362f736869656c64)](https://styleci.io/repos/100171096)[![Total Downloads](https://camo.githubusercontent.com/27686c1c2ce51bb0100d6b2e4bfd72328b4f851e34e293a4d18b82acdf5308c4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f4c617261436f6d706f6e656e74732f6772617068716c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/LaraComponents/graphql)[![Software License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://github.com/LaraComponents/graphql/blob/master/LICENSE)

Introduction
------------

[](#introduction)

GraphQL &amp; Relay for Laravel

Requirements
------------

[](#requirements)

- PHP 5.6.4+ or newer
- Laravel 5.1 or newer

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

[](#installation)

Require this package with composer:

```
composer require laracomponents/graphql
```

Open your config/app.php and add the following to the providers array:

```
'providers' => [
    // ...
    LaraComponents\GraphQL\ServiceProvider::class,
],
```

Publish the configuration file:

```
php artisan vendor:publish --provider="LaraComponents\GraphQL\ServiceProvider"
```

Simple Usage
------------

[](#simple-usage)

Create a schema:

```
$ php artisan make:graphql:scheme DefaultSchema
```

Create a type:

```
$ php artisan make:graphql:type UserType
 Which type would you like to create?:
  [0] AbstractType
  [1] AbstractScalarType
  [2] AbstractObjectType
  [3] AbstractMutationObjectType
  [4] AbstractInputObjectType
  [5] AbstractInterfaceType
  [6] AbstractEnumType
  [7] AbstractListType
  [8] AbstractUnionType
```

Create a field:

```
$ php artisan make:graphql:field UsersField
```

Documentation
-------------

[](#documentation)

All detailed documentation is available on the main GraphQL repository – .

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/LaraComponents/graphql/blob/master/LICENSE) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

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 ~3 days

Total

4

Last Release

3190d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ef39b0b46136030c30f3fea73eb251ccaea7c439deda9064dad59572e78bb93f?d=identicon)[stenin-nikita](/maintainers/stenin-nikita)

---

Tags

apigraphqllaravelrelayapilaravelgraphqlRelay

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/laracomponents-graphql/health.svg)

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

###  Alternatives

[aimeos/aimeos-laravel

Cloud native, API first Laravel eCommerce package with integrated AI for ultra-fast online shops, marketplaces and complex B2B projects

8.6k214.7k3](/packages/aimeos-aimeos-laravel)[ivome/graphql-relay-php

A PHP port of GraphQL Relay reference implementation

271632.4k5](/packages/ivome-graphql-relay-php)[alexaandrov/laravel-graphql-client

GraphQL client for laravel/lumen

125.6k](/packages/alexaandrov-laravel-graphql-client)

PHPackages © 2026

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