This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Description
Please treat me like I know almost nothing about Composer.
How do I actually get JSONPath into my project? After running composer require flow/jsonpath dev-master or composer require flow/jsonpath, my PHP looks essentially like this:
<?php
require (__DIR__ . '/vendor/autoload.php');
$data = ['people' => [['name' => 'Joe'], ['name' => 'Jane'], ['name' => 'John']]];
$result = (new JSONPath($data))->find('$.people.*.name'); // returns new JSONPath
But I get the error "Class 'JSONPath' not found."
I'm doing something wrong, but I don't know what.