Download the PHP package adeel3330/graphql-helper-laravel without Composer
On this page you can find all versions of the php package adeel3330/graphql-helper-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download adeel3330/graphql-helper-laravel
More information about adeel3330/graphql-helper-laravel
Files in adeel3330/graphql-helper-laravel
Package graphql-helper-laravel
Short Description Lightweight GraphQL helper layer for Laravel with validation, resolver structure, and response formatting.
License MIT
Informations about the package graphql-helper-laravel
Laravel GraphQL Helper
A lightweight helper layer for GraphQL in Laravel — focused on validation, clean resolver structure, and consistent responses.
Not a GraphQL engine. Not a replacement for Lighthouse. Just clean, Laravel-style developer experience.
🚀 Why This Package?
Working with GraphQL in Laravel often leads to:
- ❌ No standard validation approach
- ❌ Messy resolver logic
- ❌ Inconsistent response formats
This package solves that by bringing Laravel-like structure to GraphQL.
🔥 Key Feature: @autoResolver
No more manual resolver mapping.
Instead of writing:
Just use:
✅ Automatically maps:
✨ Features
- ✅
@autoResolverdirective (auto maps GraphQL fields → resolvers) - ✅ Artisan generator for resolvers
- ✅ Laravel-style validation inside resolvers
- ✅ Clean and consistent resolver structure
- ✅ Automatic directive namespace registration
- ✅ Standard response helpers
- ✅ Plug & play with Lighthouse
📦 Installation
⚙️ Requirements
- PHP ^8.3 | ^8.4
- Laravel ^11 | ^12 | ^13
- Lighthouse GraphQL package
⚙️ Usage
🔹 1. Create a Resolver
🔹 2. Resolver Example
🔹 3. Use in GraphQL Schema
🔹 4. Run Mutation
🔥 Validation (Automatic)
No need to manually validate — it's handled before execution:
📊 Standard Responses
🔥 Example Response
🧠 How It Works
- Reads GraphQL field name (
createUser) - Converts to class (
CreateUserResolver) -
Resolves from:
- Executes automatically
⚙️ Configuration (Optional)
📁 Folder Structure
🔌 Works With
- Lighthouse GraphQL
- Custom GraphQL implementations
🎯 Philosophy
- Keep it minimal
- Follow Laravel conventions
- Improve developer experience
- Avoid unnecessary abstraction
🤝 Contributing
PRs are welcome! Keep it simple and aligned with Laravel philosophy & Xiaroo Team.
📄 License
MIT
All versions of graphql-helper-laravel with dependencies
illuminate/support Version ^11.0 | ^12.0 | ^13.0
nuwave/lighthouse Version ^6.0