PHPackages                             nodesol/laraql - 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. [API Development](/categories/api)
4. /
5. nodesol/laraql

ActiveLibrary[API Development](/categories/api)

nodesol/laraql
==============

This is my package laraql

v1.0.15(2mo ago)73.7k↓71.2%3[1 issues](https://github.com/nodesol/laraql/issues)[3 PRs](https://github.com/nodesol/laraql/pulls)MITPHPPHP ^8.2|^8.3|^8.4|^8.5CI passing

Since Mar 7Pushed 1w ago1 watchersCompare

[ Source](https://github.com/nodesol/laraql)[ Packagist](https://packagist.org/packages/nodesol/laraql)[ Docs](https://github.com/nodesol/laraql)[ GitHub Sponsors](https://github.com/nodesol)[ RSS](/packages/nodesol-laraql/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (30)Versions (21)Used By (0)

LaraQL
======

[](#laraql)

Laravel, meet GraphQL.
----------------------

[](#laravel-meet-graphql)

[![Latest Version on Packagist](https://camo.githubusercontent.com/413b3acae0096e2fba77132b3f145c8b617bc6d75429d00ccb9e80ba8e1d4fb0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6f6465736f6c2f6c617261716c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nodesol/laraql)[![GitHub Tests Action Status](https://camo.githubusercontent.com/f0aba371bfc2d2c53f6cdc9f107b778e49c30acab55595aee44235162ad6f9a3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6e6f6465736f6c2f6c617261716c2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/nodesol/laraql/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/66804403b1d477aa4ab907451f85c40b271530f899a166e277d32abd365d880b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6e6f6465736f6c2f6c617261716c2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/nodesol/laraql/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/cd5d0a0c3ac92973c48715443cf8a372f03c9bb7f560e87718ae709b5b7fce02/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6f6465736f6c2f6c617261716c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nodesol/laraql)

LaraQL enables you to effortlessly integrate GraphQL into your Laravel application using native PHP attributes. Published in 2025 for modern developer workflows.

LaraQL uses Code-First Discovery. Instead of maintaining a separate .graphql file, your PHP classes become the source of truth. LaraQL scans these classes and generates the SDL for Lighthouse on the fly.

Documentation
-------------

[](#documentation)

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

[](#installation)

Use composer to add LaraQL to your Laravel project:

```
composer require nodesol/laraql
```

Publish the default configuration to customize scan paths.

```
php artisan vendor:publish --tag="laraql-schema"
```

Usage
-----

[](#usage)

The *\#\[Model()\]* attribute tells LaraQL that this class should be part of the GraphQL schema. LaraQL will automatically generate the necessary schema to create a **Type**, **Input**, two **Queries** (single/multiple), and **Mutations** (create/update/delete).

```
use Nodesol\LaraQL\Attributes\Model as ModelAttribute;

#[ModelAttribute()]
class Article extends Model
{
    public string $title;
}
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Amer Chaudhary](https://github.com/amermchaudhary)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance89

Actively maintained with recent releases

Popularity29

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 85.3% 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 ~26 days

Recently: every ~48 days

Total

16

Last Release

88d ago

PHP version history (3 changes)v1.0.0PHP ^8.4

v1.0.1PHP ^8.3|^8.4

v1.0.15PHP ^8.2|^8.3|^8.4|^8.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/172cfa7aa8371c021086ff905b18800e5085d7a465cc02ced76001d9f3c41761?d=identicon)[amermchaudhary](/maintainers/amermchaudhary)

---

Top Contributors

[![amermchaudhary](https://avatars.githubusercontent.com/u/2386728?v=4)](https://github.com/amermchaudhary "amermchaudhary (93 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (8 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (4 commits)")[![karimhassan3](https://avatars.githubusercontent.com/u/202865990?v=4)](https://github.com/karimhassan3 "karimhassan3 (4 commits)")

---

Tags

laravelgraphqllighthouseNodesol Corplaraqlnodesol

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/nodesol-laraql/health.svg)

```
[![Health](https://phpackages.com/badges/nodesol-laraql/health.svg)](https://phpackages.com/packages/nodesol-laraql)
```

###  Alternatives

[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M100](/packages/dedoc-scramble)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.3k3](/packages/defstudio-telegraph)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)[lettermint/lettermint-laravel

Official Lettermint driver for Laravel

1190.2k1](/packages/lettermint-lettermint-laravel)

PHPackages © 2026

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