From 87995be2dc8508dc10b673f43f775c3f7a27e49e Mon Sep 17 00:00:00 2001 From: Paul Rock Date: Sat, 20 Jul 2019 13:03:47 +0300 Subject: [PATCH] note about Rosario added to readme --- README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/README.md b/README.md index 7fb5bae..8275f07 100644 --- a/README.md +++ b/README.md @@ -82,6 +82,34 @@ $client->write($query1)->write($query2)->write($query3); $client->w($query1)->w($query2)->w($query3); ``` +### Solving issue `Allowed memory size of ... bytes exhausted` + +Rosario is a wrapper for the Client class was developed specifically +to solve the problem of excess memory consumption. It includes the +functionality that extends the work with the router's response as an +array. + +To use it you just need replace `Client` class to `Rosario` + +```php + 1, + 'host' => '127.0.0.1', + 'user' => 'admin', + 'pass' => 'admin' +]); + +// Send query to RouterOS and read response +$response = $client->write('/ip/firewall/address-list/print')->read(); +print_r($response); +``` + ### How to configure the client ```php