rebing/graphql-laravel
Code-first GraphQL integration for Laravel: define schemas, queries, and mutations in PHP classes instead of .graphql files. Supports multiple schemas, resolver middleware, privacy controls, and dataloaders to avoid n+1 queries.
Architecture fit
rebing/graphql-laravel-select-fields package directly address GraphQL’s biggest delivery risk: N+1 queries and over-fetching. Built-in security controls—introspection toggle, depth/complexity limits, batching limits, GET read-only enforcement—are relevant for production exposure.Integration feasibility
composer require, publish config, scaffold a type/query with make:graphql:*, register in config/graphql.php, and call /graphql. Testing helpers and Testbench integration reduce QA setup effort.^8.2, Laravel 12.x–13.x, and webonyx/graphql-php ^15.22.1. Applications on older Laravel/PHP need an upgrade plan or an older package release; this can dominate the delivery timeline.Technical risk
webonyx/graphql-php releases. Pin versions, test upgrades in CI, and identify an internal owner. MIT licensing permits a fork, but forking is an operating cost, not a free mitigation.Dependents: 0 and an opportunity score of 36.62. Treat the dependent count as unreliable until validated via Packagist/GitHub; assume community support rather than commercial SLA.Key questions
Stack fit
select()/with() optimization is a measured need.Migration path
/graphql and migrate one bounded domain at a time. Wrap existing service/action classes in resolvers rather than duplicating business logic.config/graphql.php; define schema boundaries, auth context, validation rules, error formatting, introspection policy, complexity/depth limits, and tracing.Compatibility
webonyx/graphql-php ^15.22.1 aligns with other dependencies.Sequencing
Maintenance
Support
Scaling
Failure modes
Ramp-up
How can I help you explore Laravel packages today?