Skip to content
This repository has been archived by the owner on May 12, 2020. It is now read-only.

arily/RouterOSResponseArray

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

RouterOSResponseArray

parsing RouterOS response only when access for ROS' raw response. currently only tested with /ip/firewall/address-list/print Don't use this. This aren't up to date and It's merged into https://github.com/EvilFreelancer/routeros-api-php.

$response = $ros_client->write(['/ip/firewall/address-list/print','?'.$query])->readAsIterator();
//$response = new ROSRA($ros_client->wr(['/ip/firewall/address-list/print','?'.$query],FALSE)); //out-dated 

//you could treat response as an array except using array_* function.

//export every row using foreach.
foreach ($response as $row){
  var_export($row);
}

last($response);
var_export(key($respose),current($response));
rewind($response);

About

parsing RouterOS response only when access for ROS' raw response

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages