PHP code example of neftaio / laravel-jmespath

1. Go to this page and download the library: Download neftaio/laravel-jmespath library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

neftaio / laravel-jmespath example snippets


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

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

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

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

$names = collect($data);
$result = $names->search($expression);
bash
php artisan vendor:publish --provider="Neftaio\Jmes\JmesServiceProvider"
bash
   php artisan jmes:compile
   
bash
   php artisan jmes:compile 'foo.*.baz'
   
bash
php artisan jmes:clear