PHPackages                             adeel3330/graphql-helper-laravel - 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. adeel3330/graphql-helper-laravel

ActiveLibrary

adeel3330/graphql-helper-laravel
================================

Lightweight GraphQL helper layer for Laravel with validation, resolver structure, and response formatting.

00PHP

Since Mar 27Pushed 1mo agoCompare

[ Source](https://github.com/Adeel3330/graphql-helper-laravel)[ Packagist](https://packagist.org/packages/adeel3330/graphql-helper-laravel)[ RSS](/packages/adeel3330-graphql-helper-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel GraphQL Helper
======================

[](#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?
-------------------

[](#-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.

---

✨ Features
----------

[](#-features)

- ✅ Laravel-style validation for GraphQL resolvers
- ✅ Clean base resolver class
- ✅ Standard API response helpers
- ✅ Exception → GraphQL error formatting
- ✅ Plug &amp; play with Lighthouse or custom GraphQL setups

---

📦 Installation
--------------

[](#-installation)

```
composer require yourname/laravel-graphql-helper
```

---

⚙️ Usage
--------

[](#️-usage)

### 1. Create a Resolver

[](#1-create-a-resolver)

```
use YourName\GraphQLHelper\Base\Resolver;

class CreateUser extends Resolver
{
    public function rules(): array
    {
        return [
            'email' => 'required|email',
            'password' => 'required|min:6',
        ];
    }

    public function handle($args)
    {
        return User::create($args);
    }
}
```

---

### 2. Validation (Automatic)

[](#2-validation-automatic)

No need to manually validate — it's handled before execution.

---

### 3. Standard Responses

[](#3-standard-responses)

```
use YourName\GraphQLHelper\Support\GraphQLResponse;

return GraphQLResponse::success($data);

return GraphQLResponse::error('Something went wrong');
```

---

🔥 Example Response
------------------

[](#-example-response)

```
{
  "data": {...},
  "message": "Success",
  "status": true
}
```

---

🧠 Philosophy
------------

[](#-philosophy)

- Keep it **minimal**
- Follow **Laravel conventions**
- Improve **developer experience**
- Avoid unnecessary abstraction

---

🔌 Works With
------------

[](#-works-with)

- Lighthouse GraphQL
- Custom GraphQL implementations

---

🤝 Contributing
--------------

[](#-contributing)

PRs are welcome! Keep it simple and aligned with Laravel philosophy &amp; Xiaroo Team.

---

📄 License
---------

[](#-license)

MIT

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance60

Regular maintenance activity

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ec07a5f728e21e84233fcc5a42ccee366d465c99a968f294f81c0523ee27ce9?d=identicon)[Adeel3330](/maintainers/Adeel3330)

---

Top Contributors

[![Adeel3330](https://avatars.githubusercontent.com/u/75366195?v=4)](https://github.com/Adeel3330 "Adeel3330 (10 commits)")

### Embed Badge

![Health badge](/badges/adeel3330-graphql-helper-laravel/health.svg)

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

PHPackages © 2026

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