Download the PHP package suthernfriend/mikrotik-api without Composer
On this page you can find all versions of the php package suthernfriend/mikrotik-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download suthernfriend/mikrotik-api
More information about suthernfriend/mikrotik-api
Files in suthernfriend/mikrotik-api
Package mikrotik-api
Short Description Comfortable Wrapper Around RouterOS Library for accessing MikroTik routers via their API
License Apache-2.0
Informations about the package mikrotik-api
suthernfriend/mikrotik-api
A Comfortable Wrapper Around the RouterOS Library for accessing MikroTik routers via their API
Getting started
Install the package with composer
composer require suthernfriend/mikrotik-api
Create the ConnectionManager
Example use:
General
You can use any MikroTik command by converting the command in the terminal interface to camelCase
All commands (and even new commands that may appear in a future version of RouterOS) are supported!
Examples:
/system reboot
to$connectionManager->createRequest()->system->reboot();
/caps-man provisioning print
to$connectionManager->createRequest()->capsMan->provisioning->print();
/routing ospf-v3 virtual-link remove
to$connectionManager->createRequest()->routing->ospfV3->virtualLink->remove();
The same is valid for properties
Values are not converted
Types
IP-Addresse, Mac addresses, Durations, Numbers and MikroTik Ids are converted to special instances of classes which have additional features. See the Types folder.
Bugs
I developed this for a project at work. So there is not much documentation. If there is a need feel free to ask me here or at my email and i will try my best to respond.
I'm expecting a lot of bugs in the code, since i haven't had the time to test everything. Feel free to report them or post pull-requests.
License
Apache License 2.0
All versions of mikrotik-api with dependencies
pear2/net_routeros Version ^1.0@beta
darsyn/ip Version ^4.0
blake-gardner/mac-address Version ^2.1
ext-json Version *
psr/log Version ^1.1
ext-mbstring Version *
ext-iconv Version *