@@ -22,7 +22,7 @@ using the ``mtdowling/jmespath.php`` package.
2222 ]
2323 ];
2424
25- JmesPath\Env:: search($expression, $data);
25+ JmesPath\search($expression, $data);
2626 // Returns: [1, 2, 3]
2727
2828 - `JMESPath documentation <http://jmespath.readthedocs.org/en/latest/ >`_
@@ -32,22 +32,26 @@ using the ``mtdowling/jmespath.php`` package.
3232PHP Usage
3333=========
3434
35- The ``JmesPath\Env:: search `` function can be used in most cases when using the
35+ The ``JmesPath\search `` function can be used in most cases when using the
3636library. This function utilizes a JMESPath runtime based on your environment.
3737The runtime utilized can be configured using environment variables and may at
3838some point in the future automatically utilize a C extension if available.
3939
4040.. code-block :: php
4141
42- $result = \JmesPath\Env::search($expression, $data);
42+ $result = JmesPath\search($expression, $data);
43+
44+ // or, if you require PSR-4 compliance.
45+ $result = JmesPath\Env::search($expression, $data);
4346
4447 Runtimes
4548--------
4649
4750jmespath.php utilizes *runtimes *. There are currently two runtimes:
4851AstRuntime and CompilerRuntime.
4952
50- AstRuntime is utilized by ``JmesPath\Env::search() `` by default.
53+ AstRuntime is utilized by ``JmesPath\search() `` and ``JmesPath\Env::search() ``
54+ by default.
5155
5256AstRuntime
5357~~~~~~~~~~
@@ -92,7 +96,7 @@ before executing them (for example, server-side applications).
9296 Environment Variables
9397^^^^^^^^^^^^^^^^^^^^^
9498
95- You can utilize the CompilerRuntime in ``JmesPath\Env:: search() `` by setting
99+ You can utilize the CompilerRuntime in ``JmesPath\search() `` by setting
96100the ``JP_PHP_COMPILE `` environment variable to "on" or to a directory
97101on disk used to store cached expressions.
98102
0 commit comments