diff --git a/examples/calc.php b/examples/calc-encode.php similarity index 99% rename from examples/calc.php rename to examples/calc-encode.php index db9bd72..5745ba3 100644 --- a/examples/calc.php +++ b/examples/calc-encode.php @@ -43,7 +43,3 @@ $decoded = $driver->decode('Add', $response); var_dump($decoded); - - - - diff --git a/examples/calc-http.php b/examples/calc-http.php new file mode 100644 index 0000000..f2a8a38 --- /dev/null +++ b/examples/calc-http.php @@ -0,0 +1,30 @@ + [ + 'User-Agent' => 'testing/1.0', + ], + ]) + ) +); + +var_dump($engine->request('Add', [ + (object)[ + 'a' => 1, + 'b' => 2 + ] +]));