PHPackages                             neftaio/laravel-jmespath - 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. neftaio/laravel-jmespath

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

neftaio/laravel-jmespath
========================

1.0.8(3y ago)02.4k↓41.7%MITPHPPHP &gt;=8.0.2

Since Mar 7Pushed 3y agoCompare

[ Source](https://github.com/neftaio/laravel-jmespath)[ Packagist](https://packagist.org/packages/neftaio/laravel-jmespath)[ RSS](/packages/neftaio-laravel-jmespath/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (6)Versions (8)Used By (0)

laravel-jmespath
================

[](#laravel-jmespath)

A Laravel 8 wrapper for use of the [jmespath.php](https://github.com/jmespath/jmespath.php) library. The jmespath.php library is an implementation of the [JMESPath](http://jmespath.org/) specification.

This package also provides Artisan commands to pre-compile and manage your JMESPath expressions.

Thanks to pakages developed by libtek [libtek/laravel-jmespath](https://github.com/libtek/laravel-jmespath) and ofumbi [ofumbi/laravel-jmespath](https://github.com/ofumbi/laravel-jmespath).

Use this package carefully, actually, I only update dependencies to allow your installation on my projects.

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

[](#installation)

### Install through composer

[](#install-through-composer)

```
$ composer require neftaio/laravel-jmespath
```

### Add Service Provider

[](#add-service-provider)

In `config/app.php`, add the service provider to the `$providers` array:

```
'providers' => [
    // ...
    Neftaio\Jmes\JmesServiceProvider::class,
],
```

### Add alias

[](#add-alias)

In `config/app.php`, add the facade to the `$aliases` array:

```
'aliases' => [
    // ...
    'Jmes' => Neftaio\Jmes\Facades\Jmes::class,
],
```

### Publish the configuration file

[](#publish-the-configuration-file)

If you'd like to modify the default configuration values or define expressions to pre-compile, publish the package config file:

```
php artisan vendor:publish --provider="Neftaio\Jmes\JmesServiceProvider"
```

This will create a `jmes.php` file in your `config` directory.

Usage
-----

[](#usage)

#### With facade:

[](#with-facade)

```
$result = Jmes::search($expression, $data);
```

#### Helper function:

[](#helper-function)

```
$result = jmes($expression, $data);
```

#### Search Collection: // Returns array or string

[](#search-collection--returns-array-or-string)

```
$names = collect($data);
$result = $names->search($expression);
```

### Artisan commands

[](#artisan-commands)

Two Artisan commands are available with the package:

#### `jmes:compile`

[](#jmescompile)

This compiles and caches JMESPath expressions. Expressions can be sourced in multiple ways:

1. Running the command with no options or arguments will look for expressions in the `jmes.php` config file:

    ```
    php artisan jmes:compile
    ```
2. Passing a single expression to the command:

    ```
    php artisan jmes:compile 'foo.*.baz'
    ```
3. Setting the `-c` or `--cli` option will prompt for expressions to be added manually:

    ```
    php artisan jmes:compile --cli

     Please enter a JMESPath expression:
     > foo.*.baz
    ```

#### `jmes:clear`

[](#jmesclear)

This will delete any previously compiled expressions:

```
php artisan jmes:clear
```

Pass `-h` or `--help` to either command to view its usage.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~227 days

Total

8

Last Release

1368d ago

PHP version history (5 changes)1.0.1PHP ^7.1.3

1.0.4PHP ^7.2.0

1.0.5PHP ^7.4.0

v1.0.6PHP 8.\*

1.0.8PHP &gt;=8.0.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/26975251?v=4)[Neftali Forero](/maintainers/neftaio)[@neftaio](https://github.com/neftaio)

---

Top Contributors

[![neftaio](https://avatars.githubusercontent.com/u/26975251?v=4)](https://github.com/neftaio "neftaio (8 commits)")[![ofumbi](https://avatars.githubusercontent.com/u/4081256?v=4)](https://github.com/ofumbi "ofumbi (6 commits)")[![libtek](https://avatars.githubusercontent.com/u/145673?v=4)](https://github.com/libtek "libtek (4 commits)")

---

Tags

laraveljmespathjmes

### Embed Badge

![Health badge](/badges/neftaio-laravel-jmespath/health.svg)

```
[![Health](https://phpackages.com/badges/neftaio-laravel-jmespath/health.svg)](https://phpackages.com/packages/neftaio-laravel-jmespath)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M686](/packages/barryvdh-laravel-ide-helper)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)

PHPackages © 2026

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