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.14(5mo ago)63.2k↓40%3[1 issues](https://github.com/nodesol/laraql/issues)[5 PRs](https://github.com/nodesol/laraql/pulls)MITPHPPHP ^8.3|^8.4CI passing

Since Mar 7Pushed 1mo 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 1mo ago

READMEChangelog (10)Dependencies (15)Versions (19)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

49

—

FairBetter than 95% of packages

Maintenance79

Regular maintenance activity

Popularity29

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 91.8% 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 ~20 days

Total

15

Last Release

152d ago

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

v1.0.1PHP ^8.3|^8.4

### 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 (89 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 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

[joselfonseca/lighthouse-graphql-passport-auth

Add GraphQL types and mutations for login and recover password functionalities

234769.9k1](/packages/joselfonseca-lighthouse-graphql-passport-auth)[mll-lab/laravel-graphiql

Easily integrate GraphiQL into your Laravel project

683.2M9](/packages/mll-lab-laravel-graphiql)[yakovenko/laravel-lighthouse-graphql-multi-schema

A Laravel package that provides multi-schema support for Lighthouse GraphQL.

1562.5k](/packages/yakovenko-laravel-lighthouse-graphql-multi-schema)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ryangjchandler/bearer

Minimalistic token-based authentication for Laravel API endpoints.

8129.8k](/packages/ryangjchandler-bearer)[tapp/filament-webhook-client

Add a Filament resource and a policy for Spatie Webhook client

1120.2k](/packages/tapp-filament-webhook-client)

PHPackages © 2026

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