REST API PHP Class with examples

Hi guys, as I am using mikrotik API from a long time, I wanted to check new REST API over HTTPS. So far it works great for me, and I am changing all my systems from regular API to REST API.

Since I did not found any ready to use PHP class solution, I checked HELP page here:
https://help.mikrotik.com/docs/display/ROS/REST+API

And created small PHP Class with several function to read, add, update, delete data. You can find it on github, with example script for usage

https://github.com/cdmanbg/php_routeros_rest_api

Thanks for the kindness

It is the sharing of knowledge that improves this world.

Your script is very dangerous from security purpose

because you disable SSL peer verification. Doing so might expose your requests to MITM attackers.
CURLOPT_SSL_VERIFYPEER => false,