FlowCommunications/JSONPath

Class 'JSONPath' not found

Closed this issue · 2 comments

After cloning the repository and running composer update, I include the vendor/autoload.php file into a test index.php file to test the README example:

<?php

require('vendor/autoload.php');

$data = ['people' => [['name' => 'Joe'], ['name' => 'Jane'], ['name' => 'John']]];
$result = (new JSONPath($data))->find('$.people.*.name');

Result: PHP Fatal error: Class 'JSONPath' not found in index.php on line 6

Any ideas, here?

Was an issue with my local environment.

I know this is over 5 years old, but I need the solution, too. What was the problem, @zQueal?