PHPackages                             sukohi/json-where - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. sukohi/json-where

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sukohi/json-where
=================

2.0.0(10y ago)036MITPHP

Since Aug 8Pushed 10y ago1 watchersCompare

[ Source](https://github.com/SUKOHI/JsonWhere)[ Packagist](https://packagist.org/packages/sukohi/json-where)[ RSS](/packages/sukohi-json-where/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (7)Used By (0)

JsonWhere
=========

[](#jsonwhere)

A PHP package mainly developed for Laravel to easily set where clause for JSON.
(This is for Laravel 5+. [For Laravel 4.2](https://github.com/SUKOHI/JsonWhere/tree/1.0))

Installation
============

[](#installation)

Add this package name in composer.json

```
"require": {
  "sukohi/json-where": "2.*"
}

```

Execute composer command.

```
composer update

```

Register the service provider in app.php

```
'providers' => [
    ...Others...,
    Sukohi\JsonWhere\JsonWhereServiceProvider::class,
]

```

Also alias

```
'aliases' => [
    ...Others...,
    'JsonWhere'   => Sukohi\JsonWhere\Facades\JsonWhere::class
]

```

Usage
=====

[](#usage)

```
$jsons = DB::table('tests')->where(function($query){

                \JsonWhere::query($query)
                    ->column('json')
                    ->value(3, $type = 'auto'); // $type: (default: auto), string or int. Optional.

            })->get();

```

or You also can use model like so.

```
$jsons = \App\Test::where(function($query){

                \JsonWhere::query($query)
                    ->column('json')
                    ->value(3, 'int');

            })->get();

```

License
=======

[](#license)

This package is licensed under the MIT License.

Copyright 2015 Sukohi Kuhoh

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

Established project with proven stability

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

Total

6

Last Release

3925d ago

Major Versions

1.0.1 → 2.0.02015-08-08

### Community

Maintainers

![](https://www.gravatar.com/avatar/2980d59b309d45df3f2e6e51b1d336614da063240b8f76f873f287cd745ec5db?d=identicon)[Sukohi](/maintainers/Sukohi)

---

Top Contributors

[![SUKOHI](https://avatars.githubusercontent.com/u/5362394?v=4)](https://github.com/SUKOHI "SUKOHI (1 commits)")

### Embed Badge

![Health badge](/badges/sukohi-json-where/health.svg)

```
[![Health](https://phpackages.com/badges/sukohi-json-where/health.svg)](https://phpackages.com/packages/sukohi-json-where)
```

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4205.3M84](/packages/livewire-volt)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)

PHPackages © 2026

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