PHPackages                             dalnix/laravel-graphql-generator - 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. [Framework](/categories/framework)
4. /
5. dalnix/laravel-graphql-generator

ActiveLibrary[Framework](/categories/framework)

dalnix/laravel-graphql-generator
================================

Generator of Queries, Types and Mutations for laravel-graphql

0.2.2(7y ago)11521[1 issues](https://github.com/dalnix/laravel-graphql-generator/issues)AGPL-3.0PHPPHP ^7.0

Since Sep 12Pushed 7y ago3 watchersCompare

[ Source](https://github.com/dalnix/laravel-graphql-generator)[ Packagist](https://packagist.org/packages/dalnix/laravel-graphql-generator)[ RSS](/packages/dalnix-laravel-graphql-generator/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (5)Used By (0)

Laravel GraphQL Generator
=========================

[](#laravel-graphql-generator)

Note: work in progress

This package will help you to generate Types, Queries and Mutations for [Folkloreatelier/laravel-graphql](https://github.com/Folkloreatelier/laravel-graphql)'s package.

### Installation

[](#installation)

Install composer package

```
$ composer install dalnix/laravel-graphql-generator
```

Use following command to generate your Types, Queries or Mutations, files will be created in app/GraphQL/Type, app/GraphQL/Mutation or app/GraphQL/Query. When creating a new Type, all columns of the table in the database will be imported, if you want to remove some fields that should'nt be able to access via GraphQL, edit your Type fields method.

```
$ php artisan dalnix:graphql:make
```

Publish config to change your GraphQL schema

```
$ php artisan vendor:publish
```

Test your queries or mutations: (app\_url)/graphiql/custom (custom is the default laravel graphql generator schema)

### Notes

[](#notes)

Laravel graphql generator does not generate complete functioning resolve functions for your queries or mutations, you have to manually edit your queries or mutations to be able to return data.

You can't add relations via the command, to do so you must edit your Types in order to be able to make queries with eager loaded relations, see [laravel-graphql's documention on eager loading relationships](https://github.com/Folkloreatelier/laravel-graphql/blob/develop/docs/advanced.md#eager-loading-relationships)

### Todos

[](#todos)

- Make it possible to add relations directly in the command

License
-------

[](#license)

AGPL-3.0

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

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

Total

4

Last Release

2587d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c820a3fb013f3b40e831b3753dc3f677d0d0e23d0c0458d406a446af369bc585?d=identicon)[larsemil](/maintainers/larsemil)

---

Tags

frameworklaravelgraphqlgenerator

### Embed Badge

![Health badge](/badges/dalnix-laravel-graphql-generator/health.svg)

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

###  Alternatives

[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3691.5k](/packages/codewithdennis-larament)[kompo/kompo

Laravel &amp; Vue.js FullStack Components for Rapid Application Development

11812.4k21](/packages/kompo-kompo)

PHPackages © 2026

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