PHPackages                             kadirgun/laravel-json-query - 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. kadirgun/laravel-json-query

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

kadirgun/laravel-json-query
===========================

A Laravel package that enables frontend JavaScript applications to securely and efficiently execute Eloquent queries using a TypeScript-friendly interface, with built-in model whitelisting, parameter validation, and performance optimizations like pagination and caching.

0.0.4(10mo ago)17[4 PRs](https://github.com/kadirgun/laravel-json-query/pulls)MITPHPPHP ^8.2CI passing

Since Jun 26Pushed 1mo agoCompare

[ Source](https://github.com/kadirgun/laravel-json-query)[ Packagist](https://packagist.org/packages/kadirgun/laravel-json-query)[ Docs](https://github.com/kadirgun/laravel-json-query)[ GitHub Sponsors](https://github.com/KadirGun)[ RSS](/packages/kadirgun-laravel-json-query/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (15)Versions (9)Used By (0)

A Laravel package that enables frontend JavaScript applications to securely and efficiently execute Eloquent queries using a TypeScript-friendly interface, with built-in model whitelisting, parameter validation, and performance optimizations like pagination and caching.
==============================================================================================================================================================================================================================================================================

[](#a-laravel-package-that-enables-frontend-javascript-applications-to-securely-and-efficiently-execute-eloquent-queries-using-a-typescript-friendly-interface-with-built-in-model-whitelisting-parameter-validation-and-performance-optimizations-like-pagination-and-caching)

[![Latest Version on Packagist](https://camo.githubusercontent.com/041c3b0e3bd898ca6e843414dc0059e1353287c2bf6fb45ac0c69bd5611fa840/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b6164697267756e2f6c61726176656c2d6a736f6e2d71756572792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kadirgun/laravel-json-query)[![GitHub Tests Action Status](https://camo.githubusercontent.com/326d459399261a2c3c8f6bfcb42094e6a77513761150591b2f9d1355124df852/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6b6164697267756e2f6c61726176656c2d6a736f6e2d71756572792f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/kadirgun/laravel-json-query/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/2e79129579eaf0a7df3bd059eaaafd65986498dc36bf2a8ee1765aa4e443c8f7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6b6164697267756e2f6c61726176656c2d6a736f6e2d71756572792f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/kadirgun/laravel-json-query/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/b44c98e3738f2e72b938bdba025955b25e855fc3c1a8422d2a4195af0054646a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b6164697267756e2f6c61726176656c2d6a736f6e2d71756572792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kadirgun/laravel-json-query)

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/cf548cb1766cb1aac4cf6ad8a7e4d3b490b82da266b66d1bcb698a855e00abbc/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f6c61726176656c2d6a736f6e2d71756572792e6a70673f743d31)](https://spatie.be/github-ad-click/laravel-json-query)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

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

[](#installation)

You can install the package via composer:

```
composer require kadirgun/laravel-json-query
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="laravel-json-query-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-json-query-config"
```

This is the contents of the published config file:

```
return [
];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="laravel-json-query-views"
```

Usage
-----

[](#usage)

```
$JsonQuery = new KadirGun\JsonQuery();
echo $JsonQuery->echoPhrase('Hello, KadirGun!');
```

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)

- [Kadir Gün](https://github.com/kadirgun)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance73

Regular maintenance activity

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% 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 ~4 days

Total

3

Last Release

310d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1fae1994955f99ffd37f6dd198da216d3b0348942492b695b5d902c568ebec70?d=identicon)[kadirgun](/maintainers/kadirgun)

---

Top Contributors

[![kadirgun](https://avatars.githubusercontent.com/u/1864516?v=4)](https://github.com/kadirgun "kadirgun (30 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")

---

Tags

laravelKadirGunlaravel-json-query

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/kadirgun-laravel-json-query/health.svg)

```
[![Health](https://phpackages.com/badges/kadirgun-laravel-json-query/health.svg)](https://phpackages.com/packages/kadirgun-laravel-json-query)
```

###  Alternatives

[dyrynda/laravel-model-uuid

This package allows you to easily work with UUIDs in your Laravel models.

4802.8M8](/packages/dyrynda-laravel-model-uuid)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[watson/validating

Eloquent model validating trait.

9723.3M47](/packages/watson-validating)[jerome/filterable

Streamline dynamic Eloquent query filtering with seamless API request integration and advanced caching strategies.

19226.1k](/packages/jerome-filterable)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)[outerweb/settings

Application wide settings stored in your database

4899.2k5](/packages/outerweb-settings)

PHPackages © 2026

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