Need the PHP Script to make API Calls via PHP on MikroTIK

Hi Guys ,

i wanted to make some API Calls via PHP , is there any offiical PHP Library Code from mikrotik that i could use ?

i see one MikroTIK PHP API on Github , but i wanted to make it sure before i use.

How safe is the Package to download it ? Does MikroTIK Recommends it ?

Thanks.

My crystal ball is foggy today, which project on github are you refeering to?

A google search for php api mikrotik github returns several different matches.

No

Just inspect and test it before use. You have access to the source so you can check each line of code.

Downloading seems to be as safe as any other git hosted package.

Downloading it? I doubt it.
Downloading particular unknown to us package. The more I doubt it.

MikroTIK has added it to the API Page :

in PHP by boen_robot → https://sourceforge.net/projects/netrouteros/files/

and Github :

is it safe to use ?

Why do you assume that it is the official Mikrotik project?
14 years old project by boen_robot. Last update 8 years ago.

In 2017 ROS7 was an unicorn. Why do you assume that such an old library would work with no problems?

mikrotik community forum is full of non sense people.

Yep.
A semi-random link, for no apparent reason:
https://www.imdb.com/it/title/tt0074860/quotes/?item=qt0247572

I think issue more that MikroTik choose not to publish API language clients themselves... than the forum. With only exception is MikroTik does publish a Python3 implementation, but its pretty basic

Now they do list API clients on the API help page, including PHP - so I can see the confusion - but I'm not sure MikroTik test or support them. And there was a recent change that an !empty is returned, so IDK if that work in the older PHP library since it predates that change.

You can open a feature request on the support portal for a MikroTik-supported PHP client, but no guarantees of quick action.