# rebing/graphql-laravel

Laravel wrapper for Facebook's GraphQL

Repository: https://github.com/rebing/graphql-laravel
Canonical: https://ross.abutalabs.com/products/graphql-laravel
Language: PHP
License: MIT
License Family: permissive
Last push: 2026-08-17T21:37:06+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 89, longevity 100
- inputs: {"age_days": 3635, "days_push": 16, "days_rel": 76, "gap_med": 29, "n_releases_24m": 12}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2220, forks 271 (observed 2026-08-28T04:06:27.517693+00:00)

## What it is
A Laravel package providing code-first GraphQL integration built on webonyx/graphql-php. Schemas are defined in PHP classes with support for multiple schemas, per-schema middlewares, and n+1 query avoidance via dataloaders or SelectFields.

## Use cases
- add a graphql api to a laravel app
- define graphql schemas in php classes instead of sdl files
- serve graphql queries and mutations in laravel
- avoid n+1 queries in graphql resolvers with eloquent
- run multiple graphql schemas with separate middlewares

## When to choose
- you use Laravel and want a code-first GraphQL schema in PHP
- you need multiple schemas with per-schema middleware
- you want dataloader or SelectFields support to prevent n+1 queries

## When to avoid
- you need GraphQL subscriptions or real-time push
- you prefer schema-first .graphql SDL files (consider Lighthouse)
- you are not using Laravel or a PHP backend

## Facets
- artifact type: library
- maturity: active
- function: graphql, api-framework, middleware, routing
- domain: web-development, backend, apis
- platform: php, self-hosted
- tags: laravel, code-first-schema, eloquent, dataloader, webonyx-graphql-php, php, web-server

## Member repositories
- rebing/graphql-laravel (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:27.517693+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:45:50.862882+00:00, confidence not recorded.
  - readme: https://github.com/rebing/graphql-laravel (fetched 2026-08-28T04:06:27.517693+00:00, sha 90f63b331efd)
- Data as of 2026-08-30T08:39:29.467469+00:00.
