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

ActiveLibrary

libtek/laravel-jmespath
=======================

jmespath.php service provider for Laravel 5

11.4k3PHP

Since Nov 27Pushed 10y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#laravel-jmespath)

A Laravel 5 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.

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

[](#installation)

### Install through composer

[](#install-through-composer)

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

### Add Service Provider

[](#add-service-provider)

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

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

### Add alias

[](#add-alias)

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

```
'aliases' => [
    // ...
    'Jmes' => Libtek\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="Libtek\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);
```

### 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

24

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9ecfc0f6864082a7ee436006ecb1f9b7f9ba9167e6082e22de213ec4022a61a1?d=identicon)[libtek](/maintainers/libtek)

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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