PHPackages                             salehhashemi/laravel-intelli-graphql - 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. [Database &amp; ORM](/categories/database)
4. /
5. salehhashemi/laravel-intelli-graphql

ActiveLibrary[Database &amp; ORM](/categories/database)

salehhashemi/laravel-intelli-graphql
====================================

An AI-driven Laravel package for generating GraphQL schemas, queries, and mutations based on database tables.

v0.1.1(3y ago)76MITPHPPHP ^8.1

Since Jun 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/salehhashemi1992/laravel-intelli-graphql)[ Packagist](https://packagist.org/packages/salehhashemi/laravel-intelli-graphql)[ Docs](https://github.com/salehhashemi1992/laravel-intelli-graphql)[ RSS](/packages/salehhashemi-laravel-intelli-graphql/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

Laravel IntelliGraphQL Package
==============================

[](#laravel-intelligraphql-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/102be35f0dd7412a836a72d8dfa6bd9893deaaaa5818983a45e815963cb7a1eb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73616c656868617368656d692f6c61726176656c2d696e74656c6c692d6772617068716c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/salehhashemi/laravel-intelli-graphql)[![Total Downloads](https://camo.githubusercontent.com/439882355dd282294e4785186a5230b7cbc94e6d697003299aec9983e911f74b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73616c656868617368656d692f6c61726176656c2d696e74656c6c692d6772617068716c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/salehhashemi/laravel-intelli-graphql)[![GitHub Actions](https://camo.githubusercontent.com/3cfa78d4940dd7427684912ef5e904adc57bed11eead5574e7993c7914cc5bad/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f73616c656868617368656d69313939322f6c61726176656c2d696e74656c6c692d6772617068716c2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473)](https://github.com/salehhashemi1992/laravel-intelli-graphql/actions/workflows/run-tests.yml)[![StyleCI](https://camo.githubusercontent.com/3c2a9fe1e17e5d3d50eb3d0d6ed9506ff623f1de068c585595586237d9b03520/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3633363336333133372f736869656c643f6272616e63683d6d61696e)](https://github.styleci.io/repos/636363137?branch=main)

The Laravel IntelliGraphQL package is an AI-driven Laravel package for generating GraphQL schemas, queries, and mutations based on a given database table.

[![Header Image](./assets/header.png)](./assets/header.png)

Installation
------------

[](#installation)

1. Install the package via composer:

    ```
    composer require salehhashemi/laravel-intelli-graphql

    ```
2. Publish the configuration file:

    ```
    php artisan vendor:publish --provider="Salehhashemi\LaravelIntelliGraphql\LaravelIntelliGraphqlServiceProvider"

    ```
3. Add your OpenAI API key to the `.env` file:

    ```
    OPEN_AI_KEY=your_openai_key

    ```
4. Optionally, you can change the default model used by OpenAI in the `.env` file:

    ```
    OPEN_AI_MODEL=gpt-4

    ```

Usage
-----

[](#usage)

To use the Laravel IntelliGraphQL package, you can use the ai:graphql command in your terminal, providing the name of the database table as an argument:

```
php artisan ai:graphql {table}

```

Replace {table} with the name of the table for which you wish to generate the GraphQL schema, queries, and mutations.

For example:

```
php artisan ai:graphql users

```

This command will generate a GraphQL schema, queries, and mutations for the users table, and will place them in a file called users.graphql within the graphql directory at the root of your Laravel project.

The generated GraphQL schema, queries, and mutations will include all the columns within the provided table. The AI model uses this information to intelligently generate the appropriate GraphQL schema, queries, and mutations.

Examples
--------

[](#examples)

Assume you have a table named users with the following columns: id, name, email, email\_verified\_at, password, remember\_token, created\_at, updated\_at.

Running the command php artisan ai:graphql users will generate a users.graphql file in the graphql directory at the root of your Laravel project. The content might look something like this:

```
type User {
  id: ID!
  name: String!
  email: String!
  emailVerifiedAt: DateTime
  password: String!
  rememberToken: String
  createdAt: DateTime!
  updatedAt: DateTime!
}

type Query {
  users: [User!]!
  user(id: ID!): User
}

type Mutation {
  createUser(name: String!, email: String!, password: String!): User!
  updateUser(id: ID!, name: String, email: String, password: String): User
  deleteUser(id: ID!): User
}

```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Saleh Hashemi](https://github.com/salehhashemi1992)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~1 days

Total

2

Last Release

1124d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/57674418?v=4)[salehhashemi](/maintainers/salehhashemi)[@salehhashemi](https://github.com/salehhashemi)

---

Top Contributors

[![salehhashemi1992](https://avatars.githubusercontent.com/u/81674631?v=4)](https://github.com/salehhashemi1992 "salehhashemi1992 (13 commits)")

---

Tags

aigraphqllaravelopenaiphplaravelgraphqldatabaseaiqueriesschemassalehhashemimutationsintelli-graphql

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/salehhashemi-laravel-intelli-graphql/health.svg)

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

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k54.9M11.6k](/packages/illuminate-database)[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.4M96](/packages/mongodb-laravel-mongodb)[api-platform/laravel

API Platform support for Laravel

58171.5k14](/packages/api-platform-laravel)[aimeos/laravel-nestedset

Nested Set Model for Laravel

3714.4k6](/packages/aimeos-laravel-nestedset)[vectorial1024/laravel-cache-evict

Efficiently remove expired Laravel file/database cache data

5917.4k](/packages/vectorial1024-laravel-cache-evict)[itpathsolutions/dbstan

Database Standardization and Analysis Tool for Laravel

492.8k](/packages/itpathsolutions-dbstan)

PHPackages © 2026

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